Git Product home page Git Product logo

pocket-island's Introduction

Play Pocket Island

http://wooga.github.com/Pocket-Island/

Build Dependencies

To build the game you need the following tools:

Getting Started

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

License

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.

pocket-island's People

Contributors

afarber avatar delurin avatar hdragomir avatar jschaback avatar robotdisco avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.