Move block working. /JL

This commit is contained in:
2025-04-22 20:23:05 +02:00
parent d5f9188865
commit 2e3460dca5
4 changed files with 19 additions and 10 deletions

View File

@@ -1,4 +1,5 @@
import pygame
from enums import BrickColor
class DropZone():
def __init__(self, tile_size, width, height):
@@ -6,7 +7,6 @@ class DropZone():
self.width = width
self.height = height
self.tile_size = tile_size
self.dropzone.fill((0, 0, 0)) # Fill with black
self.grid_row = [" "] * self.width
self.grid = [self.grid_row] * self.height
@@ -14,5 +14,5 @@ class DropZone():
screen.blit(self.dropzone, (self.tile_size * 4, self.tile_size * 1))
def draw_brick(self, brick, location):
self.dropzone.fill(BrickColor.Black.value)
self.dropzone.blit(brick, (location[0] * self.tile_size, location[1] * self.tile_size))