To build the game you need the following tools:
- brew http://mxcl.github.com/homebrew/
- ruby http://www.ruby-lang.org/en/downloads/
- gem http://rubygems.org/pages/download
gem install rake
brew install markdown
- gcc (you should install XCode)
- node & npm http://nodejs.org/
npm install -g less
npm install -g jslint
gem install spritopia
- pngcrush (optional)
brew install pngcrush
git clone firstname.lastname@example.org:wooga/pocket_island.git
rake to generate all config files, sprite images, etc.
rake all: Build project. Copies final files to build/
rake check_missing_files: List files that are referenced by the game, but don't exist
rake clean: Remove any temp file.
rake clobber: Remove any generated file.
rake default: what does it do?
rake lint: Run jslint
rake list_extra_files: List files that are not referenced by the game but are in the project
rake remove_trailing_spaces: Remove trailing spaces
Adding new sprites
Start with creating a
.sprite file that lists individual images
that should be included in the sprite. Then run:
to generate the image based on
An image and
sprite_name.json will be generated.
Use the value from the json file to update
Remember to divide pixel values by 48 before entering them in