refactor: remove redundant tile_size import and cleanup formatting

This commit is contained in:
Niklas Haiden
2026-05-08 17:25:34 +02:00
parent 89d72b2a2c
commit 83398c6eec
3 changed files with 4 additions and 7 deletions
-3
View File
@@ -74,7 +74,6 @@ class Game:
self.update(dt)
self.draw()
pygame.display.flip()
frame_count += 1
@@ -144,8 +143,6 @@ class Game:
self.screen.fill(color_void)
self.map.draw_map(self.screen, self.font)
# Draw by Y position so actors lower on the map appear in front.
for actor in sorted([self.player], key=lambda item: item.position.y):
actor.draw(self.screen)
+2 -3
View File
@@ -1,9 +1,8 @@
import pygame
from src.desk import Desk
from src.settings import DESK_WIDTH, DESK_HEIGHT
from src.settings import DESK_WIDTH, DESK_HEIGHT, tile_size
# Fenstergröße und Tile Größe (Felder)
tile_size = 30
# Fenstergröße
screen_w = 1900
screen_h = 900
+2 -1
View File
@@ -1,6 +1,7 @@
from typing import Mapping, Literal, Tuple
from src.map import tile_size
# Fenstergröße und Tile Größe (Felder)
tile_size = 30
# --- DESK ---
DESK_WIDTH = 70