logan-r / vilify

Unleash Your Inner Mad Scientist and Destroy the World (with Ice Cream) in this Open Source HTML5 Game
http://logan-r.github.io/vilify/
GNU General Public License v3.0
32 stars 25 forks source link

Add Hero Class #86

Closed logan-r closed 9 years ago

logan-r commented 9 years ago

Create a class for heroes. This class contain three objects as properties: model (hero.m), view (hero.v) and controller (hero.c). The model should have speed, health, and maxHealth properties, as well as the type of hero (e.g. "agent" or "Inferno"). The view should be a phaser sprite. Finally, the controller should be an empty object.