-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWorld.tscn
51 lines (42 loc) · 1.36 KB
/
World.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[gd_scene load_steps=6 format=2]
[ext_resource path="res://World.gd" type="Script" id=1]
[ext_resource path="res://Hero.tscn" type="PackedScene" id=2]
[ext_resource path="res://Mushroom.tscn" type="PackedScene" id=3]
[ext_resource path="res://Brick.tscn" type="PackedScene" id=6]
[sub_resource type="Animation" id=1]
resource_name = "toggle_breakable"
loop = true
tracks/0/type = "method"
tracks/0/path = NodePath(".")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 1 ),
"transitions": PoolRealArray( 1 ),
"values": [ {
"args": [ ],
"method": "toggle_breakable"
} ]
}
[node name="World" type="Node2D" groups=[
"collision_managers",
]]
script = ExtResource( 1 )
[node name="Hero" parent="." instance=ExtResource( 2 )]
position = Vector2( 150, 300 )
[node name="Brick" parent="." groups=[
"breakable",
] instance=ExtResource( 6 )]
position = Vector2( 500, 100 )
[node name="Brick2" parent="." instance=ExtResource( 6 )]
position = Vector2( 500, 300 )
[node name="Brick3" parent="." instance=ExtResource( 6 )]
position = Vector2( 500, 500 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="Brick3"]
autoplay = "toggle_breakable"
playback_speed = 0.5
anims/toggle_breakable = SubResource( 1 )
[node name="Mushroom" parent="." instance=ExtResource( 3 )]
position = Vector2( 850, 300 )