Fine tuning

This commit is contained in:
2025-09-12 23:05:23 +02:00
parent 25287c57fc
commit 0a2143d4c8
18 changed files with 49 additions and 60 deletions

View File

@ -48,7 +48,7 @@ func _ready() -> void:
get_node("WaveCounter").z_index = 5
stickspawner.connect("button_up", Spawn_Stick)
stickspawner.tooltip_text = "Cost: 10\nReturn: 5"
stickspawner.tooltip_text = "Cost: 30\nReturn: 5"
minespawner.connect("button_up", Spawn_Mine)
minespawner.tooltip_text = "Cost: 40\nReturn: 10"
@ -110,8 +110,8 @@ func Update_Coins(amount) -> void:
coins += amount
func Spawn_Stick() -> void:
if coins >= 10:
coins -= 10
if coins >= 30:
coins -= 30
var stick = STICK_TRAP.instantiate()
stick.name = "StickTrap-" + str(randi())
get_parent().add_child(stick)
@ -212,7 +212,7 @@ func GameWon() -> void:
file.close()
var old_score = old_scores.get(map_name, 0)
if new_score > old_score:
if new_score >= old_score:
old_scores[map_name] = new_score
file = FileAccess.open(save_path, FileAccess.WRITE)
file.store_var(old_scores)