godot-space-escape/scenes/Player.tscn

73 lines
2.8 KiB
Plaintext
Raw Permalink Normal View History

2019-11-14 23:00:10 +00:00
[gd_scene load_steps=21 format=2]
2019-11-12 23:47:48 +00:00
[ext_resource path="res://scenes/Player.gd" type="Script" id=1]
[ext_resource path="res://images/PlayerRed_Frame_01.png" type="Texture" id=2]
2019-11-14 23:00:10 +00:00
[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]
2019-11-12 23:47:48 +00:00
2019-11-13 23:33:50 +00:00
[sub_resource type="SpriteFrames" id=1]
2019-11-12 23:47:48 +00:00
animations = [ {
"frames": [ ExtResource( 2 ) ],
2019-11-12 23:47:48 +00:00
"loop": true,
"name": "idle",
"speed": 5.0
2019-11-14 23:00:10 +00:00
}, {
"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
2019-11-12 23:47:48 +00:00
} ]
[sub_resource type="SpriteFrames" id=3]
animations = [ {
2019-11-14 23:00:10 +00:00
"frames": [ ExtResource( 12 ), ExtResource( 13 ), ExtResource( 14 ) ],
"loop": false,
"name": "cooldown",
"speed": 5.0
}, {
2019-11-14 23:00:10 +00:00
"frames": [ ExtResource( 15 ), ExtResource( 16 ), ExtResource( 14 ), ExtResource( 13 ), ExtResource( 17 ), ExtResource( 12 ) ],
"loop": true,
"name": "burst",
"speed": 5.0
} ]
2019-11-13 23:33:50 +00:00
[sub_resource type="ConvexPolygonShape2D" id=2]
points = PoolVector2Array( -25, -4, -18, -25, -9, -28, 33, 0, -9, 28, -18, 25, -25, 4 )
2019-11-12 23:47:48 +00:00
2019-11-13 23:33:50 +00:00
[node name="Player" type="KinematicBody2D"]
2019-11-12 23:47:48 +00:00
script = ExtResource( 1 )
__meta__ = {
"_edit_horizontal_guides_": [ ],
"_edit_vertical_guides_": [ 33.5225 ]
2019-11-12 23:47:48 +00:00
}
[node name="Ship" type="AnimatedSprite" parent="."]
2019-11-13 23:33:50 +00:00
rotation = 1.5708
scale = Vector2( 0.5, 0.5 )
frames = SubResource( 1 )
2019-11-12 23:47:48 +00:00
animation = "idle"
2019-11-13 23:33:50 +00:00
offset = Vector2( 0, -5 )
2019-11-12 23:47:48 +00:00
[node name="Burst" type="AnimatedSprite" parent="."]
position = Vector2( -45, 0 )
rotation = 1.5708
frames = SubResource( 3 )
animation = "burst"
2019-11-12 23:47:48 +00:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
2019-11-13 23:33:50 +00:00
shape = SubResource( 2 )
[connection signal="animation_finished" from="Burst" to="." method="_on_Burst_animation_finished"]