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 1up touches player object then lives = lives + 1
This page has been recommended for cleanup, integration, etc.