Monday, 27 March 2017

Player Score


At the end of the game, the player would need to get 5,000 points. I have set up a code that will check if the player has gotten that many points and will end the game once the player gets it.
https://gyazo.com/4a947d64837db02b02d916163cd05824
In here, you can see the score go up whenever the player defeats an enemy.


https://gyazo.com/240c97be0a8772ac55ab3b51ad229e1d
Here's the code that ends the game when the player gets 5,000 points.


https://gyazo.com/097a7d1f32f6861f4fc32291cb2e58bf
Here's the code for settings up how many points an enemy gives.

No comments:

Post a Comment