As a result the browser only has to load one image and shift focus, it works more efficiently than when it has to load image after image in the graphic memory. Combining sprite sheets with their respective JSON file lets Pixi over the individual images et voilà, the animation emerges before your eyes.
Creating an old school look
To amplify the vintage feel we created with the cel animations, we added more visual effects to lure people further into Edward’s tale. We played with framerates, filters and vignettes.
Framerate
The first trick we pulled from our sleeve was to use a framerate of 12 frames per second instead of the 60 fps that is standard practice now. 12 fps gives a slightly jumpy look to your animation and was commonly used in the animations we drew our inspiration from. It also massively reduces the amount of drawing work for our animators, so we won’t pretend that wasn’t a factor. We still used the smoothness of 60 fps for small animations like the eyes following other moving animations or following your pointer across the screen, which gives the application that high-end feel we are used to on modern devices.
It did present us with the challenge of combining 2 framerates in 1 application. We used the AnimatedSprite, provided by Pixi, to animate the spritesheets with 12 frames per second. Simply extending it and changing the animation speed solved this issue and the rest was done by the magic of Pixi.