forked from s444426/AIProjekt
21 lines
650 B
Python
21 lines
650 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
|
|
self.myimage = pygame.image.load("./assets/player.png").convert()
|
|
self.myimage = pygame.transform.scale(self.myimage, (99, 99))
|
|
self.screen = pygame.display.set_mode((500, 500))
|
|
|
|
|
|
def rysowanie(self):
|
|
rect = self.myimage.get_rect()
|
|
rect.center = (self.x+50, self.y+50)
|
|
self.screen.blit(self.myimage, rect) |