Bare Bones – Ammo Remaining Text

Next up on my agenda was to come up with a way to limit the amount of ammo the player has and a visual way for the player to track how much they have remaining. I basically wrapped the “if” statement that instantiates the bullet with another “if” statement that checks to make sure the player doesn’t have 0 (zero) ammo and if they do then no bullets will ever be created because of the else clause. In the future I will add ammo drops and the ability to reload but for now I am good with the one amount of ammo.

Leave a Reply

Your email address will not be published. Required fields are marked *