1up
A 1up is an item that once touched by the player object, gives the player one more life. Implementing 1ups in any game programming language is easy. Once the player object has touched the 1up, simply add 1 to the variable where you store the current amount of player lives. If desired, the item's instance could be removed from the game to prevent the player from accumulating infinite lives.
if 1up touches player object then lives = lives + 1
This page has been recommended for cleanup, integration, etc.
page revision: 9, last edited: 25 Feb 2021 03:06