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.
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 havespeed
,health
, andmaxHealth
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.