Skip to content

A Lua/LÖVE2D recreation of the classic Pong game, built for CS50's Introduction to Game Development. Includes paddle controls, ball physics, scoring, and sound effects.

License

Notifications You must be signed in to change notification settings

huzaifa-gamedev/cs50-pong

Repository files navigation

🎮 CS50 — Pong

LÖVE2D Language Course License

Course: CS50's Introduction to Game Development
Assignment: Pong
Engine / Language: LÖVE2D (Lua)


📋 Project Overview

This repository contains my implementation of the Pong assignment from CS50's Introduction to Game Development.


What I implemented:

  • ✔️ 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!


🎬 Gameplay Preview

Gameplay Preview


🚀 How to Run

  1. Install LÖVE2D.

  2. Clone this repository:

    git clone https://github.com/huzaifa-gamedev/cs50-pong.git
    cd cs50-pong
  3. Run the game:

    love .

🎯 Controls

  • W / S — Move left paddle up/down
  • Up / Down arrow keys — Move right paddle up/down
  • Enter — Start game / serve ball
  • Escape — Quit game

✨ Credits

  • Original skeleton code & assets: CS50's Introduction to Game Development (Harvard). Licensed under CC BY-NC-SA 4.0.

📄 License

  • This implementation: © 2025 Muhammad Huzaifa Karim. Licensed under the MIT License.

For more details, see ATTRIBUTION.md.


✍️ Author

Muhammad Huzaifa Karim GitHub Profile


📬 Contact

For ideas, feedback, or collaboration, feel free to reach out via GitHub.


© 2025 Muhammad Huzaifa Karim. All rights reserved.

About

A Lua/LÖVE2D recreation of the classic Pong game, built for CS50's Introduction to Game Development. Includes paddle controls, ball physics, scoring, and sound effects.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages