mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
51 lines
1.6 KiB
Markdown
51 lines
1.6 KiB
Markdown
Cocos2d-html5
|
|
==================
|
|
|
|
[Cocos2d-html5][1] is a cross-platform 2D game engine written in Javascript, based on [Cocos2d-X][2] and licensed under MIT.
|
|
It incorporates the same high level api as “Cocos2d JS-binding engine” and compatible with Cocos2d-X.
|
|
It currently supports canvas and WebGL renderer.
|
|
|
|
Cross Platform
|
|
-------------
|
|
* Popular browsers: Chrome 14+, Safari 5.0+, IE9+, Firefox 3.5+.
|
|
* Mobile platforms: coming soon.
|
|
* Native App: Same piece of code can run on "Cocos2d JS-Binding Engine" without or with little modification.
|
|
|
|
Documentation
|
|
------------------
|
|
* Website: [www.cocos2d-x.org][3]
|
|
* API References: [http://www.cocos2d-x.org/wiki/Reference] [4]
|
|
|
|
|
|
Installing from [bower][8] (version >=3.4)
|
|
------------------
|
|
|
|
```shell
|
|
$ bower install cocos2d-html5
|
|
```
|
|
|
|
Running the tests (version <3)
|
|
------------------
|
|
|
|
```shell
|
|
$ git clone git://github.com/fireball-x/engine.git
|
|
$ cd engine
|
|
$ python -m SimpleHTTPServer
|
|
```
|
|
... and then open a browser and go to `http://localhost:8000/tests`
|
|
|
|
|
|
Contact us
|
|
------------------
|
|
* Forum: [http://forum.cocos2d-x.org][5]
|
|
* Twitter: [http://www.twitter.com/cocos2dhtml5][6]
|
|
* Sina Microblog: [http://t.sina.com.cn/cocos2dhtml5][7]
|
|
|
|
[1]: http://www.cocos2d-x.org "Cocos2d-html5"
|
|
[2]: http://www.cocos2d-x.org "Cocos2d-X"
|
|
[3]: http://www.cocos2d-x.org "www.cocos2d-x.org"
|
|
[4]: http://www.cocos2d-x.org/wiki/Reference "API References"
|
|
[5]: http://forum.cocos2d-x.org "http://forum.cocos2d-x.org"
|
|
[6]: http://www.twitter.com/cocos2dhtml5 "http://www.twitter.com/cocos2dhtml5"
|
|
[7]: http://t.sina.com.cn/cocos2dhtml5 "http://t.sina.com.cn/cocos2dhtml5"
|
|
[8]: http://bower.io "http://bower.io" |