Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Pong

A simple Pong clone written in Lua using the LÖVE 2D game framework.

Overview

This project recreates the classic Pong arcade game. It features basic ball and paddle physics, collision detection, scoring, and sound effects. The game is implemented in Lua and runs on the LÖVE framework.

Features

  • Two-player Pong gameplay
  • Ball and paddle collision physics
  • Score tracking
  • Sound effects for paddle hits, wall bounces, and scoring
  • Retro pixel font

Requirements

How to Run

  1. Install LÖVE for your platform.
  2. Clone this repository or copy the pong folder.
  3. Run the game with:
    love pong
    Or, if you are inside the pong directory:
    love .

Controls

  • Player 1: W (up), S (down)
  • Player 2: Up Arrow (up), Down Arrow (down)
  • Enter or Return: Start game / Serve
  • Escape: Quit

Project Structure

pong/
├── Ball.lua         # Ball logic
├── Paddle.lua       # Paddle logic
├── class.lua        # Simple OOP helper
├── font.ttf         # Retro pixel font
├── main.lua         # Game entry point
├── push.lua         # Virtual resolution library
├── sounds/          # Sound effects
│   ├── paddle_hit.wav
│   ├── score.wav
│   └── wall_hit.wav

Credits

  • LÖVE 2D
  • Sound effects and font are open source or created for this project.