0

I am developing small game on html5 and there is a need of a tutorial for it, whats the best way to display dom-like content inside of a canvas? Thanks

Leg0
  • 510
  • 9
  • 21

2 Answers2

0

https://developer.mozilla.org/en-US/docs/HTML/Canvas/Drawing_DOM_objects_into_a_canvas
Stackoverflow question: Can I put an HTML button inside the canvas?

Community
  • 1
  • 1
sv_in
  • 13,929
  • 9
  • 34
  • 55
0

There are tons of ways to do this. I would suggest, however, that you choose a game engine instead of trying to build a game from ground zero. Check out this game engine for instance: http://craftyjs.com/

cliffbarnes
  • 1,396
  • 11
  • 21