End of lesson 27

This commit is contained in:
2025-04-17 21:11:57 -03:00
parent c586c869b3
commit 6576c0155c
5 changed files with 37 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
extends MapEntity
class_name ChangeMapTrigger
@export_file() var map
@export var spawnpoint: Vector2i
@export var facing:Map.Direction
func execute(target):
CommandDispatcher.LOAD_MAP.emit(map, spawnpoint, facing)