AIprojekt-wozek/Shelf.py

16 lines
542 B
Python
Raw Normal View History

2022-03-24 20:02:21 +01:00
import pygame
from Global_variables import Global_variables as G_var
2022-03-24 20:02:21 +01:00
class Shelf:
def __init__(self, window, x, y):
self.window = window
self.width = G_var().RECT_SIZE
self.length = 6*G_var().RECT_SIZE
2022-03-24 20:02:21 +01:00
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)
2022-04-04 20:08:45 +02:00
# pygame.draw.line(self.window, (255, 255, 255), (self.x, self.y), (self.x, self.y + self.length))