-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWorkGame.tscn
147 lines (126 loc) · 4.64 KB
/
WorkGame.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
[gd_scene load_steps=20 format=2]
[ext_resource path="res://textures/sprites/Work/work_desk_on.png" type="Texture" id=1]
[ext_resource path="res://scripts/work/Timer.gd" type="Script" id=2]
[ext_resource path="res://textures/sprites/Work/work_desk_off.png" type="Texture" id=3]
[ext_resource path="res://prefabs/Dialoguer_WorkGame.tscn" type="PackedScene" id=4]
[ext_resource path="res://scripts/work/drawer.gd" type="Script" id=5]
[ext_resource path="res://scripts/work/audio.gd" type="Script" id=6]
[ext_resource path="res://textures/sprites/Work/work_background.png" type="Texture" id=7]
[ext_resource path="res://scripts/work/gamer.gd" type="Script" id=8]
[ext_resource path="res://scripts/work/looper.gd" type="Script" id=9]
[ext_resource path="res://textures/sprites/cassette_blue_idle1.png" type="Texture" id=11]
[ext_resource path="res://textures/sprites/cassette_blue_idle2.png" type="Texture" id=12]
[ext_resource path="res://textures/sprites/cassette_green_idle1.png" type="Texture" id=13]
[ext_resource path="res://textures/sprites/cassette_green_idle2.png" type="Texture" id=14]
[ext_resource path="res://textures/sprites/cassette_yellow_idle2.png" type="Texture" id=15]
[ext_resource path="res://textures/sprites/cassette_yellow_idle1.png" type="Texture" id=16]
[ext_resource path="res://fonts/Minimal5x7STitle.tres" type="DynamicFont" id=18]
[sub_resource type="GDScript" id=1]
script/source = "extends Node2D
func _ready():
$\"/root/Music\".volume_db = -500;
func _exit_tree():
$\"/root/Music\".volume_db = -20;
"
[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ ExtResource( 16 ), ExtResource( 15 ) ],
"loop": true,
"name": "def1",
"speed": 5.0
}, {
"frames": [ ExtResource( 11 ), ExtResource( 12 ) ],
"loop": true,
"name": "def0",
"speed": 5.0
}, {
"frames": [ ExtResource( 13 ), ExtResource( 14 ) ],
"loop": true,
"name": "def2",
"speed": 5.0
} ]
[sub_resource type="GDScript" id=3]
script/source = "extends AnimatedSprite
var anims = [\"def0\", \"def1\", \"def2\"]
func _exit_tree():
$\"/root/Quester\".show();
func _ready():
$\"/root/Quester\".hide();
randomize();
animation = anims[randi()%len(anims)];
"
[node name="Node2D" type="Node2D"]
script = SubResource( 1 )
[node name="background" type="Sprite" parent="."]
position = Vector2( 555, 314 )
scale = Vector2( 2.35741, 2.35741 )
texture = ExtResource( 7 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
position = Vector2( 855.736, 252.517 )
scale = Vector2( 6.34568, 6.34568 )
frames = SubResource( 2 )
animation = "def2"
playing = true
script = SubResource( 3 )
[node name="workdesk" type="Sprite" parent="."]
position = Vector2( 450, 341 )
scale = Vector2( 2.02778, 2.02778 )
texture = ExtResource( 3 )
[node name="looper" type="Node2D" parent="."]
script = ExtResource( 9 )
[node name="audio" type="AudioStreamPlayer" parent="."]
volume_db = -20.0
script = ExtResource( 6 )
[node name="drawer" type="Node2D" parent="."]
position = Vector2( 264, 480 )
z_index = 2
script = ExtResource( 5 )
[node name="dialoger" parent="." instance=ExtResource( 4 )]
position = Vector2( 233, 286 )
[node name="gamer" type="Node2D" parent="."]
z_index = 2
z_as_relative = false
script = ExtResource( 8 )
[node name="rec_button" type="Sprite" parent="gamer"]
visible = false
position = Vector2( 449.41, 340.722 )
scale = Vector2( 2.03563, 2.03563 )
texture = ExtResource( 1 )
[node name="praiser" type="ColorRect" parent="gamer"]
visible = false
margin_left = 128.0
margin_top = 128.0
margin_right = 896.0
margin_bottom = 448.0
color = Color( 0, 0, 0, 0.470588 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="gamer/praiser"]
anchor_left = 0.083
anchor_top = 0.2
anchor_right = 0.917
anchor_bottom = 0.8
margin_left = 0.255997
margin_right = -0.256042
custom_fonts/font = ExtResource( 18 )
align = 1
valign = 1
autowrap = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Transition_Timer" type="Timer" parent="gamer"]
wait_time = 4.0
one_shot = true
[node name="Timer" type="Timer" parent="."]
wait_time = 0.4
autostart = true
script = ExtResource( 2 )
[connection signal="recording_off" from="gamer" to="drawer" method="_on_gamer_recording_off"]
[connection signal="recording_off" from="gamer" to="audio" method="_on_gamer_recording_off"]
[connection signal="recording_on" from="gamer" to="drawer" method="_on_gamer_recording_on"]
[connection signal="timeout" from="gamer/Transition_Timer" to="gamer" method="_on_Transition_Timer_timeout"]
[connection signal="timeout" from="Timer" to="drawer" method="_on_Timer_timeout"]
[connection signal="timeout" from="Timer" to="gamer" method="_on_Timer_timeout"]
[connection signal="timeout" from="Timer" to="audio" method="_on_Timer_timeout"]