import pygame class Table(object): def __init__(self, x, y, game, height=2, width=4): self.x = x self.y = y self.height = height self.width = width self.game = game game.idTable += 1 self.isBusy = False self.id = game.idTable self.image = pygame.image.load("./Images/tableSmall.png") def draw(self): table = pygame.Rect(self.x, self.y, 50 * self.width, 50 * self.height) #pygame.draw.rect(self.game.screen, (100, 0, 100,), table) self.game.screen.blit(self.image, (self.x, self.y))