README.md aktualisiert
This commit is contained in:
@@ -2,47 +2,47 @@
|
|||||||
|
|
||||||
## Strcuture
|
## Strcuture
|
||||||
|
|
||||||
pixel_tower_defense/
|
pixel_tower_defense/
|
||||||
|
|
|
|
||||||
|-- main.py Entry point. Instantiates Game and calls run().
|
|-- main.py Entry point. Instantiates Game and calls run().
|
||||||
| Editor is commented out but importable.
|
| Editor is commented out but importable.
|
||||||
|
|
|
|
||||||
|-- editor.py Standalone map editor (separate from the game loop).
|
|-- editor.py Standalone map editor (separate from the game loop).
|
||||||
| Run by swapping the commented lines in main.py.
|
| Run by swapping the commented lines in main.py.
|
||||||
|
|
|
|
||||||
|-- requirements.txt Python dependencies (pygame, pygame_gui).
|
|-- requirements.txt Python dependencies (pygame, pygame_gui).
|
||||||
|
|
|
|
||||||
|-- assets/
|
|-- assets/
|
||||||
| |-- images/
|
| |-- images/
|
||||||
| | |-- tiles/
|
| | |-- tiles/
|
||||||
| | | |-- test/ Base/test tile set
|
| | | |-- test/ Base/test tile set
|
||||||
| | | |-- jungle/ Jungle tile set
|
| | | |-- jungle/ Jungle tile set
|
||||||
| | | `-- desert/ Desert tile set (currently active in gameplay)
|
| | | `-- desert/ Desert tile set (currently active in gameplay)
|
||||||
| | `-- entities/
|
| | `-- entities/
|
||||||
| | |-- enemies/
|
| | |-- enemies/
|
||||||
| | | `-- enemy.png Single enemy sprite
|
| | | `-- enemy.png Single enemy sprite
|
||||||
| | `-- towers/
|
| | `-- towers/
|
||||||
| | `-- cannon/
|
| | `-- cannon/
|
||||||
| | |-- shoot/ Animation frames (0.png, 1.png, ...) for the shoot action
|
| | |-- shoot/ Animation frames (0.png, 1.png, ...) for the shoot action
|
||||||
| | `-- red_cannon.png Red tint variant shown when placement is blocked
|
| | `-- red_cannon.png Red tint variant shown when placement is blocked
|
||||||
| |-- maps/
|
| |-- maps/
|
||||||
| | `-- desert.json Serialised tilemap for the desert level,
|
| | `-- desert.json Serialised tilemap for the desert level,
|
||||||
| | contains: tilemap dict, tile_size, waypoints list
|
| | contains: tilemap dict, tile_size, waypoints list
|
||||||
| `-- theme/
|
| `-- theme/
|
||||||
| `-- theme.json pygame_gui UI theme configuration
|
| `-- theme.json pygame_gui UI theme configuration
|
||||||
|
|
|
|
||||||
`-- game/
|
`-- game/
|
||||||
|-- game.py Core Game class (window, clock, asset loading, screen routing)
|
|-- game.py Core Game class (window, clock, asset loading, screen routing)
|
||||||
|-- camera.py Camera class (pan + zoom, world<->screen coordinate conversion)
|
|-- camera.py Camera class (pan + zoom, world<->screen coordinate conversion)
|
||||||
|-- tilemap.py Tilemap class (load/save JSON maps, tile rendering, placement rules)
|
|-- tilemap.py Tilemap class (load/save JSON maps, tile rendering, placement rules)
|
||||||
|-- enemy.py Enemy, EnemyGroup, HealthBar classes
|
|-- enemy.py Enemy, EnemyGroup, HealthBar classes
|
||||||
|-- tower.py Tower, TowerGroup classes
|
|-- tower.py Tower, TowerGroup classes
|
||||||
|-- util.py Image loaders, coordinate converters, Animation class
|
|-- util.py Image loaders, coordinate converters, Animation class
|
||||||
`-- screens/
|
`-- screens/
|
||||||
|-- base_screen.py Abstract base class for all screens
|
|-- base_screen.py Abstract base class for all screens
|
||||||
|-- main_menu.py Main menu screen (Play / Quit buttons)
|
|-- main_menu.py Main menu screen (Play / Quit buttons)
|
||||||
`-- game_play.py Gameplay screen (tilemap, enemies, towers, camera, UI)
|
`-- game_play.py Gameplay screen (tilemap, enemies, towers, camera, UI)
|
||||||
|
|
||||||
## Start the Game
|
## Start the Game
|
||||||
|
|
||||||
python main.py
|
python main.py
|
||||||
|
|||||||
Reference in New Issue
Block a user