Sztuczna_Inteligencja/pool.py
2019-04-14 18:33:30 +02:00

20 lines
584 B
Python

import pygame
class Pool(object):
def __init__(self, x, y, game):
self.x = x
self.y = y
self.game = game
game.idItem += 1
self.number = game.idItem
#self.id = game.idTable
self.image = pygame.image.load("./Images/water.jpg")
self.image = pygame.transform.scale(self.image, (50, 50))
self.type = "pool"
def draw(self):
self.rect = pygame.Rect(self.x, self.y, 50, 50)
#pygame.draw.rect(self.game.screen, (0, 0, 0), self.table)
self.game.screen.blit(self.image, (self.x, self.y))