-
Notifications
You must be signed in to change notification settings - Fork 0
/
Saw.tscn
77 lines (68 loc) · 1.95 KB
/
Saw.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[gd_scene load_steps=11 format=2]
[ext_resource path="res://Saw.gd" type="Script" id=1]
[ext_resource path="res://assets/sprites/saw/yellow.png" type="Texture" id=2]
[ext_resource path="res://assets/sprites/saw/green.png" type="Texture" id=3]
[ext_resource path="res://assets/sprites/saw/scie.png" type="Texture" id=4]
[ext_resource path="res://assets/sprites/saw/blue.png" type="Texture" id=5]
[ext_resource path="res://assets/sprites/saw/red.png" type="Texture" id=6]
[ext_resource path="res://assets/audio/saw.wav" type="AudioStream" id=7]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 2 ) ],
"loop": true,
"name": "3",
"speed": 5.0
}, {
"frames": [ ExtResource( 3 ) ],
"loop": true,
"name": "1",
"speed": 5.0
}, {
"frames": [ ExtResource( 4 ) ],
"loop": true,
"name": "4",
"speed": 5.0
}, {
"frames": [ ExtResource( 5 ) ],
"loop": true,
"name": "2",
"speed": 5.0
}, {
"frames": [ ExtResource( 6 ) ],
"loop": true,
"name": "0",
"speed": 5.0
} ]
[sub_resource type="Animation" id=2]
resource_name = "spin"
length = 0.3
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath(".:rotation_degrees")
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 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ 0.0, 360.0 ]
}
[sub_resource type="CircleShape2D" id=3]
radius = 56.2794
[node name="Saw" type="Area2D"]
script = ExtResource( 1 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
rotation = 5.43479
frames = SubResource( 1 )
animation = "4"
[node name="AnimationPlayer" type="AnimationPlayer" parent="AnimatedSprite"]
autoplay = "spin"
anims/spin = SubResource( 2 )
[node name="Hitbox" type="CollisionShape2D" parent="."]
shape = SubResource( 3 )
[node name="Audio" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 7 )
volume_db = -2.0
[connection signal="body_entered" from="." to="." method="_on_Saw_body_entered"]