07907ae28f9073955b3c1f9338bd97e96401c41a
Pouring a potion on an egg hatches the pet instantly. Until such time as that feature is changed, I've removed the "one day" from the relevant string.
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
##Installation
npm install
make
-
Node.js
require ('coffee-script')var shared = require('./index.js')orrequire('./script/algos.coffee')if you only need one file.
-
Browser
- Use
<script/>tag to include ./browser/browser.js it will exportwindow.habitrpgSharedobject. - Use `browser.debug.js' if you want to have sourcemaps.
- Use
-
Note how to invoke scoring function:
-
algos.score = function (user, task, direction) {}
##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/vendorfrom 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/"
Languages
JavaScript
51.7%
Vue
23.8%
CSS
23.7%
SCSS
0.7%