Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ccf1055604

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
config
css
docs
js
tasks
templates
test
.gitignore
README.md
Rakefile
index.html
ipad.html

README.md

Build Dependencies

To build the game you need the following tools:

Getting Started

git clone git@github.com:wooga/pocket_island.git

run rake to generate all config files, sprite images, etc.

Rake tasks

  • 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:

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.

Something went wrong with that request. Please try again.