initial commit

This commit is contained in:
saarsena@gmail.com 2026-04-22 10:19:57 -04:00
commit c2bb3893a9
1038 changed files with 75846 additions and 0 deletions

View file

@ -0,0 +1,19 @@
extends Node3D
## Point entity marker that spawns the player actor at its position when the
## map finishes loading. The marker removes itself after spawning.
@export var actor_scene: PackedScene = preload("res://elements/actor/actor.tscn")
func _ready() -> void:
# Wait one frame so func_godot has finished setting our global_transform
# from the map file before we read it.
await get_tree().process_frame
var actor: Node3D = actor_scene.instantiate()
get_tree().current_scene.add_child(actor)
actor.global_transform = global_transform
actor.position = Grid.snap(actor.position)
queue_free()