42 lines
1.4 KiB
Plaintext
42 lines
1.4 KiB
Plaintext
[gd_scene load_steps=7 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"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_cahuy"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_y73h6"]
|
|
|
|
[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")
|
|
|
|
[node name="Grunt" type="AnimatableBody2D" groups=["damageable"]]
|
|
script = ExtResource("1_y73h6")
|
|
|
|
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
|
|
avoidance_enabled = true
|
|
max_speed = 50.0
|
|
|
|
[node name="Grunt" type="Sprite2D" parent="."]
|
|
texture = ExtResource("2_668pk")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CircleShape2D_cahuy")
|
|
|
|
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
|
radius = 10.0
|
|
avoidance_enabled = false
|
|
|
|
[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
|