Course: CS50's Introduction to Game Development
Assignment: Pong
Engine / Language: LÖVE2D (Lua)
This repository contains my implementation of the Pong assignment from CS50's Introduction to Game Development.
- ✔️ Added a basic AI to control the right paddle, which automatically moves to deflect the ball.
- ✔️ Preserved original paddle controls for the left paddle (W / S keys).
- ✔️ Kept the core game mechanics intact from the original skeleton code.
- ✔️ Ensured smooth gameplay using LÖVE2D framework (Lua).
This AI allows single-player mode where the computer plays against you!
-
Install LÖVE2D.
-
Clone this repository:
git clone https://github.com/huzaifa-gamedev/cs50-pong.git cd cs50-pong
-
Run the game:
love .
- W / S — Move left paddle up/down
- Up / Down arrow keys — Move right paddle up/down
- Enter — Start game / serve ball
- Escape — Quit game
- Original skeleton code & assets: CS50's Introduction to Game Development (Harvard). Licensed under CC BY-NC-SA 4.0.
- This implementation: © 2025 Muhammad Huzaifa Karim. Licensed under the MIT License.
For more details, see ATTRIBUTION.md.
Muhammad Huzaifa Karim GitHub Profile
For ideas, feedback, or collaboration, feel free to reach out via GitHub.
© 2025 Muhammad Huzaifa Karim. All rights reserved.