I’ve released the 3rd beta of version 0.2. This has some major syntax changes so I’ve put together a guide on upgrading from v0.1.
To install this build from NPM use:
npm install -g cocos2d@0.2.0-beta3
If you don’t have NPM then you should grab it from the downloads section. There’s an installer for Windows and Mac OS X, as well as a tar.gz for Linux users.
I hope to soon have some better guides and tutorials for creating new applications using Cocos2D JavaScript v0.2 soon. So stay tuned.
After a far too long delay I’ve put out a beta of v0.2. You can grab it from the downloads section page or by using npm.
npm install -g cocos2d@0.2.0-beta
For a (not yet complete) list of changes see the change log file, and for more details on getting things up and running check the readme file.
Again, I should thank Marc Mauger for providing a lot of the new actions and implementing scene transitions.
If you find any bugs or issues in this beta release, please add a comment to this post or create an issue on github.
It’s been a while since there has been an update so I felt it would be worth adding unstable snapshots of the next release so people can see what’s coming. If you want to give it a test run you’ll find it in the downloads section or you can install using npm.
npm install -g cocos2d@unstable
For a list of notable changes see the change log.
Thanks to Marc Mauger for providing a whole heap of new actions and implementing scene transitions.
There was an issue with the Windows installer version which prevented the development server starting properly. Anyone using this should redownload it, uninstall their current version and install the new version.
If anyone has any issues with it please add a comment or send a tweet to @cocos2djs. Thanks.
Today I’m releasing version 0.1 of Cocos2D JavaScript. This is the first release and there will be many more to come.
You can grab it from the downloads section and checkout the tutorials to get started.
Upgrading Your Project
If you’ve been using the older version available via github here are some notable changes.
- Uses Node.js to serve and compile code (precompiled binaries included)
- No longer requires Python to be installed
- Installed system wide so you don’t need to include Cocos2D’s code in your project
- @super keyword has been removed. (use
Foo.superclass.bar.call(this) instead).
- Renamed make.js and config.js files to make.json and config.json respectively.
To upgrade your project follow these steps.
- First install v0.1 by following the instructions in the README.md file.
- Rename your make.js and if you have one, your config.js files to make.json and config.json
- Replace all references to @super with
ClassName.superclass.functionName.apply(this, arguments). Where ClassName should be the name of your class and functionName should be the name of the function.
- Completely delete the cocos2d folder in your project.
- Delete the ./cocos and ./cocos.bat scripts in the root of your project
- Test your project by running
cocos server
If you have any problems upgrading add a comment and I’ll help you out.