forked from s444426/AIProjekt
17 lines
435 B
Python
17 lines
435 B
Python
import pygame
|
|
from pygame.math import Vector2
|
|
|
|
class Traktor(object):
|
|
|
|
def __init__(self, game):
|
|
#przekazywanie okiektu gra obiektowi traktor
|
|
self.game = game
|
|
self.x = 0
|
|
self.y = 0
|
|
self.punkt = 0
|
|
self.canSteer = True
|
|
|
|
|
|
def rysowanie(self):
|
|
obje = pygame.Rect(self.x, self.y ,99,99)
|
|
pygame.draw.rect(self.game.pole, (0,100,255), obje) |