This repository contains a version of the classic game Pong. This project was created based on CS50's Introduction to Game Development course.
The game is written in Lua using the LÖVE 2D game engine.
Before running the game, you need to install the LÖVE 2D game engine. Here are the installation guides based on your operating system:
- 'Windows': LÖVE for Windows
- 'MacOS': LÖVE for MacOS
- 'Ubuntu': Use the terminal command
sudo apt-get install love
To play the game, you will first need to clone or download this repository to your local system.
git clone https://github.com/shanginn/CS50GameDev-pong.git
After downloading, navigate into the project directory.
cd CS50GameDev-pong
To start the game, you need to run LÖVE 2D in the project's directory.
If you're on Windows or MacOS, you can simply drag the whole project folder onto the LÖVE application icon.
If you're on Linux, use the terminal to navigate to the project directory, then run the following command:
love .
This will start the game.
Player 1:
- W: Move paddle up
- S: Move paddle down
Player 2:
- Up Arrow: Move paddle up
- Down Arrow: Move paddle down
To start the game, press Enter.