Permalink
Browse files

I'm free. Here be dragons!

  • Loading branch information...
1 parent 93d428b commit 98e1944a88aed24bb1517f3902b169ba6f2fb9d8 @hdragomir hdragomir committed with Jonathan Koch Apr 25, 2012
Showing 536 changed files with 36,599 additions and 0 deletions.
View
@@ -0,0 +1,13 @@
+css/*.css
+build/
+node_modules/
+.DS_Store
+.pt
+app.tar
+js/config.js
+config/goals.json
+*.sublime-project
+*.sublime-workspace
+config/version
+images/entities/*.json
+images/entities-*
View
0 README
No changes.
View
@@ -0,0 +1,47 @@
+# Build Dependencies
+
+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`
+* __pngcrush__ (optional) `brew install pngcrush`
+
+
+# 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``.
View
@@ -0,0 +1,9 @@
+require 'rubygems'
+require 'bundler/setup'
+
+VERBOSE=RakeFileUtils.verbose_flag
+def SILENT(s); VERBOSE ? '' : s; end
+def which(s); system("which #{s} >/dev/null 2>&1") ; end
+
+import 'tasks/build.rake'
+import 'tasks/lint.rake'
Oops, something went wrong.

0 comments on commit 98e1944

Please sign in to comment.