$ ./guess_the_languageGame Dev
Game Dev · easy · #42

What does this line do?

health -= damage;
  1. Reduce health by the damage amount
  2. Heal the player back up to full
  3. Respawn the defeated enemy now
  4. Pause the whole running game loop
It subtracts incoming damage from health.
Play Game Dev ▸