added battle state as globals, adds half working battle flow
This commit is contained in:
parent
b09eee0805
commit
4963131d3e
12 changed files with 250 additions and 95 deletions
|
|
@ -18,14 +18,15 @@ func update() -> void:
|
|||
%PartyFighterHealthbar.max_value = player_fighter.health
|
||||
%PartyFighterHealthbar.value = player_fighter.current_health
|
||||
|
||||
%EnemyMonsterLevel.text = "Lv. %s" % player.enemy.level
|
||||
%EnemyMonsterName.text = player.enemy.name
|
||||
%EnemyMonsterHealthbar.max_value = player.enemy.health
|
||||
%EnemyMonsterHealthbar.value = player.enemy.current_health
|
||||
%EnemyMonsterLevel.text = "Lv. %s" % player.enemy.data.level
|
||||
%EnemyMonsterName.text = player.enemy.data.name
|
||||
%EnemyMonsterHealthbar.max_value = player.enemy.data.health
|
||||
%EnemyMonsterHealthbar.value = player.enemy.data.current_health
|
||||
|
||||
func _on_battle_button_pressed() -> void:
|
||||
print("attack here")
|
||||
# attack here
|
||||
#%MainBattleMenu.visible = false
|
||||
#%BattleMovesMenu.visible = true
|
||||
pass # Replace with function body.
|
||||
print("attacking enemy")
|
||||
Utils.get_player().attack_enemy()
|
||||
|
||||
|
||||
func set_message(msg: String) -> void:
|
||||
%Message.text = msg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue