A simple 2D fighting game where you play as a hero battling a goblin.
-
Install the required dependencies:
pip install -r requirements.txt -
Run the game:
python game.py
- Move Left: Left Arrow Key
- Move Right: Right Arrow Key
- Attack: Spacebar
- The hero (green rectangle) moves left and right using arrow keys
- Press spacebar to attack
- The goblin (red rectangle) moves automatically and attacks when close
- Both characters have health bars above them
- The first to reduce the other's health to 0 wins
- Simple 2D graphics
- Basic combat system
- Health bars for both characters
- Attack ranges visualization
- Automatic goblin AI