-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRock.tscn
More file actions
55 lines (45 loc) · 1.38 KB
/
Rock.tscn
File metadata and controls
55 lines (45 loc) · 1.38 KB
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
52
53
54
55
[gd_scene load_steps=7 format=2]
[ext_resource path="res://gfx/tiles.png" type="Texture" id=1]
[ext_resource path="res://Rock.gd" type="Script" id=2]
[sub_resource type="CircleShape2D" id=1]
radius = 32.0
[sub_resource type="AtlasTexture" id=2]
atlas = ExtResource( 1 )
region = Rect2( 0, 80, 32, 32 )
[sub_resource type="Animation" id=3]
resource_name = "idle"
length = 5.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Mask:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.3, 1 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
}
[sub_resource type="AtlasTexture" id=4]
atlas = ExtResource( 1 )
region = Rect2( 32, 80, 32, 32 )
[node name="Rock" type="RigidBody2D" groups=[
"trees",
]]
input_pickable = true
gravity_scale = 3.0
script = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
scale = Vector2( 3, 3 )
texture = SubResource( 2 )
region_rect = Rect2( 0, 24, 48, 8 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/idle = SubResource( 3 )
[node name="Mask" type="Sprite" parent="."]
modulate = Color( 1, 1, 1, 0 )
scale = Vector2( 3, 3 )
texture = SubResource( 4 )