martian-mike/scenes/jump_pad.tscn

97 lines
2.6 KiB
Text
Raw Normal View History

2024-11-02 07:50:32 +01:00
[gd_scene load_steps=14 format=3 uid="uid://dfrcbemxybvbj"]
[ext_resource type="Script" path="res://scripts/jump_pad.gd" id="1_kafhd"]
[ext_resource type="Texture2D" uid="uid://2su0kid2txul" path="res://assets/textures/other/Idle.png" id="2_1m2vt"]
[ext_resource type="Texture2D" uid="uid://cyy3gs64gm38x" path="res://assets/textures/other/Jump (28x28).png" id="3_vi0gn"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_pekj0"]
size = Vector2(20, 4)
[sub_resource type="AtlasTexture" id="AtlasTexture_xbhp4"]
atlas = ExtResource("3_vi0gn")
region = Rect2(0, 0, 28, 28)
[sub_resource type="AtlasTexture" id="AtlasTexture_h5mcm"]
atlas = ExtResource("3_vi0gn")
region = Rect2(28, 0, 28, 28)
[sub_resource type="AtlasTexture" id="AtlasTexture_dpm0s"]
atlas = ExtResource("3_vi0gn")
region = Rect2(56, 0, 28, 28)
[sub_resource type="AtlasTexture" id="AtlasTexture_t5et8"]
atlas = ExtResource("3_vi0gn")
region = Rect2(84, 0, 28, 28)
[sub_resource type="AtlasTexture" id="AtlasTexture_w8iil"]
atlas = ExtResource("3_vi0gn")
region = Rect2(112, 0, 28, 28)
[sub_resource type="AtlasTexture" id="AtlasTexture_5w5io"]
atlas = ExtResource("3_vi0gn")
region = Rect2(140, 0, 28, 28)
[sub_resource type="AtlasTexture" id="AtlasTexture_qjntm"]
atlas = ExtResource("3_vi0gn")
region = Rect2(168, 0, 28, 28)
[sub_resource type="AtlasTexture" id="AtlasTexture_6oce2"]
atlas = ExtResource("3_vi0gn")
region = Rect2(196, 0, 28, 28)
[sub_resource type="SpriteFrames" id="SpriteFrames_fsh0p"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_1m2vt")
}],
"loop": true,
"name": &"idle",
"speed": 20.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_xbhp4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_h5mcm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dpm0s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_t5et8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_w8iil")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5w5io")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qjntm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6oce2")
}],
"loop": false,
"name": &"jump",
"speed": 20.0
}]
[node name="JumpPad" type="Area2D"]
collision_mask = 2
script = ExtResource("1_kafhd")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -10)
shape = SubResource("RectangleShape2D_pekj0")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(0, -14)
sprite_frames = SubResource("SpriteFrames_fsh0p")
animation = &"jump"
autoplay = "idle"
[connection signal="body_entered" from="." to="." method="_on_body_entered"]