Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.33 KB

README.md

File metadata and controls

51 lines (38 loc) · 1.33 KB

vocal-abduction

Pronunciation game using BYU-ODH/apeworm

Play in Google Chrome here: http://byu-odh.github.io/vocal-abduction/

Development

Requirements

  • npm
  • bower
  • TexturePacker Command Line Tool (should come with TexturePacker)
  • grunt-cli
  • ImageMagick
  • GraphicsMagick
  • sudo apt-get install optipng
  • sudo apt-get install jpegtran
  • sudo apt-get install libjpeg-progs

To prepare assets, run the following commands:

  • npm install (install grunt dependencies)
  • bower install (install bower dependencies)
  • grunt wiredep (adds bower dependencies to index.html)
  • grunt sprites (creates spritesheet)

The index.html file is found under the app/ directory.

If you have questions, feel free to post an issue.

Making Display Objects:

All JavaScript classes should be wrapped in require.js callbacks and should extend the DisplayObjectContainer class of PIXI.js. Here's a minimal example

in a file called app/js/FinglyFlangle.js

define(function() {
  function FinglyFlangle() {
    PIXI.DisplayObjectContainer.call(this);
    PIXI.EventTarget.call(this);
  };
  FinglyFlangle.prototype = Object.create(PIXI.DisplayObjectContainer.prototype);
  FinglyFlangle.prototype.constructor = FinglyFlangle;
  return FinglyFlangle;
});