2 ms·
I thought the menu pattern for canvas-based games is to use DOM elements and display them above canvas.
by 1123581321 14y ago
I thought the menu pattern for canvas-based games is to use DOM elements and display them above canvas.
- lopatin 14y agoThat works fine to an extent, but sometimes you want your menus integrated with your game and have consistent graphics and animations and so on. I used dom elements for snaketron, but in hindsight I think it felt tacky (it might partly have been because I used Bootstrap). For most games, which are more complicated, I can imagine it would be a pain to maintain dom menus.