Room system added
This commit is contained in:
@@ -80,20 +80,11 @@ const UNIT_SCENE = preload(\"res://prefabs/unit.tscn\")
|
||||
const PLAYER_ALLEGIANCE = preload(\"res://resources/allegiance_types/player_allegiance.tres\")
|
||||
const ENEMY_ALLEGIANCE = preload(\"res://resources/allegiance_types/enemy_allegiance.tres\")
|
||||
|
||||
const MAP_LAYOUT := \"\"\"\\
|
||||
#####
|
||||
#...#
|
||||
#...#
|
||||
#...#
|
||||
#####\"\"\"
|
||||
|
||||
func _pressed() -> void:
|
||||
await get_tree().create_timer(0.2).timeout
|
||||
var combat_instance := COMBAT_SCENE.instantiate()
|
||||
var combat_map: CombatMap = combat_instance.find_child(\"CombatMap\")
|
||||
|
||||
combat_map.load_map(MAP_LAYOUT)
|
||||
|
||||
var player_unit: Unit = UNIT_SCENE.instantiate()
|
||||
player_unit.stat_template = UnitStats.new(50)
|
||||
player_unit.info_template = UnitInfo.new()
|
||||
|
||||
Reference in New Issue
Block a user