Skip to content

Commit 397e50f

Browse files
wjtstarnight
authored andcommitted
Platformer: Remove unused AnimationPlayer from stationary platform
1 parent 5f86e36 commit 397e50f

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

game-03/components/platform/platform.tscn

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[gd_scene load_steps=6 format=3 uid="uid://coq6d3u6wnvs2"]
1+
[gd_scene load_steps=4 format=3 uid="uid://coq6d3u6wnvs2"]
22

33
[ext_resource type="TileSet" uid="uid://bmkax0b814rmy" path="res://game-03/spaces/tileset-a.tres" id="1_3rwtc"]
44

@@ -8,27 +8,6 @@ size = Vector2(256, 32)
88
[sub_resource type="RectangleShape2D" id="RectangleShape2D_o2vn2"]
99
size = Vector2(256, 128)
1010

11-
[sub_resource type="Animation" id="Animation_6232f"]
12-
resource_name = "shake"
13-
loop_mode = 1
14-
tracks/0/type = "value"
15-
tracks/0/imported = false
16-
tracks/0/enabled = true
17-
tracks/0/path = NodePath(".:position")
18-
tracks/0/interp = 0
19-
tracks/0/loop_wrap = true
20-
tracks/0/keys = {
21-
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1),
22-
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
23-
"update": 1,
24-
"values": [Vector2(0, 0), Vector2(5, 4), Vector2(-2, 4), Vector2(-5, -4), Vector2(4, 5), Vector2(-4, 4), Vector2(2, -3), Vector2(-1, 0), Vector2(5, 2), Vector2(3, -2), Vector2(2, -3)]
25-
}
26-
27-
[sub_resource type="AnimationLibrary" id="AnimationLibrary_cwxfq"]
28-
_data = {
29-
"shake": SubResource("Animation_6232f")
30-
}
31-
3211
[node name="Platform" type="Node2D"]
3312

3413
[node name="RigidBody2D" type="RigidBody2D" parent="."]
@@ -51,13 +30,6 @@ position = Vector2(0, 64)
5130
shape = SubResource("RectangleShape2D_o2vn2")
5231
metadata/_edit_group_ = true
5332

54-
[node name="AnimationPlayer" type="AnimationPlayer" parent="RigidBody2D"]
55-
unique_name_in_owner = true
56-
root_node = NodePath("")
57-
libraries = {
58-
"": SubResource("AnimationLibrary_cwxfq")
59-
}
60-
6133
[node name="TileMapLayer" type="TileMapLayer" parent="."]
6234
tile_map_data = PackedByteArray(0, 0, 255, 255, 0, 0, 0, 0, 10, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 1, 0, 0, 0)
6335
tile_set = ExtResource("1_3rwtc")

0 commit comments

Comments
 (0)