From 600fbcebf26544aee913ea1fb7ee826a2d9c7588 Mon Sep 17 00:00:00 2001 From: Milosz Rolewski Date: Sun, 19 Mar 2023 19:56:45 +0100 Subject: [PATCH] corrected tractor class, write methods --- src/tractor.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/tractor.py diff --git a/src/tractor.py b/src/tractor.py new file mode 100644 index 0000000..eec13e4 --- /dev/null +++ b/src/tractor.py @@ -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 + +