thank you, lol same here, I blame the years of using my phone calculator for easy problems.
Kapaha
12
Posts
2
Followers
1
Following
A member registered Jun 01, 2021 · View creator page →
Creator of
Recent community posts
Thank you very much.
For the animations we used requestAnimationFrame which takes a callback and calls it before the browser repaint, so our callback would update the transform translate css style of our enemies moving them towards the castle. For the sprites we set the enemy div background image to the enemy sprite sheet and after a set time the background images position is shifted to show the next sprite frame, making it look like the enemy is walking.