Blackbluue / drone_drillers

Drone mining game
MIT License
0 stars 0 forks source link

2 add playable character #25

Closed Blackbluue closed 3 weeks ago

Blackbluue commented 3 weeks ago

Closes #2

Summary by Sourcery

This pull request introduces a new playable character class 'Player' and refactors the game state management with a new 'GameData' class. It also enhances the map generation and tile representation, and updates the dashboard to display additional game metrics.

sourcery-ai[bot] commented 3 weeks ago

Reviewer's Guide by Sourcery

This pull request introduces a playable character (Atron) to the game, refactors the map handling logic, and updates the GUI to accommodate the new character. The changes include modifications to the map data structure, the main game controller, the dashboard, and the tile representation. Additionally, new files for the player unit and game data management are added.

File-Level Changes

Files Changes
utils/map.py
utils/tile.py
utils/context.py
utils/icon.py
Refactored map data structure and tile representation to support new Atron character and updated context handling.
gui/main_controller.py
gui/dashboard.py
gui/graphic_tile.py
gui/label_counter.py
Updated GUI components to accommodate new Atron character and refactored game state management using GameData.
units/ally/atron.py
units/ally/drones/drone.py
units/ally/overlord.py
units/ally/player.py
Introduced Atron character, refactored existing units to inherit from Atron, and added new Player class.
main.py
utils/counter.py
utils/game_data.py
utils/icon_var.py
Added new utility classes and updated main function to handle command line arguments for map directory.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.