[英]A game in java script. Should I use canvas?
I need to create a simple game for the browser, and all the graphics are ready. 我需要为浏览器创建一个简单的游戏,并且所有图形都已准备就绪。 I'm wondering if I should create with canvas or can I do it with javascript manipulating regular divs.
我想知道是否应该使用canvas创建,或者可以使用javascript处理常规div来做到这一点。 I mean I don't need to draw anything on the canvas how does the canvas help me?
我的意思是我不需要在画布上画任何东西,画布对我有什么帮助?
If you are new to Javascript and HTML5: Don't use Canvas. 如果您不熟悉Javascript和HTML5:请勿使用Canvas。 Don't use divs.
不要使用div。 Use some existing Javascript gaming library:
使用一些现有的Javascript游戏库:
https://github.com/bebraw/jswiki/wiki/Game-Engines https://github.com/bebraw/jswiki/wiki/Game-Engines
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.