154 lines
4.0 KiB
Plaintext
154 lines
4.0 KiB
Plaintext
[gd_scene load_steps=13 format=2]
|
|
|
|
[ext_resource path="res://src/Actors/Player.gd" type="Script" id=1]
|
|
[ext_resource path="res://assets/art/player/shiro.png" type="Texture" id=2]
|
|
[ext_resource path="res://assets/audio/sfx/select.wav" type="AudioStream" id=3]
|
|
[ext_resource path="res://assets/art/ui/touch_button_left.png" type="Texture" id=5]
|
|
[ext_resource path="res://assets/art/ui/touch_button_right.png" type="Texture" id=6]
|
|
[ext_resource path="res://assets/art/ui/touch_button_jump.png" type="Texture" id=7]
|
|
[ext_resource path="res://assets/art/ui/touch_button_fire.png" type="Texture" id=8]
|
|
|
|
[sub_resource type="Animation" id=1]
|
|
resource_name = "falling"
|
|
length = 0.5
|
|
loop = true
|
|
step = 0.25
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("Sprite:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PoolRealArray( 0, 0.25, 0.5 ),
|
|
"transitions": PoolRealArray( 1, 1, 1 ),
|
|
"update": 1,
|
|
"values": [ 3, 4, 3 ]
|
|
}
|
|
|
|
[sub_resource type="Animation" id=2]
|
|
length = 0.001
|
|
loop = true
|
|
step = 0.25
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("Sprite:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PoolRealArray( 0, 4.5, 4.75, 5, 5.25 ),
|
|
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
|
|
"update": 1,
|
|
"values": [ 1, 19, 20, 19, 16 ]
|
|
}
|
|
|
|
[sub_resource type="Animation" id=3]
|
|
length = 0.5
|
|
loop = true
|
|
step = 0.25
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("Sprite:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PoolRealArray( 0, 0.25, 0.5 ),
|
|
"transitions": PoolRealArray( 1, 1, 1 ),
|
|
"update": 1,
|
|
"values": [ 5, 6, 5 ]
|
|
}
|
|
|
|
[sub_resource type="Animation" id=4]
|
|
loop = true
|
|
step = 0.25
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("Sprite:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PoolRealArray( 0, 0.25, 0.5, 0.75 ),
|
|
"transitions": PoolRealArray( 1, 1, 1, 1 ),
|
|
"update": 1,
|
|
"values": [ 0, 1, 2, 1 ]
|
|
}
|
|
|
|
[sub_resource type="RectangleShape2D" id=5]
|
|
extents = Vector2( 6, 7 )
|
|
|
|
[node name="Player" type="KinematicBody2D"]
|
|
collision_mask = 30
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="PlatformDetector" type="RayCast2D" parent="."]
|
|
enabled = true
|
|
cast_to = Vector2( 0, 6 )
|
|
collision_mask = 8
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
position = Vector2( 0, -15 )
|
|
texture = ExtResource( 2 )
|
|
hframes = 7
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
playback_speed = 2.6
|
|
anims/falling = SubResource( 1 )
|
|
anims/idle = SubResource( 2 )
|
|
anims/jumping = SubResource( 3 )
|
|
anims/run = SubResource( 4 )
|
|
|
|
[node name="Camera" type="Camera2D" parent="."]
|
|
position = Vector2( 0, -28 )
|
|
rotating = true
|
|
current = true
|
|
process_mode = 0
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2( 0, -7 )
|
|
shape = SubResource( 5 )
|
|
|
|
[node name="UI" type="CanvasLayer" parent="."]
|
|
layer = 0
|
|
|
|
[node name="Left" type="TouchScreenButton" parent="UI"]
|
|
visible = false
|
|
position = Vector2( 27.7593, 360.87 )
|
|
scale = Vector2( 1.49157, 1.46265 )
|
|
normal = ExtResource( 5 )
|
|
passby_press = true
|
|
action = "move_left"
|
|
visibility_mode = 1
|
|
|
|
[node name="Right" type="TouchScreenButton" parent="UI"]
|
|
visible = false
|
|
position = Vector2( 121.542, 361.415 )
|
|
scale = Vector2( 1.49157, 1.46265 )
|
|
normal = ExtResource( 6 )
|
|
passby_press = true
|
|
action = "move_right"
|
|
visibility_mode = 1
|
|
|
|
[node name="Jump" type="TouchScreenButton" parent="UI"]
|
|
visible = false
|
|
position = Vector2( 666.224, 359.02 )
|
|
scale = Vector2( 1.49157, 1.46265 )
|
|
normal = ExtResource( 7 )
|
|
action = "jump"
|
|
visibility_mode = 1
|
|
|
|
[node name="Fire" type="TouchScreenButton" parent="UI"]
|
|
visible = false
|
|
position = Vector2( 668.073, 262.788 )
|
|
scale = Vector2( 1.49157, 1.46265 )
|
|
normal = ExtResource( 8 )
|
|
action = "shoot"
|
|
visibility_mode = 1
|
|
|
|
[node name="jump" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource( 3 )
|
|
volume_db = -3.714
|
|
pitch_scale = 1.48
|