http://wooga.github.com/Pocket-Island/
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
- rake
gem install rake
- markdown
brew install markdown
- gcc (you should install XCode)
- node & npm http://nodejs.org/
- lessc
npm install -g less
- jslint
npm install -g jslint
- spritopia
gem install spritopia
- bundler
gem install bundler
- pngcrush (optional)
brew install pngcrush
-
git clone [email protected]:wooga/Pocket-Island.git
-
Get the art assets from http://cdn-mkt.wooga.com/downloads/images.zip and extract them into ./Pocket-Island/images.
-
Run
rake
to generate all config files, sprite images, etc. -
Run a HTTP server: You can for example use the SimpleHTTPServer module of python and run
python -m SimpleHTTPServer
on the command line. -
Finally, open http://0.0.0.0:8000/ipad.html to play the game (preferably in Chrome or Safari).
rake all
: Build project. Copies final files to build/rake check_missing_files
: List files that are referenced by the game, but don't existrake clean
: Remove any temp file.rake clobber
: Remove any generated file.rake default
: what does it do?rake lint
: Run jslintrake list_extra_files
: List files that are not referenced by the game but are in the projectrake remove_trailing_spaces
: Remove trailing spaces
Start with creating a .sprite
file that lists individual images
that should be included in the sprite. Then run:
rake sprite_name.png
to generate the image based on sprite_name.sprite
file.
An image and sprite_name.json
will be generated.
Use the value from the json file to update entities.json
with
width
, height
, spritey
and offsetY
values.
Remember to divide pixel values by 48 before entering them in entities.json
.
All code provided in this repository is covered by an MIT license, as described here https://github.com/wooga/Pocket-Island/blob/master/license.html
Images are licensed under a Creative Commons License and are provided separately.