I am developing a mobile app for android and ios in the ionic framework which contains a game element which is animated. Currently I am using Adobe After Effects to animate a character which forms part of a game.
I export a PNG sequence from After Effects and embed it in my Ionic app as a sequence of background images that make up the animation. I'm using TexturePacker to create sprite sheets and GSAP TweenMax to run the animation in javascript inside an angular controller.
I'm targeting ios and android so I need to make the animation look good on a wide variety of device screens and resolutions. When the app enters the "game" mode the images need to take up the full screen.
What's the best way to ensure that the game animation looks good on the many different device sizes and resolutions that are out there?
Currently I am creating specifically sized background images for each device and using media queries which seems very tedious and feels like there must be a better approach.
I could just about manage to create these to cover all apple devices, but to cover all android devices is much harder.