Skip to content
This repository

Default Boilerplate for CraftyJs project

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 web
Octocat-spinner-32 filesList
Octocat-spinner-32 index.html
Octocat-spinner-32 minify.sh
Octocat-spinner-32 readme.md
Octocat-spinner-32 yuicompressor-2.4.7.jar
readme.md

What we will use in CraftyBoilerplate:

  • Crafty (latest release)
  • Modernizr (2.5.3)
  • Backbone (0.9.2)
  • Underscore (1.3.4)
  • RequireJquery

To clean up the code and files, in this case we need to use backbone.js as wrapper for entities and require.js for loading files when requests.

proposed structure tree:

-- src
---- components -> Crafty components files
---- entities -> Files with entities
-------- base
------------ baseEntity.js -> Base entity
---- interfaces -> We keep here files with interface entities
---- levels -> Configuration files for levels
---- scenes -> Files with scenes declarations
---- windows -> Files with logic for interface windows
---- libs -> Other libraries files
-------- backbone
-------- jquery
-------- modernizr
-------- require-jquery
-------- underscore
---- config.js -> Game configuration
---- game.js -> Main file of the game
---- sprites.js -> Sprites definitions
-- web
---- images
---- css
-- index.html -> Game wrapper
Something went wrong with that request. Please try again.