Zaktualizuj 'Traktorek/Tractor.py'
This commit is contained in:
parent
29d8271d82
commit
c7d6842d51
@ -32,8 +32,10 @@ class Tractor(object):
|
||||
|
||||
if pygame.key.get_pressed()[pygame.K_SPACE]:
|
||||
# obecne pole
|
||||
self.pole = self.pos.y // 144 * 5 + self.pos.x // 144
|
||||
pole = self.pos.y // 144 * 5 + self.pos.x // 144
|
||||
|
||||
if len(self.road) == 0:
|
||||
sys.exit(0)
|
||||
if self.road[0] == self.pole + 1:
|
||||
self.pos.x = self.pos.x + 144
|
||||
elif self.road[0] == self.pole - 1:
|
||||
|
Loading…
Reference in New Issue
Block a user