Closed marouen-lamiri closed 9 years ago
Level formula defined as: required experience = (1.5^level)*100
Level can be retrieved by only keeping track of total player experience as such: level = log(tot experience/100)/log(1.5)
Tests # | Inputs | Expected Output | Status |
---|---|---|---|
Gain experience | Kill an enemy | The enemy gives experience points and the player receives said points | Pass |
Level up | Kill enough enemies such that you should level up | Player levels up (stats are increased and remaining experience points updates accordingly) | Pass |
Experience is gained when enemies are killed; when enough experience is accumulated the character automatically levels up. Stats are increased (based on the class) and health/energy is regenerated. Signing off.
As a user, i want to be able improve my character’s stats according to my preferences and character class[SP: 13] [Priority: 1]