Hacker News new | ask | show | jobs
by 1123581321 2089 days ago
These engines generally don’t use the DOM; instead, they render in a canvas element and provide you a framework to deliver logic and drawing instructions to each frame before it renders. That’s an entirely web-standards-compliant approach as Canvas was meant for this. There is stock code and art out there to save you time creating in-game objects for any particular engine (my personal preference is Phaser. )
1 comments

Thanks for explaining!

I will check out Phaser.