gf2:projekte:2024:minecraft:2d2gruppe3

Dies ist eine alte Version des Dokuments!


Gruppe 3 Idee: Eine Burg mit Türmchen; siehe Bild in Teamschat Innen: - Verwinkelte Räume mit automatischem Licht - Interaktionen: Schatztruhe suchen, Schlüssel nehmen und zur Treppe, hoch und dann erneut die Schatztruhe suchen…

Oberer Teil: start_pos = pos(0, -1, 0).to_world() to_pos = pos(0, 0, 0) selector_pos = start_pos

def position(x, y, z):

  new_x = start_pos.get_value(Axis.X) + x
  new_y = start_pos.get_value(Axis.Y) + y
  new_z = start_pos.get_value(Axis.Z) + z
  return world(new_x, new_y, new_z)

def ObererTeil(pos, l, h):

  to_pos = pos
  wp = pos.to_world()
  x = wp.get_value(Axis.X)
  y = wp.get_value(Axis.Y)
  z = wp.get_value(Axis.Z)
  blocks.fill(98, world(x, y, z), world(x + l, y + h, z + l), FillOperation.HOLLOW)

ObererTeil(position(2,4,6) ,5, 5)

Türmchen: Türmchen Fuktion def Türmchen():

  material=[STONE_BRICKS, MOSSY_STONE_BRICKS, CRACKED_STONE_BRICKS]
  shapes.sphere(RED_STAINED_GLASS, world(-152, -55, -259), 5, ShapeOperation.HOLLOW)
  for i in range(5):
      shapes.circle(material[randint(0, 2)], world(-152, -60 + i, -259), 5, Axis.Y, ShapeOperation.HOLLOW)

Türmchen()

  • gf2/projekte/2024/minecraft/2d2gruppe3.1744105199.txt.gz
  • Zuletzt geändert: 2025/04/08 11:39
  • von bluml