asd
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
class Item:
|
||||
def __init__ (self, name, farbe, strength, function): #der Konstruktor
|
||||
self.name = name
|
||||
self.farbe = farbe
|
||||
self.strength = strength
|
||||
self.function = function
|
||||
|
||||
def use(self, kart):
|
||||
if self.function == 1:
|
||||
kart.vel = kart.vel + self.strength
|
||||
if self.function == 0:
|
||||
kart.vel = kart.vel - self.strength
|
||||
Reference in New Issue
Block a user