From 56857faf6f9149e0cd48cb9bfc842849c796f3a7 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 9 Feb 2024 01:25:12 -0500 Subject: Prevent level switching --- racing/lobby.gd | 3 +++ racing/panelEnd.gd | 7 +++++++ racing/panelLevelSwitch.gd | 13 +++++++++++++ racing/worldTransporter.gd | 6 ++++++ 4 files changed, 29 insertions(+) create mode 100644 racing/panelEnd.gd create mode 100644 racing/panelLevelSwitch.gd create mode 100644 racing/worldTransporter.gd (limited to 'racing') 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(): if global.get_node_or_null("RaceManager") == null: installScriptExtension(ResourceLoader.load("user://maps/racing/load.gd")) + installScriptExtension(ResourceLoader.load("user://maps/racing/panelLevelSwitch.gd")) + installScriptExtension(ResourceLoader.load("user://maps/racing/panelEnd.gd")) installScriptExtension(ResourceLoader.load("user://maps/racing/player.gd")) + installScriptExtension(ResourceLoader.load("user://maps/racing/worldTransporter.gd")) var race_manager_script = load("user://maps/racing/manager.gd") 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 @@ +extends "res://scripts/panelEnd.gd" + + +func handle_correct(): + # We don't call the base method because we want to suppress the original + # behaviour. + 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 @@ +extends "res://scripts/panelLevelSwitch.gd" + + +func handle_correct(): + # We don't call the base method because we want to suppress the original + # behaviour. + pass + + +func _handle_correct(): + # We don't call the base method because we want to suppress the original + # behaviour. + 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 @@ +extends "res://scripts/worldTransporter.gd" + + +func _body_entered(_body): + # Do not transport the player. + pass -- cgit 1.4.1