python_pyglet_steel_force:基于 Python 与 Pyglet 的坦克对战游戏项目

用 Python Pyglet 复刻的 Steel Force 经典游戏

Branch1Tags0
FilesLast commitLast 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 code
  • src/server/ - Server-side code (future implementation)
  • assets/ - Game assets (textures, audio)

Introduction

用 Python Pyglet 复刻的 Steel Force 经典游戏

Customize your domain