Added player damage, invulnerability frames, knockback, and death handling. Enemies stop attacking after player death and player controls are disabled. Added a persistent three-life system with ambulance cutscenes after the first two deaths and a final Game Over cutscene after the third death.
13 lines
397 B
Plaintext
13 lines
397 B
Plaintext
[gd_resource type="Resource" script_class="CharacterStats" load_steps=2 format=3 uid="uid://bui3rirgh7w6h"]
|
|
|
|
[ext_resource type="Script" uid="uid://b4t8cviiuvt18" path="res://Scripts/rscs/characterstats.gd" id="1_eiyfu"]
|
|
|
|
[resource]
|
|
script = ExtResource("1_eiyfu")
|
|
max_health = 3
|
|
starting_health = 3
|
|
health = 3
|
|
meleeDamage = 5
|
|
rangeDamage = 10
|
|
metadata/_custom_type_script = "uid://b4t8cviiuvt18"
|