Template:W1524-Exercises
From Coder Merlin
Revision as of 09:55, 21 January 2021 by Chukwuemeka-tinashe (talk | contribs) (Created page with "{{Exercises| # Ensure that paddles can't be moved off (above or below) the screen # Add hit detection to the {{SwiftIdentifier|Paddle}} class # If a ball strikes a paddle it s...")
Exercises
- Ensure that paddles can't be moved off (above or below) the screen
- Add hit detection to the Paddle class
- If a ball strikes a paddle it should be deflected
- Add a scoreboard which will track the score of the game, incrementing the opponents score by 1 each time the ball strikes the wall