diff options
Diffstat (limited to 'Reusable Scenes/2/enemy_bow.tscn')
-rw-r--r-- | Reusable Scenes/2/enemy_bow.tscn | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/Reusable Scenes/2/enemy_bow.tscn b/Reusable Scenes/2/enemy_bow.tscn new file mode 100644 index 0000000..b4b3a0a --- /dev/null +++ b/Reusable Scenes/2/enemy_bow.tscn @@ -0,0 +1,100 @@ +[gd_scene load_steps=10 format=3 uid="uid://kqrot8twq6bc"] + +[ext_resource type="Script" uid="uid://c5warxls18mds" path="res://Scripts/Entity.gd" id="1_q82xt"] +[ext_resource type="Script" uid="uid://cahhmhibcdjcd" path="res://Scripts/Enemy AI/JungleAI.gd" id="2_ty7ky"] +[ext_resource type="Texture2D" uid="uid://d3plfj75jmmyu" path="res://Assets/Visuals/isostri.png" id="3_2n5mq"] +[ext_resource type="Texture2D" uid="uid://ddxbrkfa7i5n" path="res://Assets/Visuals/hexagon.png" id="4_1vai4"] +[ext_resource type="PackedScene" uid="uid://cnyxp6p68vtv7" path="res://Reusable Scenes/Masks/spirit_mask.tscn" id="5_g0tc6"] +[ext_resource type="PackedScene" uid="uid://bxax2unw3ay8d" path="res://Reusable Scenes/Weapons/weapon_bow.tscn" id="6_g0tc6"] +[ext_resource type="PackedScene" uid="uid://bqma5drxh7smh" path="res://Reusable Scenes/Projectiles/projectile_arrow_enemy.tscn" id="7_g57nf"] + +[sub_resource type="CircleShape2D" id="CircleShape2D_twxkf"] +radius = 722.224 + +[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_h27ao"] +radius = 13.0 +height = 80.0 + +[node name="EnemyBow" type="RigidBody2D"] +collision_layer = 49152 +collision_mask = 49153 +lock_rotation = true +script = ExtResource("1_q82xt") +max_health = 15 + +[node name="EnemyJungleAI" type="Node" parent="." node_paths=PackedStringArray("weapon", "pivot", "sprite")] +script = ExtResource("2_ty7ky") +weapon = NodePath("../HandPivot/Node2D/weapon_bow") +pivot = NodePath("../HandPivot") +sprite = NodePath("../SpriteGroup") + +[node name="AttackCooldown" type="Timer" parent="EnemyJungleAI"] +wait_time = 3.0 + +[node name="DetectArea" type="Area2D" parent="."] +collision_layer = 3 +collision_mask = 3 +collision_priority = 2.0 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="DetectArea"] +shape = SubResource("CircleShape2D_twxkf") + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +position = Vector2(0, -9.44) +shape = SubResource("CapsuleShape2D_h27ao") + +[node name="SpriteGroup" type="Node2D" parent="."] + +[node name="Foot" type="Sprite2D" parent="SpriteGroup"] +modulate = Color(0.45, 0.291, 0.2115, 1) +position = Vector2(-11, 25) +rotation = 3.14159 +scale = Vector2(0.0160481, -0.0110911) +texture = ExtResource("3_2n5mq") + +[node name="Foot2" type="Sprite2D" parent="SpriteGroup"] +modulate = Color(0.45, 0.291, 0.2115, 1) +position = Vector2(11, 25) +rotation = 3.14159 +scale = Vector2(0.0160481, -0.0110911) +texture = ExtResource("3_2n5mq") + +[node name="Sprite2D" type="Sprite2D" parent="SpriteGroup"] +modulate = Color(0.919515, 0.481937, 1.92523e-07, 1) +position = Vector2(0, -1) +scale = Vector2(0.0406463, -0.0390693) +texture = ExtResource("3_2n5mq") + +[node name="Sprite2D2" type="Sprite2D" parent="SpriteGroup"] +modulate = Color(0.278431, 0.54902, 0.976471, 1) +position = Vector2(0, -41.776) +rotation = 3.14159 +scale = Vector2(0.0277332, 0.0277332) +texture = ExtResource("4_1vai4") + +[node name="SpiritMask" parent="SpriteGroup" instance=ExtResource("5_g0tc6")] +process_mode = 4 +position = Vector2(4, -40) +scale = Vector2(0.861963, 0.861963) + +[node name="HandPivot" type="Node2D" parent="."] +position = Vector2(6, -20) +rotation = -1.27211 + +[node name="Node2D" type="Node2D" parent="HandPivot"] +position = Vector2(0, 21.618) + +[node name="weapon_bow" parent="HandPivot/Node2D" instance=ExtResource("6_g0tc6")] +position = Vector2(1.25521, 6.24639) +scale = Vector2(0.999572, 0.999572) +arrow = ExtResource("7_g57nf") + +[node name="Sprite2D2" type="Sprite2D" parent="HandPivot"] +modulate = Color(0.278431, 0.54902, 0.976471, 1) +position = Vector2(0.525334, 42.9968) +rotation = 3.14159 +scale = Vector2(0.011008, 0.0118146) +texture = ExtResource("4_1vai4") + +[connection signal="timeout" from="EnemyJungleAI/AttackCooldown" to="EnemyJungleAI" method="_on_attack_cooldown_timeout"] +[connection signal="body_entered" from="DetectArea" to="EnemyJungleAI" method="_on_detect_area_body_entered"] |