import pygame RECT_SIZE = 50 class Shelf: def __init__(self, window, x, y): self.window = window self.color = (143, 68, 33) self.width = RECT_SIZE self.length = 6*RECT_SIZE self.x = x self.y = y self.block = pygame.Rect(self.x, self.y, self.width, self.length) def draw(self): pygame.draw.rect(self.window, self.color, self.block)