Skip to content

Commit

Permalink
Changed settings display
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolejorn committed Aug 18, 2024
1 parent 4488d6c commit 18eb356
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"godotTools.editorPath.godot4": "c:\\Users\\sadie\\OneDrive\\Desktop\\Godot_v4.2-stable_win64.exe\\Godot_v4.2-stable_win64.exe"
}
6 changes: 5 additions & 1 deletion Settings.gd
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,8 @@ func _ready():

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
$PlayerStats.text = str(Global.heroes[Global.floorCount - 3])
Global.def = Global.heroes[Global.floorCount - 3][0]
Global.per = Global.heroes[Global.floorCount - 3][1]
Global.potions = Global.heroes[Global.floorCount - 3][2]
$PlayerStats.text = "Defense: " + str(Global.def) + " Persistence: " + str(Global.per) + " Potions: " + str(Global.potions)
#str(Global.heroes[Global.floorCount - 3])
Binary file not shown.
4 changes: 4 additions & 0 deletions global.gd
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ var score = 0

var heroes = [] #[defense, persistence, potionCount]

var def = 0
var per = 0
var potions = 0

var currentGoldString = "Current Gold: " + str(currentGold) + "\n"

enum Features {BOSS, CHEST}

0 comments on commit 18eb356

Please sign in to comment.