https://github.com/dmcinnes/jshack
https://github.com/dmcinnes/jshack
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/dmcinnes/jshack
- Owner: dmcinnes
- Created: 2012-05-24T03:00:39.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-05-24T04:11:07.000Z (about 14 years ago)
- Last Synced: 2025-02-11T14:38:14.470Z (over 1 year ago)
- Language: JavaScript
- Size: 313 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
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
```
You can find here (https://github.com/ahilles107/CraftyBoilerplate) a sample project that use CraftyBoilerplate.