JavaScript游戏框架 [英] JavaScript game framework
问题描述
现在使用< canvas>
,很容易找到互联网上的所有酷的东西。像模拟器,演示,游戏,只是视觉的
的东西,等等。
但是似乎每个人都在使用画布的基本原语进行编程。
Nowadays with <canvas>
, it is easy to find all kind of cool stuff around the Internet. Like emulators, demos, games, just visual
stuff, etc.
But it seems that everyone is programming using the basic primitives of canvas.
有< canvas>
或实用程序库工作的任何框架?
There exist any framework working over <canvas>
or utility library?
推荐答案
你可以看看Processing.js:
You could look at something like Processing.js:
http://processingjs.org/exhibition
UPDATE:
如果你想要一个游戏API,我没有尝试,但评论是有希望的,你可以看看:
If you want a game API, I haven't tried it, but the comments are promising, you can look at:
http://ajaxian.com/archives/gamejs-canvas-game-library
为了保持javascript小和优化,我倾向于直接访问元素,但随着时间的推移,人们将创建自己的库,但它可能不是有用的库在某些情况下。
In order to keep the javascript small and optimized I tend to just access the elements directly, but, over time people will create libraries of their own, but it may not be libraries that are useful in certain situations.
更新2:
看起来您可以版本的gamejs从这里:
Looks like you can get a version of gamejs from here:
http ://tommysmind.com/gamejs/GameJS-0.1.rar
这也是一篇关于GameJS的有趣文章,作者:
< a href =http://tommysmind.com/gamejs/ =nofollow noreferrer> http://tommysmind.com/gamejs/
This also was an interesting article on GameJS by the author: http://tommysmind.com/gamejs/
这篇关于JavaScript游戏框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!