I have a scoreboard and life displayer in my program. I have a random object flying around the screen. I want the user to be able to press on the flying object and they will earn an extra life each time they click on it. What is the code I would need for this?
↧