godot-space-escape/scenes/Player.tscn

73 lines
2.8 KiB
Plaintext

[gd_scene load_steps=21 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/Explosion01_Frame_01.png" type="Texture" id=3]
[ext_resource path="res://images/Explosion01_Frame_03.png" type="Texture" id=4]
[ext_resource path="res://images/Explosion01_Frame_04.png" type="Texture" id=5]
[ext_resource path="res://images/Explosion01_Frame_02.png" type="Texture" id=6]
[ext_resource path="res://images/Explosion01_Frame_05.png" type="Texture" id=7]
[ext_resource path="res://images/Explosion01_Frame_06.png" type="Texture" id=8]
[ext_resource path="res://images/Explosion01_Frame_07.png" type="Texture" id=9]
[ext_resource path="res://images/Explosion01_Frame_09.png" type="Texture" id=10]
[ext_resource path="res://images/Explosion01_Frame_08.png" type="Texture" id=11]
[ext_resource path="res://images/Exhaust_Frame_06.png" type="Texture" id=12]
[ext_resource path="res://images/Exhaust_Frame_05.png" type="Texture" id=13]
[ext_resource path="res://images/Exhaust_Frame_03.png" type="Texture" id=14]
[ext_resource path="res://images/Exhaust_Frame_01.png" type="Texture" id=15]
[ext_resource path="res://images/Exhaust_Frame_02.png" type="Texture" id=16]
[ext_resource path="res://images/Exhaust_Frame_04.png" type="Texture" id=17]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 2 ) ],
"loop": true,
"name": "idle",
"speed": 5.0
}, {
"frames": [ ExtResource( 3 ), ExtResource( 4 ), ExtResource( 5 ), ExtResource( 6 ), ExtResource( 7 ), ExtResource( 8 ), ExtResource( 9 ), ExtResource( 10 ), ExtResource( 11 ) ],
"loop": true,
"name": "explod",
"speed": 5.0
} ]
[sub_resource type="SpriteFrames" id=3]
animations = [ {
"frames": [ ExtResource( 12 ), ExtResource( 13 ), ExtResource( 14 ) ],
"loop": false,
"name": "cooldown",
"speed": 5.0
}, {
"frames": [ ExtResource( 15 ), ExtResource( 16 ), ExtResource( 14 ), ExtResource( 13 ), ExtResource( 17 ), ExtResource( 12 ) ],
"loop": true,
"name": "burst",
"speed": 5.0
} ]
[sub_resource type="ConvexPolygonShape2D" id=2]
points = PoolVector2Array( -25, -4, -18, -25, -9, -28, 33, 0, -9, 28, -18, 25, -25, 4 )
[node name="Player" type="KinematicBody2D"]
script = ExtResource( 1 )
__meta__ = {
"_edit_horizontal_guides_": [ ],
"_edit_vertical_guides_": [ 33.5225 ]
}
[node name="Ship" type="AnimatedSprite" parent="."]
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="."]
shape = SubResource( 2 )
[connection signal="animation_finished" from="Burst" to="." method="_on_Burst_animation_finished"]