corrected tractor class, write methods
This commit is contained in:
parent
fcebf4bf42
commit
600fbcebf2
12
src/tractor.py
Normal file
12
src/tractor.py
Normal file
@ -0,0 +1,12 @@
|
||||
from pygame.sprite import Sprite
|
||||
|
||||
class Plant(Sprite):
|
||||
def __init__(self,engine,transmission,pos_x,pos_y):
|
||||
super.__init__()
|
||||
self.engine=engine
|
||||
self.transmission=transmission
|
||||
self.pos_x=pos_x
|
||||
self.pos_y=pos_y
|
||||
self.fuel=100
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user