This commit is contained in:
alstergym
2026-09-10 09:57:32 +02:00
parent 66465c5994
commit a8d8258a79
6 changed files with 209 additions and 0 deletions
+67
View File
@@ -0,0 +1,67 @@
from Avatar import Avatar
from Fahrzeug import Fahrzeug
from Map import Map
from ItemBox import ItemBox
# MAPS:
print ("Das sind die Maps:")
#regenbogenstrecke:
regenbogenstrecke = Map("Regenbogenstrecke", 5, 20)
print (str(regenbogenstrecke))
#wüstenstrecke
wüstenstrecke = Map("Wüstenstrecke", 200, 500)
print (str(wüstenstrecke))
# AVATARE:
print ("Das sind die Avatare:")
#mario
mario = Avatar("Mario", 5)
#bowser
bowser = Avatar("Bowser", 8)
print (str(bowser))
#luigi
luigi = Avatar("Luigi", 5)
print (str(luigi))
# FAHRZEUGE:
print ("Das sind die Für die Map verfügtbaren Fahrzeuge:")
#Kart:
kart = Fahrzeug("Kart", 15)
print(kart)
kart.fahren()
#Motorrad:
motorrad = Fahrzeug("Motorrad", 11)
print(motorrad)
motorrad.fahren()
#Mario und Motorrad
mario.fahrzeug_zuweisen(motorrad)
print("------------------------")
print(mario.nameundfahrzeug())
# ITEMBOXEN:
print ("das sind die auf der maps zu findenen Items:")
#Pilz:
pilz = ItemBox("Pilz", 20, 25)
print (pilz)