Create a class for items. This class contain three objects as properties: model (hero.m), view (hero.v) and controller (hero.c). The model should have type property (i.e. "tech", "alien", or "chemical". The view should be a phaser sprite. Finally, the controller should be an empty object.
Create a class for items. This class contain three objects as properties: model (
hero.m
), view (hero.v
) and controller (hero.c
). The model should havetype
property (i.e. "tech", "alien", or "chemical". The view should be a phaser sprite. Finally, the controller should be an empty object.