Files
EGJ25/scenes/main.gd
minimata aa6a5ca964
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 8s
Create tag and build when new code gets to main / Export (push) Successful in 2m17s
feat: wrong building scene
2025-06-28 14:33:47 +02:00

25 lines
584 B
GDScript

extends Node2D
@export_file("*.tscn") var wrong_building: String
@export_file("*.tscn") var next_level: String
@export var base_mode: GUIDEMappingContext
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
GUIDE.enable_mapping_context(base_mode)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_door_event_triggered(event_id: String) -> void:
if event_id == "right":
SceneLoader.load_scene(next_level)
return
SceneLoader.load_scene(wrong_building)