No description
Find a file
2013-05-15 07:01:59 -07:00
css remove padding around herobox 2013-04-15 16:14:37 -04:00
img update images 2013-04-10 14:59:58 -04:00
require.js-example Requred items.js from algos.coffee We do not need to pass items{} to scoring function anymore. 2013-05-15 21:59:01 +08:00
script Requred items.js from algos.coffee We do not need to pass items{} to scoring function anymore. 2013-05-15 21:59:01 +08:00
.gitignore reverting back to commonjs format, using browserify to compile 2013-03-12 17:41:32 -04:00
favicon.ico add a bunch of possible shared items for now, will clean up later 2013-03-11 14:50:00 -04:00
package.json Stripped all derby related code. 2013-05-15 12:51:21 +08:00
README.md Requred items.js from algos.coffee We do not need to pass items{} to scoring function anymore. 2013-05-15 21:59:01 +08:00

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

  • Assets - sprites, images, etc
  • CSS - especially, esp. sprite-sheet mapping
  • Algorithms - level up algorithm, scoring functions, etc
  • Item definitions - weapons, armor, pets

You only need to include algos.coffee It will include the rest as necessary.

Note how to invoke scoring function:

  • algos.score = function (user, task, direction) {}

##Installation

  • Node.js - just include as usual.
  • Browser - use requre.js with "cs" plugin to include files directly into your index.html see require.js-example folder. (run plain http-server from within equire.js-example folder and point your browser to index.html to see how it works)

##CSS Shared CSS between the website and the mobile app is a fuzzy area. For now we'll have the website define canonical CSS, and share that down the mobile app.

To do so,

  • go to the website repo
  • remove the first line @import nib/vendor from index.styl
  • stylus styles/app/index.styl
  • copy the output index.css into this shared/css directory
  • remove bootstrap @improrts, find/replace "img/" with "../img/"