added pipe rifle animation
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_ss5ir"]
|
||||
viewport_path = NodePath("SubViewport")
|
||||
|
||||
[node name="Dog" type="CharacterBody3D" unique_id=208032021 node_paths=PackedStringArray("status_manager", "movement_controller", "d_n") groups=["Enemies"]]
|
||||
[node name="Dog" type="CharacterBody3D" unique_id=208032021 node_paths=PackedStringArray("status_manager", "movement_controller", "d_n", "health_bar") groups=["Enemies"]]
|
||||
collision_layer = 4
|
||||
collision_mask = 3
|
||||
motion_mode = 1
|
||||
@@ -19,6 +19,7 @@ status_manager = NodePath("StatusEffector")
|
||||
movement_controller = NodePath("BeeliningController")
|
||||
d_n = NodePath("Node3D")
|
||||
corpse_scene = ExtResource("2_aed6c")
|
||||
health_bar = NodePath("SubViewport/HealthBar")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="." unique_id=2020998819]
|
||||
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, 0.637873, 0)
|
||||
|
||||
@@ -11,6 +11,7 @@ signal health_changed(health: int)
|
||||
@export var d_n: Node3D
|
||||
#@export var sprite: Sprite3D
|
||||
@export var corpse_scene: PackedScene
|
||||
@export var health_bar: HealthBar
|
||||
|
||||
var damage_particle_scene: PackedScene = preload("res://UI/DamageParticle/damage_particle.tscn")
|
||||
var current_health: int
|
||||
@@ -23,8 +24,8 @@ var alive: bool = true
|
||||
func _ready() -> void:
|
||||
max_health = stats.health
|
||||
current_health = stats.health
|
||||
health_changed.connect($SubViewport/HealthBar.on_health_changed)
|
||||
$SubViewport/HealthBar.setup(stats.health)
|
||||
health_changed.connect(health_bar.on_health_changed)
|
||||
health_bar.setup(stats.health)
|
||||
movement_speed = stats.movement_speed
|
||||
status_manager.enemy = self
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ region = Rect2(0, 0, 32, 32)
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_4tj6k"]
|
||||
viewport_path = NodePath("SubViewport")
|
||||
|
||||
[node name="WalkingEnemy" type="CharacterBody3D" unique_id=180331738 node_paths=PackedStringArray("status_manager", "movement_controller", "d_n") groups=["Enemies"]]
|
||||
[node name="WalkingEnemy" type="CharacterBody3D" unique_id=180331738 node_paths=PackedStringArray("status_manager", "movement_controller", "d_n", "health_bar") groups=["Enemies"]]
|
||||
collision_layer = 4
|
||||
collision_mask = 3
|
||||
script = ExtResource("1_fwsjt")
|
||||
@@ -29,6 +29,7 @@ status_manager = NodePath("StatusEffector")
|
||||
movement_controller = NodePath("PathingController")
|
||||
d_n = NodePath("Node3D")
|
||||
corpse_scene = ExtResource("2_y7h25")
|
||||
health_bar = NodePath("SubViewport/HealthBar")
|
||||
|
||||
[node name="DirectionSprite" parent="." unique_id=447693926 instance=ExtResource("2_o7jmg")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.585, 0)
|
||||
|
||||
@@ -37,7 +37,7 @@ viewport_path = NodePath("SubViewport5")
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_5u3uw"]
|
||||
viewport_path = NodePath("SubViewport6")
|
||||
|
||||
[node name="LeapingEnemy" type="CharacterBody3D" unique_id=1033726948 node_paths=PackedStringArray("status_manager", "movement_controller", "d_n") groups=["Enemies"]]
|
||||
[node name="LeapingEnemy" type="CharacterBody3D" unique_id=1033726948 node_paths=PackedStringArray("status_manager", "movement_controller", "d_n", "health_bar") groups=["Enemies"]]
|
||||
collision_layer = 4
|
||||
collision_mask = 3
|
||||
script = ExtResource("1_joiuq")
|
||||
@@ -45,6 +45,7 @@ status_manager = NodePath("StatusEffector")
|
||||
movement_controller = NodePath("LeapingController")
|
||||
d_n = NodePath("Node3D")
|
||||
corpse_scene = ExtResource("2_ssgps")
|
||||
health_bar = NodePath("SubViewport/HealthBar")
|
||||
|
||||
[node name="Health" type="Node" parent="." unique_id=1287231964]
|
||||
script = ExtResource("3_dhcpw")
|
||||
|
||||
Reference in New Issue
Block a user