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.

This page is a stub. You can help by expanding it.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution 2.5 License.