- Challenge 1: Can you make the ball bounce off all four edges of the screen?
- Challenge 2: Can you make the paddle x move with the mouse?
- Challenge 3: Can you make the ball bounce when it hits the paddle?
- Challenge 4: Can you reset the game when the ball hits the bottom edge?
- Challenge 5: Can you add a score label?
- Challenge 6: What would make it more fun?
- Hint: See the finished version
- Bonus challenge: Can you turn the game into a 2-player game of Pong? Hit the 'Duplicate' button so both versions are saved.
- Challenge 1: Can you get the movement in all 4 directions working? (Hint: look at both
keyPressed()andmoveEverything()functions) - Challenge 2: Can you add a random target to collect? (Hint: it would be great to have a function that can do this)
- Challenge 3: Can you call the
snakeHitTarget()function to determine when you collected the target? Your score should increase, the snake speed should increase, and the target should go to a new random location. - Challenge 4: Can you add a score label?
- Challenge 5: What should happen when you hit the edge? Maybe add a 'Click to Start' screen.
- Challenge 6: What would make it more fun?
- Hint: See the finished version
- Challenge 1: Can you restart the goomba at the right time?
- Challenge 2: Can you make Mario jump when you hit space bar? (Hint: there are 3 states for Mario - on the ground, moving up, and moving down)
- Challenge 3: Can you stop the game when Mario hits the goomba?
- Challenge 4: When should the score go up?
- Challenge 5: What would make it more fun?
- Hint: See the finished version
More Examples:
Note: You can also try moving from Trinket by switching to using the Processing IDE