4. History
2008 - Ricardo Quesada, a game developer in Argentina,
writes a game framework named Cocos2d
2009 - After the iPhone SDK release, Cocos2d rewritten
in Objective-C to become Cocos2d-iPhone
2010 - Zhe Wang, a developer in China, creates a fork,
Cocos2d-x
Chukong Technologies Inc, Zhe‘s company, develops
Cocos2d-JS, -HTML5, and -Lua
7. Python 2
The cocos command line needs python to run python
2.7.5+
It won’t work with python 3
https://www.python.org/downloads/
8.
9. cocos command options
new - Creates a new project
compile - Compiles the current project to binary
deploy - Deploy a project to the target
run - Compiles & deploy project and then runs it on
the target
jscompile - minifies and/or compiles js files
10. cocos new
cocos new -l js
cocos new -l js —no-native
cocos new projectName -l js -d ./Projects
cocos new projectName -l js
11. project.json
debug - the current debug setting
showFPS - whether or not to show the frame rate
frameRate - the desired frame rate
modules - cocos2d and potentially plugins
jsList - all of your source code