Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+2)

Well Done. Works nice! I like the images and animations. How did you guys animate them? Curious to know. 

(2 edits) (+1)

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.

(+1)

Thank you!