working with level changes and money deposits

This commit is contained in:
Derek
2025-02-23 14:17:36 -06:00
parent 3ee1f261d1
commit fd2a32dde9
16 changed files with 178 additions and 68 deletions

View File

@@ -1,8 +1,8 @@
extends Node
var game_loaded = false
var high_score = 0
var money = 0
var high_score : int = 0
var money : int = 0
var health
var held_guns = []
var current_gun_index
@@ -10,9 +10,9 @@ var gun_ammo = {}
var ammo_reserve = {}
func _ready() -> void:
SignalBus.money_changed.connect(money_update)
SignalBus.money_deposited.connect(deposit_money)
func money_update():
func deposit_money():
if money > high_score:
high_score = money