Getting the code
git clone https://github.com/RyanWilliams/cocos2d-helloworld.git cd cocos2d-helloworld git submodule init git submodule update
Running this example
To run through the development server simply execute:
And visit http://localhost:4000/
Alternatively you can build to a static file which can be served from any webserver:
The generated code will be in public/hello-world.js.
All the code for this example lives in src/main.js