73 lines
2.4 KiB
Plaintext
73 lines
2.4 KiB
Plaintext
[gd_scene load_steps=9 format=3 uid="uid://b6lmouoh2607b"]
|
|
|
|
[ext_resource type="Script" uid="uid://do2o6v238umse" path="res://scenes/enemies/enemy.gd" id="1_3kmpx"]
|
|
[ext_resource type="Texture2D" uid="uid://c7fka8ygr5xfq" path="res://scenes/enemies/shooter/shooter.png" id="2_d8kji"]
|
|
[ext_resource type="Script" uid="uid://cwasbbull03i8" path="res://scenes/enemies/shooter/gun.gd" id="3_d8kji"]
|
|
[ext_resource type="PackedScene" uid="uid://dpdt7rbma7ugn" path="res://scenes/bullet/bullet.tscn" id="4_0as4b"]
|
|
|
|
[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")
|
|
|
|
[node name="Shooter" type="CharacterBody2D" groups=["damageable", "enemy"]]
|
|
motion_mode = 1
|
|
script = ExtResource("1_3kmpx")
|
|
speed = 800
|
|
value = 15
|
|
total_health = 20
|
|
difficulty = 5
|
|
|
|
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
|
|
target_desired_distance = 60.0
|
|
path_postprocessing = 1
|
|
avoidance_enabled = true
|
|
max_speed = 20.0
|
|
|
|
[node name="Grunt" type="Sprite2D" parent="."]
|
|
texture = ExtResource("2_d8kji")
|
|
|
|
[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="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.329412, 0.360784, 0.494118, 1)
|
|
|
|
[node name="Gun" type="RayCast2D" parent="."]
|
|
collision_mask = 4
|
|
script = ExtResource("3_d8kji")
|
|
bullet_scene = ExtResource("4_0as4b")
|
|
|
|
[connection signal="velocity_computed" from="NavigationAgent2D" to="." method="_on_navigation_agent_2d_velocity_computed"]
|