From df937c69d01cdf7fd6b9324e4147fbf1cacce221 Mon Sep 17 00:00:00 2001 From: gdz Date: Sat, 13 Dec 2025 23:59:40 +0100 Subject: [PATCH] old version of the main script --- Scenes/Main/main_old.gd | 18 ++++++++++++++++++ Scenes/Main/main_old.gd.uid | 1 + 2 files changed, 19 insertions(+) create mode 100644 Scenes/Main/main_old.gd create mode 100644 Scenes/Main/main_old.gd.uid diff --git a/Scenes/Main/main_old.gd b/Scenes/Main/main_old.gd new file mode 100644 index 0000000..c136bd5 --- /dev/null +++ b/Scenes/Main/main_old.gd @@ -0,0 +1,18 @@ +extends Node + +@onready var _Map: Node = $Map +#@onready var _Player = $Player +#@onready var _Camera = $WorldCamera + +@export var mapSize: int = 15 + + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + var thread: Thread = Thread.new() + thread.start(func(): _Map.generate_map(mapSize)) + thread.wait_to_finish() + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta: float) -> void: + pass diff --git a/Scenes/Main/main_old.gd.uid b/Scenes/Main/main_old.gd.uid new file mode 100644 index 0000000..04002a9 --- /dev/null +++ b/Scenes/Main/main_old.gd.uid @@ -0,0 +1 @@ +uid://c2kiqy4eqhpoi