55 lines
1.6 KiB
Plaintext
55 lines
1.6 KiB
Plaintext
[gd_scene load_steps=8 format=3 uid="uid://bfroah50qq5gb"]
|
|
|
|
[ext_resource type="Script" path="res://checkpoint.gd" id="1_dskwv"]
|
|
[ext_resource type="Texture2D" uid="uid://45fgpfmo6jpm" path="res://sheet1.png" id="2_v47p3"]
|
|
[ext_resource type="AudioStream" uid="uid://dl273eryfwl8x" path="res://checkpoint.wav" id="3_wd3wv"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_wjet7"]
|
|
atlas = ExtResource("2_v47p3")
|
|
region = Rect2(64, 295, 13, 25)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_8werw"]
|
|
atlas = ExtResource("2_v47p3")
|
|
region = Rect2(39, 295, 13, 25)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_2o0ox"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_wjet7")
|
|
}],
|
|
"loop": true,
|
|
"name": &"checked",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_8werw")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_6j55p"]
|
|
size = Vector2(13, 25)
|
|
|
|
[node name="Checkpoint" type="CharacterBody2D"]
|
|
script = ExtResource("1_dskwv")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
position = Vector2(-7, -15)
|
|
sprite_frames = SubResource("SpriteFrames_2o0ox")
|
|
centered = false
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
position = Vector2(-0.5, -2.5)
|
|
shape = SubResource("RectangleShape2D_6j55p")
|
|
|
|
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource("3_wd3wv")
|
|
|
|
[connection signal="body_shape_entered" from="Area2D" to="." method="_on_area_2d_body_shape_entered"]
|