This commit is contained in:
v7eZ3t 2021-03-28 23:33:46 +02:00
parent c981921fbd
commit cd8686fa46
2 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,6 @@
class Tractor:
def __init__(self, horizontal_index, vertical_index):
def __init__(self, horizontal_index, vertical_index, hitch, fuel_tank):
self.horizontal_index = horizontal_index
self.vertical_index = vertical_index
self.vertical_index = vertical_index
self.hitch = hitch
self.fuel_tank = fuel_tank

View File

@ -18,7 +18,7 @@ vertical_change = 0
board = Board.generate()
tractor = Tractor(horizontal_index=0, vertical_index=0)
tractor = Tractor(horizontal_index=0, vertical_index=0, hitch="nothing", fuel_tank=100)
clock = pygame.time.Clock()