2020-04-07 16:58:12 +02:00
|
|
|
import pygame
|
|
|
|
from pygame.math import Vector2
|
|
|
|
|
|
|
|
class Traktor(object):
|
|
|
|
|
|
|
|
def __init__(self, game):
|
|
|
|
#przekazywanie okiektu gra obiektowi traktor
|
|
|
|
self.game = game
|
2020-04-28 21:15:29 +02:00
|
|
|
self.x = 0
|
|
|
|
self.y = 0
|
|
|
|
self.punkt = 0
|
|
|
|
self.canSteer = True
|
|
|
|
|
2020-04-07 16:58:12 +02:00
|
|
|
|
2020-04-28 21:15:29 +02:00
|
|
|
def rysowanie(self):
|
|
|
|
obje = pygame.Rect(self.x, self.y ,99,99)
|
|
|
|
pygame.draw.rect(self.game.pole, (0,100,255), obje)
|