Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Coco2d-html5 and RequireJS integration
JavaScript
branch: master

Initial commit

Included dependencies:

cocos2d-html5-alpha2
requirejs 2.0.6
domReady plugin 2.0.1
latest commit e012a21585
Sergej Tatarincev authored
Failed to load latest commit information.
lib Initial commit
node_modules Initial commit
resources Initial commit
src Initial commit
.gitignore Initial commit
README.md Initial commit
app.build.js Initial commit
build.sh Initial commit
index.html Initial commit
server.js Initial commit
style.css Initial commit

README.md

Cocos2d-html5 + require.js template project

Purpose

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;
  • build.sh - optimizes all JS and CSS files. Ready for deployment version of the app will be saved at ./build directory.
Something went wrong with that request. Please try again.