Tomato Attack

Let's squash some veggies! Use the up arrow to shoot tomatoes at pesky produce and be sure not to miss!


Play this demo in full screen.

1) Set the backdrop for your game and create your tomato sprite.


Play this demo in full screen.

2) Create another sprite to shoot the tomato out of. Place the tomato at the shooting sprite's position.


Play this demo in full screen.

3) Have the shooting sprite move left and right with the arrow keys (or other keys). Hide the tomato for now.


Play this demo in full screen.

4) When a key is pressed (the up arrow in the demo), make the tomato shoot out of the shooting sprite. When it reaches the top of the screen, move it back to the shooting sprite and hide it again.


Play this demo in full screen.

5) Create a veggie sprite and place it in a random position.


Play this demo in full screen.

6) Create more veggie sprites and make them constantly appear at random times in random places. Have them appear for only short intervals of time.


Play this demo in full screen.

7) Create different costumes for the veggie sprites and have each veggie wear a random costume when it appears.


Play this demo in full screen.

8) If a tomato hits a veggie, make the veggie and tomato disappear and send the tomato back to the shooting sprite's position.


Play this demo in full screen.

9) Create a score variable and display it on the screen.


Play this demo in full screen.

10) Every time the tomato hits a veggie, increase the score.


Play this demo in full screen.

11) Create a lives variable and display it on the screen.


Play this demo in full screen.

12) Every time a tomato reaches the top of the screen without hitting a veggie, decrease the lives variable. Display a message explaining why the player lost a life for a few seconds.


Play this demo in full screen.

13) End the game when the life count reaches zero and display a game over message.


Play this demo in full screen.

14) Optional: Create instructions for the game and show them to the player before the game starts.


Play this demo in full screen.

15) Challenge: Create a visual effect for when the tomato hits a veggie.


Play this demo in full screen.