chore: restructured project
All checks were successful
Coding Quality / Build and analyze (pull_request) Successful in 2m10s

This commit is contained in:
2026-03-19 21:26:44 +01:00
parent b672d0d26c
commit 50e6f8b509
52 changed files with 204 additions and 177 deletions

View File

@@ -0,0 +1,6 @@
extends Node
var main_menue: PackedScene = preload("res://main.tscn")
func _input(event: InputEvent) -> void:
if event.is_action_pressed("main_menue"):
get_tree().change_scene_to_packed(main_menue)

View File

@@ -0,0 +1 @@
uid://c6n4axv3eoguq

View File

@@ -0,0 +1,12 @@
extends Node
class_name OpenLevelComponent
@onready var button: Button = get_parent() as Button
@export var level:PackedScene
func _ready() -> void:
button.pressed.connect(_on_button_pressed)
button.name = button.text
func _on_button_pressed() -> void:
get_tree().change_scene_to_packed(level)

View File

@@ -0,0 +1 @@
uid://bel5yfuiqithe

View File

@@ -0,0 +1,14 @@
extends Node
class_name QuitGame
@onready var button: Button = get_parent() as Button
func _ready() -> void:
button.pressed.connect(_on_button_pressed)
button.name = button.text
func _on_button_pressed() -> void:
get_tree().quit(0)

View File

@@ -0,0 +1 @@
uid://lh1hhx4q8nlu