diff options
-rw-r--r-- | racing/lobby.gd | 3 | ||||
-rw-r--r-- | racing/panelEnd.gd | 7 | ||||
-rw-r--r-- | racing/panelLevelSwitch.gd | 13 | ||||
-rw-r--r-- | racing/worldTransporter.gd | 6 |
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 @@ | |||
1 | extends "res://scripts/panelEnd.gd" | ||
2 | |||
3 | |||
4 | func 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 @@ | |||
1 | extends "res://scripts/panelLevelSwitch.gd" | ||
2 | |||
3 | |||
4 | func handle_correct(): | ||
5 | # We don't call the base method because we want to suppress the original | ||
6 | # behaviour. | ||
7 | pass | ||
8 | |||
9 | |||
10 | func _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 @@ | |||
1 | extends "res://scripts/worldTransporter.gd" | ||
2 | |||
3 | |||
4 | func _body_entered(_body): | ||
5 | # Do not transport the player. | ||
6 | pass | ||