Goals: Make a very basic game and learn the basics of SDL2(https://www.libsdl.org/download-2.0.php) or SFML(https://www.sfml-dev.org/).
Video: https://www.ponggame.org/pong-no-flash.php 1 player game (vs the computer) User 1 moves paddle back and forth as ball travels to other side of table. Game is over if ball travels past the paddle.
- Create SDL2 window and be able to close window. - X
- Animate a moving ball on the screen. (One class.) - X
- Collision detection.
- paddles - X
- sides (top and bottom)
- disappears/game stops if going past the end
- Trajectory of ball.
- left to right - X
- angles of bounce (TODO: make this dependent on where the ball hits the paddle)
- How to speed up ball. 2.5. Player class
- Parameterized initial position.
- Parameterized key bindings.
- Animate a moving paddle on the screen. (One class.) - X
- Moving left and right - X
- Create automatic paddle movement for computer player.
- Keeping score and displaying score. (Another class.)