old version of the main script
This commit is contained in:
18
Scenes/Main/main_old.gd
Normal file
18
Scenes/Main/main_old.gd
Normal file
@@ -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
|
||||||
1
Scenes/Main/main_old.gd.uid
Normal file
1
Scenes/Main/main_old.gd.uid
Normal file
@@ -0,0 +1 @@
|
|||||||
|
uid://c2kiqy4eqhpoi
|
||||||
Reference in New Issue
Block a user