HTML5 Game (Canvas) - UI Techniques?

前端 未结 3 1730
遥遥无期
遥遥无期 2020-12-31 14:05

I\'m in the process of building a JavaScript / HTML5 game (using Canvas) for mobile (Android / iPhone/ WebOS) with PhoneGap. I\'m currently trying to design out how the UI a

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-31 14:19

    I do not think that there is a "standard" for this. It highly depends on your UI. I think using the DOM elements is better in most cases, since you do not need to build all of the UI components, events, etc. yourself. They can be styled with CSS to achieve the desired look. If this is not enough, you'll probably need to build the interface elements yourself, but you should make sure that this is really needed. It is probably a huge amount of work to roll your own solution.

提交回复
热议问题