godot-space-escape/scenes/Player.tscn

35 lines
933 B
Plaintext

[gd_scene load_steps=5 format=2]
[ext_resource path="res://scenes/Player.gd" type="Script" id=1]
[ext_resource path="res://images/pixel_ship_red.png" type="Texture" id=2]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 2 ), ExtResource( 2 ) ],
"loop": true,
"name": "idle",
"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_": [ ],
"_edit_vertical_guides_": [ ]
}
[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="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 0, -1 )
shape = SubResource( 2 )