Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 98e1944a88

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
config
css
docs
images
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 the exact version that will be shipped to the wrapper
  • rake check_missing_files : # List files that are reference on the game, but doesn't exists
  • rake clean : # Remove any temporary products.
  • rake clobber : # Remove any generated file.
  • rake default : # Update local files like index.html with the content of the config files, or the css from the less files
  • rake lint : # Look for syntax errors in the files
  • rake list_extra_files : # List the files that are not references from the game but are still present
  • rake remove_trailing_spaces : # Remove trailing spaces at the end of the line

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.