[gd_scene load_steps=9 format=3 uid="uid://bnufqnypubedj"] [ext_resource type="Script" uid="uid://do2o6v238umse" path="res://scenes/enemies/enemy.gd" id="1_y73h6"] [ext_resource type="Texture2D" uid="uid://nj5tjjv0a6v8" path="res://scenes/enemies/grunt/grunt.png" id="2_668pk"] [ext_resource type="Script" uid="uid://bdfcm448qt5uh" path="res://scenes/enemies/grunt/attack.gd" id="3_668pk"] [sub_resource type="CircleShape2D" id="CircleShape2D_cahuy"] radius = 7.07107 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_y73h6"] bg_color = Color(0.639216, 0.635294, 0.603922, 0) [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_668pk"] bg_color = Color(0.772549, 0.411765, 0.505882, 1) [sub_resource type="Theme" id="Theme_cahuy"] ProgressBar/styles/background = SubResource("StyleBoxFlat_y73h6") ProgressBar/styles/fill = SubResource("StyleBoxFlat_668pk") [sub_resource type="CircleShape2D" id="CircleShape2D_y73h6"] radius = 12.0 [node name="Grunt" type="CharacterBody2D" groups=["damageable", "enemy"]] motion_mode = 1 script = ExtResource("1_y73h6") [node name="NavigationAgent2D" type="NavigationAgent2D" parent="."] path_postprocessing = 1 avoidance_enabled = true max_speed = 20.0 [node name="Grunt" type="Sprite2D" parent="."] texture = ExtResource("2_668pk") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource("CircleShape2D_cahuy") [node name="HealthBar" type="ProgressBar" parent="."] offset_left = -10.0 offset_top = -17.0 offset_right = 11.0 offset_bottom = -15.0 theme = SubResource("Theme_cahuy") value = 100.0 show_percentage = false [node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."] vertices = PackedVector2Array(0, -7, 5, -5, 7, 0, 5, 5, 0, 7, -5, 5, -7, 0, -5, -5) avoidance_enabled = false [node name="Attack" type="Area2D" parent="."] script = ExtResource("3_668pk") [node name="CollisionShape2D" type="CollisionShape2D" parent="Attack"] shape = SubResource("CircleShape2D_y73h6") [node name="CPUParticles2D" type="CPUParticles2D" parent="."] emitting = false lifetime = 0.16 one_shot = true explosiveness = 1.0 spread = 180.0 gravity = Vector2(0, 0) initial_velocity_min = 104.4 initial_velocity_max = 104.4 damping_min = 100.0 damping_max = 100.0 color = Color(0.772549, 0.411765, 0.505882, 1) [connection signal="velocity_computed" from="NavigationAgent2D" to="." method="_on_navigation_agent_2d_velocity_computed"]