Skip to content

Making the basics work

Compare
Choose a tag to compare
@max-acc max-acc released this 05 Sep 08:04
· 41 commits to main since this release
5eeaf29

This is the first working version of the game Pong.
Content:

  • the joysticks get read and proved with a function

  • left and right joystick can control (with two seperate functions) the left and right bat

  • the ball will move from the left to the right when it is at the matrix position 1 and the other way around when it is at position 6

  • the ball will move down if it hits the upper end of the display and will move up if it hits the lower part of the display

  • if the ball hits the upper part of one of the bats it will move up

  • if the ball hits the middle part of one of the bats it won't move up either down

  • if the ball hits the lower part of one of the bats it will move down

  • the highscore gets printed if someone scores a point