61 lines
1.9 KiB
Plaintext
61 lines
1.9 KiB
Plaintext
[gd_scene load_steps=12 format=2]
|
|
|
|
[ext_resource path="res://scenes/Player.gd" type="Script" id=1]
|
|
[ext_resource path="res://images/PlayerRed_Frame_01.png" type="Texture" id=2]
|
|
[ext_resource path="res://images/Exhaust_Frame_06.png" type="Texture" id=3]
|
|
[ext_resource path="res://images/Exhaust_Frame_05.png" type="Texture" id=4]
|
|
[ext_resource path="res://images/Exhaust_Frame_03.png" type="Texture" id=5]
|
|
[ext_resource path="res://images/Exhaust_Frame_01.png" type="Texture" id=6]
|
|
[ext_resource path="res://images/Exhaust_Frame_02.png" type="Texture" id=7]
|
|
[ext_resource path="res://images/Exhaust_Frame_04.png" type="Texture" id=8]
|
|
|
|
[sub_resource type="SpriteFrames" id=1]
|
|
animations = [ {
|
|
"frames": [ ExtResource( 2 ) ],
|
|
"loop": true,
|
|
"name": "idle",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[sub_resource type="SpriteFrames" id=3]
|
|
animations = [ {
|
|
"frames": [ ExtResource( 3 ), ExtResource( 4 ), ExtResource( 5 ) ],
|
|
"loop": false,
|
|
"name": "cooldown",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [ ExtResource( 6 ), ExtResource( 7 ), ExtResource( 5 ), ExtResource( 4 ), ExtResource( 8 ), ExtResource( 3 ) ],
|
|
"loop": true,
|
|
"name": "burst",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[sub_resource type="ConvexPolygonShape2D" id=2]
|
|
points = PoolVector2Array( -20, -5, -15, -20, -5, -20, 20, 0, -5, 20, -15, 20, -20, 5 )
|
|
|
|
[node name="Player" type="KinematicBody2D"]
|
|
script = ExtResource( 1 )
|
|
__meta__ = {
|
|
"_edit_horizontal_guides_": [ -43.9838 ],
|
|
"_edit_vertical_guides_": [ -22.5089 ]
|
|
}
|
|
|
|
[node name="Ship" type="AnimatedSprite" parent="."]
|
|
position = Vector2( 0, -1 )
|
|
rotation = 1.5708
|
|
scale = Vector2( 0.5, 0.5 )
|
|
frames = SubResource( 1 )
|
|
animation = "idle"
|
|
offset = Vector2( 0, -5 )
|
|
|
|
[node name="Burst" type="AnimatedSprite" parent="."]
|
|
position = Vector2( -45, 0 )
|
|
rotation = 1.5708
|
|
frames = SubResource( 3 )
|
|
animation = "burst"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2( 0, -1 )
|
|
shape = SubResource( 2 )
|
|
[connection signal="animation_finished" from="Burst" to="." method="_on_Burst_animation_finished"]
|