More tweaks but broke the enemy script

This commit is contained in:
derek
2024-12-03 13:27:44 -06:00
parent 299257e0d9
commit ad11da38f8
23 changed files with 194 additions and 86 deletions

16
scripts/stat_display.gd Normal file
View File

@@ -0,0 +1,16 @@
extends Node3D
@onready var kills: Label3D = $Kills
@onready var deaths: Label3D = $Deaths
@onready var shots_fired: Label3D = $"Shots Fired"
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
kills.text = "Kills : " + str(SaveLoad.enemies_killed)
deaths.text = "Deaths : " + str(SaveLoad.player_deaths)
shots_fired.text = "Shots Fired : " + str(SaveLoad.shots_fired)