diff options
author | Henrique Alves <henriquelalves@gmail.com> | 2022-07-17 04:24:00 -0300 |
---|---|---|
committer | Henrique Alves <henriquelalves@gmail.com> | 2022-07-17 04:24:00 -0300 |
commit | 5b55438f5805d18bba0b5b773e3af3a2fd3858ea (patch) | |
tree | 00f0cf15c30358c69d55bc4b1d62e8636b90842e /Scenes/Builder.gd | |
parent | 2babce369e4fdfc96328da97d48dd238381cb2e6 (diff) | |
download | gamejam-gmtk-2022-5b55438f5805d18bba0b5b773e3af3a2fd3858ea.tar.gz gamejam-gmtk-2022-5b55438f5805d18bba0b5b773e3af3a2fd3858ea.tar.bz2 gamejam-gmtk-2022-5b55438f5805d18bba0b5b773e3af3a2fd3858ea.zip |
onboarding
Diffstat (limited to 'Scenes/Builder.gd')
-rw-r--r-- | Scenes/Builder.gd | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/Scenes/Builder.gd b/Scenes/Builder.gd index 8413e6e..8e82351 100644 --- a/Scenes/Builder.gd +++ b/Scenes/Builder.gd @@ -246,16 +246,18 @@ func choose_divider() -> int: func build_layout(corner : Vector2, crystals : int, current_stage : int, dungeon): var phi = 0 - match randi() % 4: - 1: - corner += Vector2(room_size - 1, 0) - phi = PI / 2 - 2: - corner += Vector2(room_size - 1, room_size - 1) - phi = PI - 3: - corner += Vector2(0, room_size - 1) - phi = PI * 3 / 2 + + if Global.current_stage != 0: + match randi() % 4: + 1: + corner += Vector2(room_size - 1, 0) + phi = PI / 2 + 2: + corner += Vector2(room_size - 1, room_size - 1) + phi = PI + 3: + corner += Vector2(0, room_size - 1) + phi = PI * 3 / 2 var space = Space.new(corner, phi, dungeon) match choose_layout(current_stage): |