Create a class for projectiles. This class contain three objects as properties: model (projectiles.m), view (projectiles.v) and controller (projectiles.c). The model should have weight, velocity properties, as well as the type of projectile (e.g. "bullet" or "lightning bolt"). The view should be a phaser sprite. Finally, the controller should be an empty object.
Create a class for projectiles. This class contain three objects as properties: model (
projectiles.m
), view (projectiles.v
) and controller (projectiles.c
). The model should haveweight
,velocity
properties, as well as the type of projectile (e.g. "bullet" or "lightning bolt"). The view should be a phaser sprite. Finally, the controller should be an empty object.