2025-04-19 22:24:46 +00:00
|
|
|
[gd_scene load_steps=6 format=3 uid="uid://3e6fmds2x8q5"]
|
2025-04-18 01:07:51 +00:00
|
|
|
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://soden53qtfxf" path="res://assets/Ships/Fighters/Enemy/enemyFighter.png" id="1_4l75b"]
|
|
|
|
|
[ext_resource type="Script" path="res://script/ai_fighter.cs" id="1_kyds1"]
|
2025-04-19 22:24:46 +00:00
|
|
|
[ext_resource type="FontFile" uid="uid://ryhimaxr7tr4" path="res://assets/Fonts/Kenney Mini Square.ttf" id="3_8bw2f"]
|
2025-04-18 01:07:51 +00:00
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_6vq6f"]
|
|
|
|
|
radius = 41.0488
|
|
|
|
|
|
2025-04-19 22:24:46 +00:00
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_lim1q"]
|
|
|
|
|
font = ExtResource("3_8bw2f")
|
|
|
|
|
font_size = 40
|
|
|
|
|
|
2025-04-18 01:07:51 +00:00
|
|
|
[node name="AI_Fighter" type="CharacterBody2D"]
|
2025-04-19 22:24:46 +00:00
|
|
|
collision_mask = 13
|
2025-04-18 01:07:51 +00:00
|
|
|
motion_mode = 1
|
|
|
|
|
script = ExtResource("1_kyds1")
|
2025-04-22 04:43:03 +00:00
|
|
|
Faction = 2
|
2025-04-18 01:07:51 +00:00
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
|
shape = SubResource("CircleShape2D_6vq6f")
|
|
|
|
|
|
|
|
|
|
[node name="ShipSprite" type="Sprite2D" parent="."]
|
|
|
|
|
texture = ExtResource("1_4l75b")
|
|
|
|
|
|
|
|
|
|
[node name="LaserSpawn" type="Node2D" parent="."]
|
|
|
|
|
position = Vector2(0, -58)
|
|
|
|
|
|
|
|
|
|
[node name="EffectSpawn" type="Node2D" parent="."]
|
2025-04-19 22:24:46 +00:00
|
|
|
|
|
|
|
|
[node name="HealthDisplay" type="Node2D" parent="."]
|
|
|
|
|
position = Vector2(-30, 90)
|
|
|
|
|
scale = Vector2(1.2, 1.2)
|
|
|
|
|
|
|
|
|
|
[node name="HealthLabel" type="Label" parent="HealthDisplay"]
|
|
|
|
|
offset_right = 65.0
|
|
|
|
|
offset_bottom = 50.0
|
|
|
|
|
text = "100"
|
|
|
|
|
label_settings = SubResource("LabelSettings_lim1q")
|
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
|
|
|
|
|
[node name="HPLabel" type="Label" parent="HealthDisplay"]
|
|
|
|
|
offset_left = 62.0
|
|
|
|
|
offset_top = -2.0
|
|
|
|
|
offset_right = 127.0
|
|
|
|
|
offset_bottom = 48.0
|
|
|
|
|
scale = Vector2(0.5, 0.5)
|
|
|
|
|
text = "HP"
|
|
|
|
|
label_settings = SubResource("LabelSettings_lim1q")
|
|
|
|
|
horizontal_alignment = 1
|