Skip to content

Latest commit

Β 

History

History
82 lines (63 loc) Β· 2.16 KB

README.md

File metadata and controls

82 lines (63 loc) Β· 2.16 KB

TerraNuka

A Scorched Earth-inspired 2D artillery game built in Python with Pygame and a Tkinter-based setup menu. Customize your players, terrain, and settings β€” then blast your friends into pixel dust.

πŸš€ Features

  • Procedural terrain generation with Perlin noise

  • Local multiplayer (2+ players)

  • Angle + power control cannon system

  • Explosions with terrain destruction and gravity-based collapse

  • Firework show on game over πŸŽ†

  • Simple HUD with fuel, power, and health display

  • Menu system to customize tanks, terrain, and game balance

πŸ“ Project Structure

TerraNuka/
β”œβ”€β”€ main.py                # Game entry point
β”œβ”€β”€ assets/                # Sounds
β”œβ”€β”€ core/                  # Game logic modules
β”‚   β”œβ”€β”€ config.py          # Constants, bounds
β”‚   β”œβ”€β”€ drawing.py         # HUD, explosion previews, health bars
β”‚   β”œβ”€β”€ entities.py        # Tanks, Projectiles, Fireworks
β”‚   β”œβ”€β”€ enums.py           # Game state enums
β”‚   β”œβ”€β”€ globals.py         # Shared runtime state & sounds
β”‚   β”œβ”€β”€ physics.py         # Collision, gravity, explosion logic
β”‚   β”œβ”€β”€ terrain.py         # Terrain generation
β”‚   └── ui.py              # Tkinter game setup menu

πŸ› οΈ Setup Instructions

  1. Clone the repo
git clone https://github.com/yourusername/TerraNuka.git
cd TerraNuka
  1. Create and activate a virtual environment
python3 -m venv .venv
source .venv/bin/activate
  1. Install dependencies
pip install -r requirements.txt

▢️ Running the Game

cd TerraNuka
python3 main.py
A Tkinter menu will open. After selecting your options, the game window will start.

🧱 Requirements

  • Python 3.8+

  • Pygame

  • noise (Perlin terrain generation)

  • Tkinter (usually comes with Python)

If tkinter is missing on Debian/Ubuntu:

sudo apt install python3-tk

πŸ”Š Sound Credits

All sounds are already royalty free, but feel free to replace assets/sounds/ with your own effects or other royalty-free audio.

βœ… To Do (Pull Requests Welcome!)

  • Add wind effects 🌬️

  • Expand missile types

  • Add AI bots

  • Add high score tracking

  • Polish game over screen