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

What does this guarantee?

health = Mathf.Clamp(health, 0, 100);
  1. Health stays within 0 to 100
  2. Health decreases every frame
  3. Health resets to 100
  4. Health can go negative
Clamp returns the value limited to the given range.
Play Game Dev ▸