Depends on the game. Nintendo stores most of their animation and particle effect data in a mostly declarative format which I've reverse engineered and reimplemented in TypeScript.
For instance, the particle engine is here https://github.com/magcius/noclip.website/blob/master/src/Co...