Implemented state machine & added NPC ship template
This commit is contained in:
parent
2d4eb92751
commit
bda9232e72
15 changed files with 284 additions and 22 deletions
16
scenes/Ships/Modules/Hulls/kamikaze_hull.tscn
Normal file
16
scenes/Ships/Modules/Hulls/kamikaze_hull.tscn
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://bkd4gyhlota7l"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bsu4eqwdfewwi" path="res://scenes/Ships/Modules/Hulls/hull.tscn" id="1_l56rl"]
|
||||
[ext_resource type="Texture2D" uid="uid://bchkncbniclhh" path="res://sprites/kamikaze.png" id="2_8ba3c"]
|
||||
|
||||
[node name="Hull" instance=ExtResource("1_l56rl")]
|
||||
max_hp = 10.0
|
||||
velocity_collision_treshold = 150.0
|
||||
collision_damage = 10.0
|
||||
|
||||
[node name="Sprite" parent="." index="0"]
|
||||
position = Vector2(0.5, 0.5)
|
||||
texture = ExtResource("2_8ba3c")
|
||||
|
||||
[node name="Collision" parent="." index="1"]
|
||||
polygon = PackedVector2Array(-69.5, 21, -69.5, 66, -68.5, 66, -57.5, 55, -57.5, 65, -56.5, 65, 70.5, 1, 70.5, 0, -56.5, -64, -57.5, -64, -57.5, -54, -68.5, -65, -69.5, -65, -69.5, -20, -68.5, -20, -57.5, -31, -57.5, -23, -32.5, -10, -32.5, 11, -57.5, 24, -57.5, 32, -68.5, 21)
|
||||
Loading…
Add table
Add a link
Reference in a new issue