简体   繁体   English

Java脚本中的游戏。 我应该使用帆布吗?

[英]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.

相关问题 我无法更新Java脚本游戏(画布)的对象值 - I cant update my object value , for my Java script game (canvas) HTML5 GAME的可滚动板应使用SVG或Canvas - Scrollable board for HTML5 GAME should use SVG's or Canvas java 脚本游戏/我想通过点击更改一个数字。 我应该怎么办? - java script game / I want to change one number by clicking on it. What should I do? 使用Java脚本上传Twitter图片。 - Twitter image upload using java script. Java 脚本游戏让动作更流畅 | JavaScript Canvas - Make movement more smooth on Java Script Game | JavaScript Canvas 当我在脚本中使用AJAX时,JQuery停止工作。 我究竟做错了什么? - JQuery stops working when I use AJAX in my script. What am I doing wrong? 编写我的第一个油脂猴子脚本。 如何使innerHTML使用“包含”? - Writing my First Grease Monkey Script. How do I get innerHTML to use 'contains'? 无法找到元素。 我正在使用量角器Java脚本。 我有几种方法,如CSS,xpath和id - Unable to locate element. I am using protractor java script. I have several methods like css, xpath and id 你好。 我想降低 Java 脚本中按钮到顶部的滚动速度。 任何人都可以帮助我吗? - Hello. I want to decrease the button-to-top scroll speed in java script. Can anyone help me with that? Java脚本。 如何选择数组的任何几项 - Java Script. How to choose any few items of array
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM