No description
Find a file
2013-11-14 12:12:49 -08:00
css mounts: fix spritesheets for rare mounts to work with mount system 2013-11-10 14:36:02 -08:00
dist mounts: more item DRY-ing and cleanup 2013-11-14 12:12:49 -08:00
img contrib: update css to accomodate new contributor only store & equipment (@Shaners could you take a peek at the css positioning issues in backer.css?) 2013-11-07 13:10:41 -08:00
script mounts: more item DRY-ing and cleanup 2013-11-14 12:12:49 -08:00
tests add preen_history to user cron (see 2013-11-05 17:10:31 -08:00
.gitignore add HISTORY_PREEN.js, a script we need to add to cron function (TODO) 2013-09-08 21:10:42 -04:00
.travis.yml allow any branch in travis builds 2013-10-27 16:23:02 -03:00
favicon.ico add a bunch of possible shared items for now, will clean up later 2013-03-11 14:50:00 -04:00
Gruntfile.js halloween: consolidate customizer button css. was duplicated bw mobile & 2013-10-22 16:05:20 -07:00
package.json compile & upgrade browserify for grunt-browserify 2013-11-02 09:55:18 +01:00
README.md show how to run tests in readme 2013-10-31 22:07:19 -03:00

Shared resources useful for the multiple HabitRPG repositories, that way all the repositories remain in-sync with common characteristics. Includes things like:

  • Assets - sprites, images, etc
  • CSS - especially, esp. sprite-sheet mapping
  • Algorithms - level up algorithm, scoring functions, etc
  • View helper functions that may come in handy for multiple client MVCs
  • Item definitions - weapons, armor, pets

##Installation

  • npm install

  • grunt - after you've made modifications and want to compile the dist files for browser

  • Node.js

    • require ('coffee-script')
    • require('./script/algos.coffee'), require('./script/helpers.coffee'), etc.
  • Browser

    • Use <script/> tag to include ./dist/habitrpg-shared.js it will export window.habitrpgShared object.
    • // Use `browser.debug.js' if you want to have sourcemaps. - EDIT: Only one file now, and it has sourcemaps. Fix this
  • Note how to invoke scoring function:

    • algos.score(user, task, direction), etc
    • TODO document all the functions

##Tests

  • npm install

##CSS Shared CSS between the website and the mobile app is a fuzzy area. Spritesheets definitely go in habitrpg-shared (since mobile uses them too). Other things, like customizer buttons, may want to go here? As you find sharable components, (1) move them from the website into habitrpg-shared, (2) remove from website & make sure all html/css references are updated.

Currently, all or most spritesheets are available. They're in css/*.css, but that's not what you want. You want /spritesheets.css which is the concat'd file (using grunt) which includes all the spritesheets. I'd prefer this be in /dist/spritesheets.css for consistency, but it's having image referencing weirdness