Created: 2012-08-21 12:33
Updated: 2014-02-10 15:09

Cocos2d-html5 + require.js template project


The goal of this project is to integrate cocos2d-html5 and requirejs. RequireJS has the following advantages comparing to cocos's built in js loader:

  • lazy load of a modules at run time. Dependencies of each modules will be resolved automatically, developer doesn't need to list script files in right order.
  • built in optimization tool that allows to combine all modules in one single js file.

Bundled verions of a library

Currently the versions are following:

Additional helper scripts

Project also contains two helper utilities:

  • server.js - runs static HTTP server on 8888 port. Requires NodeJS;
  • - optimizes all JS and CSS files. Ready for deployment version of the app will be saved at ./build directory.
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more