Files
fps_project_1/scripts/game_globals.gd

46 lines
1.1 KiB
GDScript

extends Node
var game_loaded = false
var high_score : int = 0
var deposited_money : int = 0
var money : int = 0
var health : int = 0
var held_guns = []
var current_gun_index
var gun_ammo = {}
var ammo_reserve = {}
var loading_gamemode
var current_level = "res://scenes/HUBWORLD.tscn"
var current_gamemode
#Persistent Data
var user_id = 0
var last_leaderboard_id = 0
var user_names = ["Profile 1","Profile 2","Profile 3","Profile 4","Profile 5"]
var all_user_leaderboards = [["Global"]]
var current_leaderboard_name = all_user_leaderboards[user_id][last_leaderboard_id]
var current_match
var current_match_id = 0
var current_round_id = 0
var playlist_test
#Player Stats
var player_deaths = 0
var shots_fired = 0
var last_hit_path
var enemies_killed = 0
var chests_spawned = 0
func _ready() -> void:
SignalBus.money_deposited.connect(deposit_money)
func deposit_money():
if money > deposited_money:
deposited_money = money
if deposited_money > high_score:
high_score = deposited_money
func _process(delta: float) -> void:
pass
#print("current level : ",get_tree().current_scene.scene_file_path)