A 2D Head Ball game built with Pygame. Originally started 6 years ago and now finished thanks to AI.
Play against the computer, or with a friend on the same keyboard. Matches last 60 seconds; jump, shoot, and head the ball into the other goal.

Installation & Run
You need Python 3 installed.
- Download the package with the floppy disk at the top of this page and unzip it.
Install the dependency:
pip install pygameRun the game from the
kafatopuPythonfolder:python app.py
Controls
| Player | Move | Jump | Shoot |
|---|---|---|---|
| Player 1 (Left) | A / D (or Left / Right) | W (or Up) | Space / F |
| Player 2 (Right) | Left / Right | Up | Enter / Down |
P: Pause / ResumeR: Restart matchESC: Back to menu / Exit
Files
| File | What it does |
|---|---|
app.py | Entry point and game loop |
player.py | Player movement, jumping and shooting |
ball.py | Ball physics |
ai.py | Computer opponent |
ui.py | Menu, scoreboard and goal celebrations |
sounds.py | Sound effects |
*.png, env.jpg | Players, ball, goals and the pitch |
