Difference between revisions of "W1524 Score!"
From Coder Merlin
(Created page with "thumb|Macombs Dam Pk td (2019-01-24) 074 - Heritage Field == Prerequisites == * W1523 Paddle Paddle == Re...") |
(No difference)
|
Revision as of 09:59, 21 January 2021
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder
Prerequisites[edit]
Research[edit]
Background[edit]
Experiment[edit]
Getting Started[edit]
Continue from the previous project; we'll be editing all of our files there. Enter into the Sources directory of the project.
john-williams@codermerlin: cd ~/Experiences/W1521/Sources/ScenesShell/
Exercises[edit]
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