added the game

This commit is contained in:
JHDev2006
2025-09-13 16:30:32 +01:00
parent 5ef689109b
commit 3773bdaf64
3616 changed files with 263702 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
class_name LevelEditorToggleDetection
extends Node
signal toggled
signal level_start
signal editor_start
func _ready() -> void:
await get_tree().physics_frame
if is_instance_valid(Global.level_editor):
Global.level_editor.level_start.connect(toggled.emit)
Global.level_editor.level_start.connect(level_start.emit)
Global.level_editor.editor_start.connect(editor_start.emit)
Global.level_editor.editor_start.connect(toggled.emit)