import pygame from scripts.constants import * from scripts.item import Item from scripts.wall import Wall class Level: def __init__(self, game, items: list[Item], walls: list[Wall]): self.game = game # Items self.items = items # Level self.walls = walls def render(self, surface: pygame.Surface): for y in range(ROWS): for x in range(COLS): surface.blit( self.game.assets["floor_01"], pygame.Rect(x * 64, y * 64, TILE_SIZE, TILE_SIZE), ) # Wände for wall in self.walls: wall.render(surface)