import pygame from Global_variables import Global_variables as G_var class Shelf: def __init__(self, window, x, y): self.window = window self.width = G_var().RECT_SIZE self.length = 6*G_var().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, G_var().SHELF_COLOR, self.block) # pygame.draw.line(self.window, (255, 255, 255), (self.x, self.y), (self.x, self.y + self.length))