summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-02-09 01:25:12 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2024-02-09 01:25:12 -0500
commit56857faf6f9149e0cd48cb9bfc842849c796f3a7 (patch)
treeb547c12654b1db67b7d6f55df9b7b19756b2ad5b
parent46d7e793031a4ac534aa50da43408f4330abe8dc (diff)
downloadlingo-race-56857faf6f9149e0cd48cb9bfc842849c796f3a7.tar.gz
lingo-race-56857faf6f9149e0cd48cb9bfc842849c796f3a7.tar.bz2
lingo-race-56857faf6f9149e0cd48cb9bfc842849c796f3a7.zip
Prevent level switching
-rw-r--r--racing/lobby.gd3
-rw-r--r--racing/panelEnd.gd7
-rw-r--r--racing/panelLevelSwitch.gd13
-rw-r--r--racing/worldTransporter.gd6
4 files changed, 29 insertions, 0 deletions
diff --git a/racing/lobby.gd b/racing/lobby.gd index c6a3e24..86e4920 100644 --- a/racing/lobby.gd +++ b/racing/lobby.gd
@@ -84,7 +84,10 @@ func _ready():
84 84
85 if global.get_node_or_null("RaceManager") == null: 85 if global.get_node_or_null("RaceManager") == null:
86 installScriptExtension(ResourceLoader.load("user://maps/racing/load.gd")) 86 installScriptExtension(ResourceLoader.load("user://maps/racing/load.gd"))
87 installScriptExtension(ResourceLoader.load("user://maps/racing/panelLevelSwitch.gd"))
88 installScriptExtension(ResourceLoader.load("user://maps/racing/panelEnd.gd"))
87 installScriptExtension(ResourceLoader.load("user://maps/racing/player.gd")) 89 installScriptExtension(ResourceLoader.load("user://maps/racing/player.gd"))
90 installScriptExtension(ResourceLoader.load("user://maps/racing/worldTransporter.gd"))
88 91
89 var race_manager_script = load("user://maps/racing/manager.gd") 92 var race_manager_script = load("user://maps/racing/manager.gd")
90 var race_manager = race_manager_script.new() 93 var race_manager = race_manager_script.new()
diff --git a/racing/panelEnd.gd b/racing/panelEnd.gd new file mode 100644 index 0000000..136777d --- /dev/null +++ b/racing/panelEnd.gd
@@ -0,0 +1,7 @@
1extends "res://scripts/panelEnd.gd"
2
3
4func handle_correct():
5 # We don't call the base method because we want to suppress the original
6 # behaviour.
7 pass
diff --git a/racing/panelLevelSwitch.gd b/racing/panelLevelSwitch.gd new file mode 100644 index 0000000..26afe01 --- /dev/null +++ b/racing/panelLevelSwitch.gd
@@ -0,0 +1,13 @@
1extends "res://scripts/panelLevelSwitch.gd"
2
3
4func handle_correct():
5 # We don't call the base method because we want to suppress the original
6 # behaviour.
7 pass
8
9
10func _handle_correct():
11 # We don't call the base method because we want to suppress the original
12 # behaviour.
13 pass
diff --git a/racing/worldTransporter.gd b/racing/worldTransporter.gd new file mode 100644 index 0000000..1488907 --- /dev/null +++ b/racing/worldTransporter.gd
@@ -0,0 +1,6 @@
1extends "res://scripts/worldTransporter.gd"
2
3
4func _body_entered(_body):
5 # Do not transport the player.
6 pass