Added CannonWeapon textures

This commit is contained in:
2025-11-19 15:32:03 +03:00
parent 721d38e9d1
commit 77b03e4b73
25 changed files with 443 additions and 36 deletions
@@ -5,4 +5,4 @@ extends AbstractShip
func _ready() -> void:
super._ready()
for weapon in _weapons:
weapon.belonging = AbstractWeapon.Belonging.ENEMY
weapon.set_belonging(AbstractWeapon.Belonging.ENEMY)
@@ -15,7 +15,7 @@ script = ExtResource("2_3umer")
acceleration = 30
deceleration = 18
max_speed = 60
weapon_positions = Array[Vector2]([Vector2(0, 12), Vector2(0, 0), Vector2(0, -12)])
weapon_positions = Array[Vector2]([Vector2(0, 16), Vector2(0, 0), Vector2(0, -16)])
[node name="Sprite2D" parent="." index="0"]
texture = SubResource("PlaceholderTexture2D_cuapu")
+1 -1
View File
@@ -5,4 +5,4 @@ extends AbstractShip
func _ready() -> void:
super._ready()
for weapon in _weapons:
weapon.belonging = AbstractWeapon.Belonging.PLAYER
weapon.set_belonging(AbstractWeapon.Belonging.PLAYER)
@@ -27,8 +27,6 @@ rotation = 1.5707964
shape = SubResource("CapsuleShape2D_dj8f1")
[node name="Health" parent="." index="2"]
max_shield = 1000
max_armor = 1000
max_hull = 1000
[node name="HeathBar" parent="." index="3"]