Spritesheet animation
Posted: 13 May 2024, 17:38
Hi everyone !
I want to make a game on BGA but I am not sure how to handle sprite animations. I have a spritesheet and I know how to animate my sprite with canvas and requestAnimationFrame but, if I recall correctly, the BGA platform is using dojo framework and DOM to display and animate ressources.
Has someone already used canvas on BGA ? Is there a way to create animations based on spritesheet on BGA without canvas ? I was thinking with maybe some keyframe in the stylesheet file but when I tried it, it was not really convincing.
Thank you for your advices !
I want to make a game on BGA but I am not sure how to handle sprite animations. I have a spritesheet and I know how to animate my sprite with canvas and requestAnimationFrame but, if I recall correctly, the BGA platform is using dojo framework and DOM to display and animate ressources.
Has someone already used canvas on BGA ? Is there a way to create animations based on spritesheet on BGA without canvas ? I was thinking with maybe some keyframe in the stylesheet file but when I tried it, it was not really convincing.
Thank you for your advices !