damage, dying, custom resources, simple UI
This commit is contained in:
1 parent
fd6ad5e001
commit
1a4f030097
16 files changed
+336
-13
No files matched your search
@@ -0,0 +1,8 @@
|
||||
class_name CharacterStats extends Resource
|
||||
|
||||
@export var health:int = 100
|
||||
@export var max_health:int = 120
|
||||
@export var starting_health:int = 100
|
||||
|
||||
@export var meleeDamage:int = 10
|
||||
@export var rangeDamage:int =5
|
||||
@@ -0,0 +1 @@
|
||||
uid://deef1fi6sargw
|
||||
@@ -0,0 +1,8 @@
|
||||
[gd_resource type="Resource" script_class="CharacterStats" format=3 uid="uid://cqbm43tl86gmq"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://deef1fi6sargw" path="res://Scripts/rscs/character_statst.gd" id="1_2wf5j"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_2wf5j")
|
||||
health = 110
|
||||
metadata/_custom_type_script = "uid://deef1fi6sargw"
|
||||
@@ -0,0 +1,11 @@
|
||||
[gd_resource type="Resource" script_class="CharacterStats" format=3 uid="uid://dbhv3hltbjxk2"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://deef1fi6sargw" path="res://Scripts/rscs/character_statst.gd" id="1_38j4j"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_38j4j")
|
||||
health = 40
|
||||
max_health = 45
|
||||
starting_health = 40
|
||||
rangeDamage = 0
|
||||
metadata/_custom_type_script = "uid://deef1fi6sargw"
|
||||
Reference in new issue
Block a user