Labyrinth
Unsere Idee:
Wir haben ein Labyrinth gemacht, in dem es verschiedenste Hindernisse gibt. Zum Einem gibt es Hindernisse, wie Lava, worüber man springen muss. Zum Anderen spawnen Monster, die man bekämpfen muss. Allerdings hat es auch Schätze in denen sich Rüstungen oder Schwerter befinden, die einem dann behilflich sind, wenn man gegen die Monster kämpft. Diese Schätze sind aber an Orten versteckt, bei denen man nicht durchläuft, wenn man die korrekte Route wählt. Wenn man das Labyrinth jedoch überstanden hat, kommt man in einen grossen Raum in dem noch mehr Gegner sind, die man besiegen muss damit man das Ziel erreicht. Dies wird natürlich schwierig , wenn man sich von Anfang an für den richtigen Weg entscheidet und nicht von den Schätzen profitieren konnte. Ist es dem Spieler möglich alle Hindernisse zu überwinden, hat er das Spiel gemeistert!
Labyrinth = [
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
[1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1],
[1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1],
[1,1,0,0,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,0,0,1,1,0,0,1,1,0,0,1,1],
[1,1,0,0,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,0,0,1,1,0,0,1,1,0,0,1,1],
[1,1,0,0,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,0,0,1,1,0,0,1,1,0,0,1,1],
[1,1,0,0,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,0,0,1,1,0,0,1,1,0,0,1,1],
[1,1,0,0,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,0,0,1,1,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,1,1],
[1,1,0,0,0,0,3,3,3,3,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1],
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]]
def turm(block,i,j):
for t in range(11):
blocks.place(block,world(i,-63+t,j))
def turm2(block,i,j):
for t2 in range(3):
blocks.place(block,world(i,-63+t2,j))
for i in range(102):
for j in range(34):
zahl = Labyrinth[i][j]
if zahl == 0:
turm2(CRYING_OBSIDIAN,i,j)
if zahl == 1:
turm(CRYING_OBSIDIAN,i,j)
if zahl == 2:
turm2(LAVA,i,j)
if zahl == 3:
turm2(WATER,i,j)
player.teleport(world(2, -60, 2))
mobs_already_spawned = False
def player_walked():
global mobs_already_spawned
x = player.position().get_value(Axis.X)
y = player.position().get_value(Axis.Y)
z = player.position().get_value(Axis.Z)
if (23<x<26) and (y==-60) and (27<z<32):
if mobs_already_spawned == False:
mobs.spawn(ZOMBIE, world(24, -60, 22))
mobs_already_spawned = True
if (39<x<50) and (y==-60) and (3<z<7):
if mobs_already_spawned == False:
mobs.spawn(SKELETON, world(47, -60, 2))
mobs_already_spawned = True
if (34<x<40) and (y==-60) and (15<z<25):
if mobs_already_spawned == False:
mobs.spawn(CREEPER, world(38, -60, 31))
mobs_already_spawned = True
if (59<x<68) and (y==-60) and (16<z<21):
if mobs_already_spawned == False:
mobs.spawn(SPIDER, world(80, -60, 5))
mobs_already_spawned = True
if (59<x<68) and (y==-60) and (16<z<21):
if mobs_already_spawned == False:
mobs.spawn(CREEPER, world(84, -60, 12))
mobs_already_spawned = True
if (59<x<68) and (y==-60) and (16<z<21):
if mobs_already_spawned == False:
mobs.spawn(DROWNED, world(91, -60, 9))
mobs_already_spawned = True
if (59<x<68) and (y==-60) and (16<z<21):
if mobs_already_spawned == False:
mobs.spawn(DROWNED, world(86, -60, 23))
mobs_already_spawned = True
if (59<x<68) and (y==-60) and (16<z<21):
if mobs_already_spawned == False:
mobs.spawn(SPIDER, world(97, -60, 18))
mobs_already_spawned = True
if (59<x<68) and (y==-60) and (16<z<21):
if mobs_already_spawned == False:
mobs.spawn(SKELETON, world(82, -60, 28))
mobs_already_spawned = True
if (59<x<68) and (y==-60) and (16<z<21):
if mobs_already_spawned == False:
mobs.spawn(ZOMBIE, world(90, -60, 30))
mobs_already_spawned = True
player.on_travelled(WALK, player_walked)
player.on_travelled(SPRINT, player_walked)