Would it be better to check if a boolean, lets say “hasAmmo” is true every tick to verify if the player has any ammo, versus checking the value of a variable every time the spacebar is pressed?
This is in reference to Booleans and Branches | GameDev.tv