1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
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"]
|