Right now the player is a simple object in the app but it needs a lot of different things and benefits from being a separate JS object, in a separate file, this is also good for general characters.
The player at a minimum needs:
Name
Level
XP
Health
Power
Superpower
Strength
Armour
Attack speed
Movement speed
It may need some more depending on the gamestory.
An enemy is also a character and needs the same attributes as the player except XP.
Right now the player is a simple object in the app but it needs a lot of different things and benefits from being a separate JS object, in a separate file, this is also good for general characters.
The player at a minimum needs:
It may need some more depending on the gamestory.
An enemy is also a character and needs the same attributes as the player except XP.