You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,19 +5,19 @@
5
5
Cocos2d-JS
6
6
===========
7
7
8
-
Cocos2d-JS is Cocos2d-x engine's javascript version which include Cocos2d-html5 and Cocos2d-x JSBinding. It support full Cocos2d-x features with a set of simplified javascript friendly APIs.
8
+
Cocos2d-JS is Cocos2d-x engine's javascript version which includes Cocos2d-html5 and Cocos2d-x JSBinding. It supports full Cocos2d-x features with a set of simplified javascript friendly APIs.
9
9
10
-
Cocos2d-JS provides a consistent development experience for whichever platform you want to distribute to, both web and native. "Code once, run everywhere" is incredibly easy and natural in Cocos2d-JS. With one single javascript code base, you can run your game on both web browsers and native platform including Mac OS, Windows, Linux, iOS, Android. This will bring your game great opportunities in almost all canals of distribution.
10
+
Cocos2d-JS provides a consistent development experience for whichever platform you want to distribute to, both web and native. "Code once, run everywhere" is incredibly easy and natural in Cocos2d-JS. With one single javascript code base, you can run your game on both web browsers and native platforms including Mac OS, Windows, Linux, iOS and Android. This will bring your game great opportunities in almost all channels of distribution.
11
11
12
-
Furthermore, javascript friendly API makes your game development experience a breeze, easy to code, test and distribute. Cocos2d-JS also offers Cocos Console, a script tool, to simplify the creation of projects and let you start coding right away. You can use it to create a new project and publish it to android, iOS, Mac OS or web.
12
+
Furthermore, javascript friendly APIs make your game development experience a breeze, easy to code, test and distribute. Cocos2d-JS also offers Cocos Console, a scripting tool, to simplify the creation of projects and let you start coding right away. You can use it to create a new project and publish it to android, iOS, Mac OS or web.
13
13
14
14
## API Reference
15
15
16
16
- API Reference: [Online API reference](http://www.cocos2d-x.org/reference/html5-js/V3.0rc0/index.html)
You may need to provide your NDK, Android SDK and ANT's path during the setup. Note that this tool is developed with python, so you will need python (32bit) 2.7.5 or later installed on your machine (but it doesn't support Python3). Please refer to [Cocos Console document](http://www.cocos2d-x.org/docs/manual/framework/html5/v2/cocos-console/en).
55
+
You may need to provide your Android NDK, Android SDK and ANT's paths during the setup. Note that this tool is developed with python, so you will need python (32bit) 2.7.5 or later installed on your machine (but it doesn't support Python3). Please refer to [Cocos Console document](http://www.cocos2d-x.org/docs/manual/framework/html5/v2/cocos-console/en).
56
56
57
57
And if you have any doubt about the usage, please use `-h` with any command to have some help messages.
58
58
59
-
You can also use prebuilt Xcode or Visual Studio project which is located in `Game/frameworks/runtime-src/proj.xxx`
59
+
You can also use prebuilt Xcode or Visual Studio projects which are located in `Game/frameworks/runtime-src/proj.xxx`
60
60
61
61
##Folder structure of new project
62
62
63
63
- frameworks
64
64
- cocos2d-html5 : Cocos2d-JS html5 engine source
65
65
- js-bindings : JSB engine source (include Cocos2d-x and JSB)
66
-
- runtime-src : IDE projects (android, ios, mac, win32)
66
+
- runtime-src : IDE projects (Android, iOS, Mac OS, Win32)
67
67
- publish : Published apps
68
68
- runtime : Debug app files
69
69
- tools : JS Bindings generator
70
70
- res : Your game resource folder for images, sounds, etc
71
-
- src : Your game's js files folder
71
+
- src : The source code folder to place your game's js files
72
72
- main.js : The entrance of your game logic
73
-
- index.html : The web page for hosting your game in web version
73
+
- index.html : The web page for hosting your game in web server
74
74
75
75
##Built-in Projects
76
76
@@ -88,7 +88,7 @@ There are two prebuilt projects in Cocos2d-JS repo:
88
88
cd samples/js-moonwarriors
89
89
run -p ios|mac|android|web
90
90
```
91
-
And they share the same project file which located in `build` folder, there are Xcode and Visual Studio projects.
91
+
And they share the same project files which are located in `build` folder, there are Xcode and Visual Studio projects.
92
92
93
93
##Main features
94
94
@@ -114,7 +114,7 @@ And they share the same project file which located in `build` folder, there are
114
114
* Motion Streak
115
115
* Render To Texture
116
116
* Touch/Accelerometer on mobile devices
117
-
* Touch/Mouse/Keyboard on desktop
117
+
* Touch/Mouse/Keyboard on desktop systems
118
118
* Sound Engine support (CocosDenshion library) based on OpenAL or WebAudio on web
119
119
* Integrated Slow motion/Fast forward
120
120
* Fast and compressed textures: PVR compressed and uncompressed textures, ETC1 compressed textures, and more
@@ -123,7 +123,7 @@ And they share the same project file which located in `build` folder, there are
123
123
* Open Source Commercial Friendly: Compatible with open and closed source projects
124
124
* OpenGL ES 2.0 (mobile) / OpenGL 2.1 (desktop) based
125
125
* Full WebGL support and auto canvas fallback
126
-
126
+
127
127
## Documentations
128
128
129
129
-[Getting Started with Cocos2d-JS](http://www.cocos2d-x.org/docs/manual/framework/html5/en)
@@ -133,6 +133,6 @@ And they share the same project file which located in `build` folder, there are
133
133
If you fork our github repository or download the package from github, you will need to do some extra tasks:
134
134
135
135
- Run `frameworks/js-bindings/cocos2d-x/download-deps.py` to download external dependencies for Cocos2d-x
136
-
- Run `tools/cocos2d-console/download-bin.py` to download bin files for some cocos2d-console plugins like Google Closure Compiler, JSC Compiler.
136
+
- Run `tools/cocos2d-console/download-bin.py` to download bin files for some cocos2d-console plugins like Google Closure Compiler and JSC Compiler.
137
137
138
-
Otherwise, you will fail to compile your JSB projects.
138
+
Otherwise, you will fail to compile your JSB projects.
0 commit comments