diff options
Diffstat (limited to 'Scenes/Entities/Enemies/Balloon.tscn')
-rw-r--r-- | Scenes/Entities/Enemies/Balloon.tscn | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/Scenes/Entities/Enemies/Balloon.tscn b/Scenes/Entities/Enemies/Balloon.tscn index 71f6e5d..a9a2cec 100644 --- a/Scenes/Entities/Enemies/Balloon.tscn +++ b/Scenes/Entities/Enemies/Balloon.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=19 format=3 uid="uid://ccolri3egf8rk"] +[gd_scene load_steps=20 format=3 uid="uid://ccolri3egf8rk"] [ext_resource type="Script" path="res://Scenes/Entities/Enemies/Balloon.gd" id="1_8q3w8"] [ext_resource type="Texture2D" uid="uid://ck1sxw5vqhoa" path="res://Assets/Enemies/Balloon_death_2.png" id="2_c4j5c"] @@ -16,6 +16,7 @@ [ext_resource type="Texture2D" uid="uid://u56kfb4hq87o" path="res://Assets/Enemies/Balloon_up_2_03.png" id="14_757al"] [ext_resource type="PackedScene" uid="uid://cq7yj2av01tqd" path="res://Scenes/Entities/Enemies/Components/Movement.tscn" id="15_fwetl"] [ext_resource type="PackedScene" uid="uid://ce3vv2pod6auc" path="res://Scenes/Entities/Enemies/Components/Collision.tscn" id="16_yau34"] +[ext_resource type="PackedScene" uid="uid://b3i372vgdbxk" path="res://Scenes/Entities/Enemies/Components/Health.tscn" id="17_d8phm"] [sub_resource type="SpriteFrames" id="SpriteFrames_nxaqi"] animations = [{ @@ -42,7 +43,7 @@ animations = [{ }], "loop": true, "name": &"down", -"speed": 2.0 +"speed": 6.0 }, { "frames": [{ "duration": 1.0, @@ -59,7 +60,7 @@ animations = [{ }], "loop": true, "name": &"left", -"speed": 2.0 +"speed": 6.0 }, { "frames": [{ "duration": 1.0, @@ -76,7 +77,7 @@ animations = [{ }], "loop": true, "name": &"right", -"speed": 2.0 +"speed": 6.0 }, { "frames": [{ "duration": 1.0, @@ -93,7 +94,7 @@ animations = [{ }], "loop": true, "name": &"up", -"speed": 2.0 +"speed": 6.0 }] [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_abul4"] @@ -102,10 +103,9 @@ height = 15.0 [node name="Balloon" type="CharacterBody2D"] collision_layer = 16 -collision_mask = 60 +collision_mask = 188 motion_mode = 1 script = ExtResource("1_8q3w8") -health = 1 [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] sprite_frames = SubResource("SpriteFrames_nxaqi") @@ -118,9 +118,15 @@ shape = SubResource("CapsuleShape2D_abul4") [node name="Movement" parent="." instance=ExtResource("15_fwetl")] entityPath = NodePath("..") spritePath = NodePath("../AnimatedSprite2D") -SPEED = 5 +SPEED = 10 timer_time = 10.0 [node name="Collision" parent="." instance=ExtResource("16_yau34")] entityPath = NodePath("..") collision_shape_path = NodePath("../CollisionShape2D") +component_health_path = NodePath("../Health") + +[node name="Health" parent="." instance=ExtResource("17_d8phm")] +entityPath = NodePath("..") +spritePath = NodePath("../AnimatedSprite2D") +health = 1 |