2024-11-07 21:39:59 +01:00
|
|
|
[gd_scene load_steps=13 format=2]
|
2024-08-24 05:54:38 +02:00
|
|
|
|
2024-11-07 21:39:59 +01:00
|
|
|
[ext_resource path="res://sprites/ceres/pamela/sprite.png" type="Texture" id=1]
|
|
|
|
[ext_resource path="res://sprites/ceres/pamela/pamela.gd" type="Script" id=2]
|
2024-08-24 05:54:38 +02:00
|
|
|
|
2024-11-07 21:39:59 +01:00
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
|
|
extents = Vector2( 45, 128 )
|
2024-08-24 05:54:38 +02:00
|
|
|
|
2024-11-07 21:39:59 +01:00
|
|
|
[sub_resource type="Animation" id=2]
|
2024-08-24 05:54:38 +02:00
|
|
|
length = 0.001
|
|
|
|
tracks/0/type = "value"
|
2024-11-07 21:39:59 +01:00
|
|
|
tracks/0/path = NodePath("Sprite:frame")
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
2024-11-07 21:39:59 +01:00
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/keys = {
|
2024-11-07 21:39:59 +01:00
|
|
|
"times": PoolRealArray( 0 ),
|
|
|
|
"transitions": PoolRealArray( 1 ),
|
2024-08-24 05:54:38 +02:00
|
|
|
"update": 1,
|
2024-11-07 21:39:59 +01:00
|
|
|
"values": [ 8 ]
|
2024-08-24 05:54:38 +02:00
|
|
|
}
|
|
|
|
|
2024-11-07 21:39:59 +01:00
|
|
|
[sub_resource type="Animation" id=3]
|
2024-08-24 05:54:38 +02:00
|
|
|
resource_name = "eidle"
|
2024-11-07 21:39:59 +01:00
|
|
|
loop = true
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/type = "value"
|
2024-11-07 21:39:59 +01:00
|
|
|
tracks/0/path = NodePath("Sprite:frame")
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
2024-11-07 21:39:59 +01:00
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/keys = {
|
2024-11-07 21:39:59 +01:00
|
|
|
"times": PoolRealArray( 0 ),
|
|
|
|
"transitions": PoolRealArray( 1 ),
|
2024-08-24 05:54:38 +02:00
|
|
|
"update": 1,
|
2024-11-07 21:39:59 +01:00
|
|
|
"values": [ 8 ]
|
2024-08-24 05:54:38 +02:00
|
|
|
}
|
|
|
|
|
2024-11-07 21:39:59 +01:00
|
|
|
[sub_resource type="Animation" id=4]
|
2024-08-24 05:54:38 +02:00
|
|
|
resource_name = "ewalk"
|
|
|
|
length = 0.3
|
2024-11-07 21:39:59 +01:00
|
|
|
loop = true
|
|
|
|
step = 0.033
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/type = "value"
|
2024-11-07 21:39:59 +01:00
|
|
|
tracks/0/path = NodePath("Sprite:frame")
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
2024-11-07 21:39:59 +01:00
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/keys = {
|
2024-11-07 21:39:59 +01:00
|
|
|
"times": PoolRealArray( 0, 0.099, 0.198 ),
|
|
|
|
"transitions": PoolRealArray( 1, 1, 1 ),
|
2024-08-24 05:54:38 +02:00
|
|
|
"update": 1,
|
2024-11-07 21:39:59 +01:00
|
|
|
"values": [ 9, 8, 10 ]
|
2024-08-24 05:54:38 +02:00
|
|
|
}
|
|
|
|
|
2024-11-07 21:39:59 +01:00
|
|
|
[sub_resource type="Animation" id=5]
|
2024-08-24 05:54:38 +02:00
|
|
|
resource_name = "nidle"
|
2024-11-07 21:39:59 +01:00
|
|
|
loop = true
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/type = "value"
|
2024-11-07 21:39:59 +01:00
|
|
|
tracks/0/path = NodePath("Sprite:frame")
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
2024-11-07 21:39:59 +01:00
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/keys = {
|
2024-11-07 21:39:59 +01:00
|
|
|
"times": PoolRealArray( 0.1 ),
|
|
|
|
"transitions": PoolRealArray( 1 ),
|
2024-08-24 05:54:38 +02:00
|
|
|
"update": 1,
|
2024-11-07 21:39:59 +01:00
|
|
|
"values": [ 4 ]
|
2024-08-24 05:54:38 +02:00
|
|
|
}
|
|
|
|
|
2024-11-07 21:39:59 +01:00
|
|
|
[sub_resource type="Animation" id=6]
|
2024-08-24 05:54:38 +02:00
|
|
|
resource_name = "nwalk"
|
|
|
|
length = 0.3
|
2024-11-07 21:39:59 +01:00
|
|
|
loop = true
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/type = "value"
|
2024-11-07 21:39:59 +01:00
|
|
|
tracks/0/path = NodePath("Sprite:frame")
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
2024-11-07 21:39:59 +01:00
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/keys = {
|
2024-11-07 21:39:59 +01:00
|
|
|
"times": PoolRealArray( 0, 0.1, 0.2 ),
|
|
|
|
"transitions": PoolRealArray( 1, 1, 1 ),
|
2024-08-24 05:54:38 +02:00
|
|
|
"update": 1,
|
2024-11-07 21:39:59 +01:00
|
|
|
"values": [ 5, 4, 6 ]
|
2024-08-24 05:54:38 +02:00
|
|
|
}
|
|
|
|
|
2024-11-07 21:39:59 +01:00
|
|
|
[sub_resource type="Animation" id=7]
|
2024-08-24 05:54:38 +02:00
|
|
|
resource_name = "sidle"
|
2024-11-07 21:39:59 +01:00
|
|
|
loop = true
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/type = "value"
|
2024-11-07 21:39:59 +01:00
|
|
|
tracks/0/path = NodePath("Sprite:frame")
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
2024-11-07 21:39:59 +01:00
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/keys = {
|
2024-11-07 21:39:59 +01:00
|
|
|
"times": PoolRealArray( 0.5 ),
|
|
|
|
"transitions": PoolRealArray( 1 ),
|
2024-08-24 05:54:38 +02:00
|
|
|
"update": 1,
|
2024-11-07 21:39:59 +01:00
|
|
|
"values": [ 0 ]
|
2024-08-24 05:54:38 +02:00
|
|
|
}
|
|
|
|
|
2024-11-07 21:39:59 +01:00
|
|
|
[sub_resource type="Animation" id=8]
|
2024-08-24 05:54:38 +02:00
|
|
|
resource_name = "swalk"
|
|
|
|
length = 0.3
|
2024-11-07 21:39:59 +01:00
|
|
|
loop = true
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/type = "value"
|
2024-11-07 21:39:59 +01:00
|
|
|
tracks/0/path = NodePath("Sprite:frame")
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
2024-11-07 21:39:59 +01:00
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/keys = {
|
2024-11-07 21:39:59 +01:00
|
|
|
"times": PoolRealArray( 0, 0.1, 0.2 ),
|
|
|
|
"transitions": PoolRealArray( 1, 1, 1 ),
|
2024-08-24 05:54:38 +02:00
|
|
|
"update": 1,
|
2024-11-07 21:39:59 +01:00
|
|
|
"values": [ 1, 0, 2 ]
|
2024-08-24 05:54:38 +02:00
|
|
|
}
|
|
|
|
|
2024-11-07 21:39:59 +01:00
|
|
|
[sub_resource type="Animation" id=9]
|
2024-08-24 05:54:38 +02:00
|
|
|
resource_name = "widle"
|
2024-11-07 21:39:59 +01:00
|
|
|
length = 0.3
|
|
|
|
loop = true
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/type = "value"
|
2024-11-07 21:39:59 +01:00
|
|
|
tracks/0/path = NodePath("Sprite:frame")
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
2024-11-07 21:39:59 +01:00
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/keys = {
|
2024-11-07 21:39:59 +01:00
|
|
|
"times": PoolRealArray( 0 ),
|
|
|
|
"transitions": PoolRealArray( 1 ),
|
2024-08-24 05:54:38 +02:00
|
|
|
"update": 1,
|
2024-11-07 21:39:59 +01:00
|
|
|
"values": [ 12 ]
|
2024-08-24 05:54:38 +02:00
|
|
|
}
|
|
|
|
|
2024-11-07 21:39:59 +01:00
|
|
|
[sub_resource type="Animation" id=10]
|
2024-08-24 05:54:38 +02:00
|
|
|
resource_name = "wwalk"
|
|
|
|
length = 0.3
|
2024-11-07 21:39:59 +01:00
|
|
|
loop = true
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/type = "value"
|
2024-11-07 21:39:59 +01:00
|
|
|
tracks/0/path = NodePath("Sprite:frame")
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
2024-11-07 21:39:59 +01:00
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
2024-08-24 05:54:38 +02:00
|
|
|
tracks/0/keys = {
|
2024-11-07 21:39:59 +01:00
|
|
|
"times": PoolRealArray( 0, 0.1, 0.2 ),
|
|
|
|
"transitions": PoolRealArray( 1, 1, 1 ),
|
2024-08-24 05:54:38 +02:00
|
|
|
"update": 1,
|
2024-11-07 21:39:59 +01:00
|
|
|
"values": [ 13, 12, 14 ]
|
2024-08-24 05:54:38 +02:00
|
|
|
}
|
|
|
|
|
2024-11-07 21:39:59 +01:00
|
|
|
[node name="Pamela" type="KinematicBody2D"]
|
|
|
|
script = ExtResource( 2 )
|
2024-08-24 05:54:38 +02:00
|
|
|
|
2024-11-07 21:39:59 +01:00
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
|
|
texture = ExtResource( 1 )
|
|
|
|
hframes = 4
|
2024-08-24 05:54:38 +02:00
|
|
|
vframes = 4
|
2024-11-07 21:39:59 +01:00
|
|
|
frame = 8
|
2024-08-24 05:54:38 +02:00
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
2024-11-07 21:39:59 +01:00
|
|
|
shape = SubResource( 1 )
|
2024-08-24 05:54:38 +02:00
|
|
|
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
2024-11-07 21:39:59 +01:00
|
|
|
anims/RESET = SubResource( 2 )
|
|
|
|
anims/eidle = SubResource( 3 )
|
|
|
|
anims/ewalk = SubResource( 4 )
|
|
|
|
anims/nidle = SubResource( 5 )
|
|
|
|
anims/nwalk = SubResource( 6 )
|
|
|
|
anims/sidle = SubResource( 7 )
|
|
|
|
anims/swalk = SubResource( 8 )
|
|
|
|
anims/widle = SubResource( 9 )
|
|
|
|
anims/wwalk = SubResource( 10 )
|
2024-08-24 05:54:38 +02:00
|
|
|
|
|
|
|
[node name="Speed" type="Timer" parent="."]
|
|
|
|
wait_time = 0.1
|
|
|
|
|
|
|
|
[connection signal="timeout" from="Speed" to="." method="_on_speed_timeout"]
|