2022-11-19 23:07:56 -03:00
|
|
|
[gd_scene load_steps=11 format=2]
|
2022-11-09 20:21:26 -03:00
|
|
|
|
|
|
|
[ext_resource path="res://assets/checkpoint/checkpoint.png" type="Texture" id=1]
|
2022-11-19 23:07:56 -03:00
|
|
|
[ext_resource path="res://scenes/checkpoint/Checkpoint.cs" type="Script" id=2]
|
2022-11-09 20:21:26 -03:00
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=1]
|
|
|
|
atlas = ExtResource( 1 )
|
|
|
|
region = Rect2( 48, 0, 16, 32 )
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=2]
|
|
|
|
atlas = ExtResource( 1 )
|
|
|
|
region = Rect2( 32, 0, 16, 32 )
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=3]
|
|
|
|
atlas = ExtResource( 1 )
|
|
|
|
region = Rect2( 32, 0, 16, 32 )
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=4]
|
|
|
|
atlas = ExtResource( 1 )
|
|
|
|
region = Rect2( 16, 0, 16, 32 )
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=5]
|
|
|
|
atlas = ExtResource( 1 )
|
|
|
|
region = Rect2( 0, 0, 16, 32 )
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id=6]
|
|
|
|
atlas = ExtResource( 1 )
|
|
|
|
region = Rect2( 48, 0, 16, 32 )
|
|
|
|
|
|
|
|
[sub_resource type="SpriteFrames" id=7]
|
|
|
|
animations = [ {
|
|
|
|
"frames": [ SubResource( 1 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "activated",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [ SubResource( 2 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "deactivated",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [ SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "reached",
|
|
|
|
"speed": 5.0
|
|
|
|
} ]
|
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id=8]
|
|
|
|
extents = Vector2( 5, 10.5 )
|
|
|
|
|
|
|
|
[node name="Checkpoint" type="Area2D"]
|
2022-11-19 23:07:56 -03:00
|
|
|
collision_layer = 16
|
|
|
|
script = ExtResource( 2 )
|
2022-11-09 20:21:26 -03:00
|
|
|
|
|
|
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
|
|
|
frames = SubResource( 7 )
|
|
|
|
animation = "deactivated"
|
2022-11-19 23:07:56 -03:00
|
|
|
centered = false
|
2022-11-09 20:21:26 -03:00
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
visible = false
|
2022-11-19 23:07:56 -03:00
|
|
|
position = Vector2( 8, 21.5 )
|
2022-11-09 20:21:26 -03:00
|
|
|
shape = SubResource( 8 )
|
2022-11-19 23:07:56 -03:00
|
|
|
|
|
|
|
[connection signal="body_entered" from="." to="." method="OnCheckpointBodyEntered"]
|