Added enemy sprites

This commit is contained in:
2025-11-27 14:59:16 +03:00
parent 79d942b803
commit 419e4db231
14 changed files with 159 additions and 58 deletions
@@ -1,14 +1,8 @@
[gd_scene load_steps=5 format=3 uid="uid://d3epy8w15qmjm"]
[gd_scene load_steps=4 format=3 uid="uid://d3epy8w15qmjm"]
[ext_resource type="PackedScene" uid="uid://dwsn0lf1e3578" path="res://game/entities/ships/enemies/abstract_enemy_ship.tscn" id="1_wvvpj"]
[ext_resource type="Script" uid="uid://cxomr1oojcrcl" path="res://game/entities/ships/enemies/heavy/heavy_enemy_ship.gd" id="2_3umer"]
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_cuapu"]
size = Vector2(64, 48)
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_cuapu"]
radius = 23.0
height = 62.0
[ext_resource type="Texture2D" uid="uid://5cgq8o5oqunq" path="res://images/ships/enemies/heavy.png" id="3_xqe8d"]
[node name="HeavyEnemyShip" instance=ExtResource("1_wvvpj")]
script = ExtResource("2_3umer")
@@ -18,11 +12,10 @@ max_speed = 60
mass = 600
[node name="Sprite2D" parent="." index="0"]
texture = SubResource("PlaceholderTexture2D_cuapu")
texture = ExtResource("3_xqe8d")
[node name="CollisionShape2D" parent="." index="1"]
rotation = 1.5707964
shape = SubResource("CapsuleShape2D_cuapu")
[node name="CollisionPolygon2D" parent="." index="1"]
polygon = PackedVector2Array(-31, 2, -31, -2, -17, -19, -11, -22, 8, -23, 30, -23, 30, 23, 8, 23, -11, 22, -17, 19)
[node name="Health" parent="." index="2"]
max_hull = 200
@@ -35,9 +28,10 @@ offset_bottom = 30.0
rect = Rect2(-29, -21, 58, 42)
[node name="First" type="Node2D" parent="WeaponSlots" index="0"]
position = Vector2(0, -13)
position = Vector2(-8, 0)
[node name="Second" type="Node2D" parent="WeaponSlots" index="1"]
position = Vector2(8, -16)
[node name="Third" type="Node2D" parent="WeaponSlots" index="2"]
position = Vector2(0, 13)
position = Vector2(8, 16)
@@ -1,14 +1,8 @@
[gd_scene load_steps=5 format=3 uid="uid://cye5ndbh0ht7w"]
[gd_scene load_steps=4 format=3 uid="uid://cye5ndbh0ht7w"]
[ext_resource type="PackedScene" uid="uid://dwsn0lf1e3578" path="res://game/entities/ships/enemies/abstract_enemy_ship.tscn" id="1_16owb"]
[ext_resource type="Script" uid="uid://dcpqrdvp4nk82" path="res://game/entities/ships/enemies/medium/medium_enemy_ship.gd" id="2_dgwiy"]
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_4jmkv"]
size = Vector2(32, 48)
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_4jmkv"]
radius = 15.0
height = 46.0
[ext_resource type="Texture2D" uid="uid://dkwvm246s0wnd" path="res://images/ships/enemies/medium.png" id="3_d2xji"]
[node name="MediumEnemyShip" instance=ExtResource("1_16owb")]
script = ExtResource("2_dgwiy")
@@ -18,10 +12,10 @@ max_speed = 92
mass = 250
[node name="Sprite2D" parent="." index="0"]
texture = SubResource("PlaceholderTexture2D_4jmkv")
texture = ExtResource("3_d2xji")
[node name="CollisionShape2D" parent="." index="1"]
shape = SubResource("CapsuleShape2D_4jmkv")
[node name="CollisionPolygon2D" parent="." index="1"]
polygon = PackedVector2Array(-23, -2, -12, -13, -6, -15, 22, -15, 23, -14, 23, 14, 22, 15, -6, 15, -12, 13, -23, 2)
[node name="Health" parent="." index="2"]
max_hull = 100
@@ -34,7 +28,7 @@ offset_bottom = 30.0
rect = Rect2(-13, -21, 26, 42)
[node name="First" type="Node2D" parent="WeaponSlots" index="0"]
position = Vector2(0, -10)
position = Vector2(4, -8)
[node name="Second" type="Node2D" parent="WeaponSlots" index="1"]
position = Vector2(0, 10)
position = Vector2(4, 8)
@@ -1,13 +1,8 @@
[gd_scene load_steps=5 format=3 uid="uid://cbf3kumeoqpba"]
[gd_scene load_steps=4 format=3 uid="uid://cbf3kumeoqpba"]
[ext_resource type="PackedScene" uid="uid://dwsn0lf1e3578" path="res://game/entities/ships/enemies/abstract_enemy_ship.tscn" id="1_lt1av"]
[ext_resource type="Script" uid="uid://btcce3nflycrs" path="res://game/entities/ships/enemies/small/small_enemy_ship.gd" id="2_bw04d"]
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_bw04d"]
size = Vector2(32, 16)
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_lopve"]
radius = 7.0
[ext_resource type="Texture2D" uid="uid://5xn5jkmtbn6v" path="res://images/ships/enemies/small.png" id="3_tb2nn"]
[node name="SmallEnemyShip" instance=ExtResource("1_lt1av")]
script = ExtResource("2_bw04d")
@@ -17,11 +12,10 @@ max_speed = 120
mass = 100
[node name="Sprite2D" parent="." index="0"]
texture = SubResource("PlaceholderTexture2D_bw04d")
texture = ExtResource("3_tb2nn")
[node name="CollisionShape2D" parent="." index="1"]
rotation = 1.5707964
shape = SubResource("CapsuleShape2D_lopve")
[node name="CollisionPolygon2D" parent="." index="1"]
polygon = PackedVector2Array(-3, -7, 12, -7, 15, -4, 15, 4, 12, 7, -3, 7, -15, 1, -15, -1)
[node name="Health" parent="." index="2"]
max_hull = 50
@@ -34,4 +28,4 @@ offset_bottom = 14.0
rect = Rect2(-13, -5, 26, 10)
[node name="First" type="Node2D" parent="WeaponSlots" index="0"]
position = Vector2(6, 0)
position = Vector2(5, 0)