用 Python Pyglet 复刻的 Steel Force 经典游戏
| Files | Last commit | Last update |
|---|---|---|
| 5 months ago | ||
| 5 months ago | ||
| 5 months ago | ||
| 5 months ago | ||
| 5 months ago | ||
| 5 months ago | ||
| 5 months ago | ||
| 5 months ago | ||
| 5 months ago | ||
| 5 months ago |
Python Tank Battle
A tank battle game implemented with Python and pyglet, based on the original C# TankWar project.
Description
This is a classic tank battle game where players control a tank to destroy enemy tanks and avoid being hit. The game features:
- Player-controlled tank with keyboard input
- Enemy AI tanks
- Destructible walls and indestructible steel barriers
- Bullet collision detection
- Explosion effects
- Sound effects
Requirements
- Python 3.12+
- pyglet 2.0+
Installation
uv sync
Running the Game
uv run tank-battle
or
uv run src/client/main.py
Controls
- Move: W, A, S, D or Arrow Keys
- Shoot: Spacebar
Development Status
This project is currently under development as a Python port of the original C# TankWar game.
Project Structure
src/client/- Client-side game codesrc/server/- Server-side code (future implementation)assets/- Game assets (textures, audio)