Fog of war

This commit is contained in:
gamer147
2026-04-07 07:56:48 -04:00
parent 344efee7b4
commit 97909235ff
8 changed files with 109 additions and 11 deletions

View File

@@ -90,14 +90,14 @@ func _pressed() -> void:
player_unit.info_template = UnitInfo.new()
player_unit.info_template.name = \"Putit\"
player_unit.allegiance_template = PLAYER_ALLEGIANCE
combat_map.deploy_unit(player_unit, Vector2i(2, 2))
combat_map.deploy_unit(player_unit, Vector2i(3, 3))
var enemy_unit: Unit = UNIT_SCENE.instantiate()
enemy_unit.stat_template = UnitStats.new(50)
enemy_unit.info_template = UnitInfo.new()
enemy_unit.info_template.name = \"Putit\"
enemy_unit.allegiance_template = ENEMY_ALLEGIANCE
combat_map.deploy_unit(enemy_unit, Vector2i(2, 1))
combat_map.deploy_unit(enemy_unit, Vector2i(6, 3))
var tree := get_tree()
var root := tree.root