timing
This commit is contained in:
parent
0b471de7ce
commit
d01f8f1cce
2 changed files with 19 additions and 18 deletions
|
@ -83,7 +83,8 @@ func _on_start_game_timeout() -> void:
|
|||
mash.visible = true
|
||||
mouse.visible = true
|
||||
|
||||
num_clicks = randi_range(5,20)
|
||||
num_clicks = randi_range(5,21)
|
||||
num_clicks = 21
|
||||
|
||||
|
||||
# YOU LOSE
|
||||
|
|
|
@ -11,6 +11,21 @@
|
|||
[ext_resource type="Texture2D" uid="uid://d4kyih3ivlqqc" path="res://scenes/microgames/fishin/KibbbySad.png" id="9_blola"]
|
||||
[ext_resource type="Texture2D" uid="uid://dcvie7ynwdfui" path="res://scenes/microgames/fishin/KibbbyHappy.png" id="10_1il5r"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_bep6n"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("ShakePivot3/Mouse:texture")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [null]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_fxbt5"]
|
||||
resource_name = "mash"
|
||||
loop_mode = 1
|
||||
|
@ -27,21 +42,6 @@ tracks/0/keys = {
|
|||
"values": [ExtResource("6_7ls0g"), ExtResource("7_qpcgm")]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_bep6n"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("ShakePivot3/Mouse:texture")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [null]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_7e725"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_bep6n"),
|
||||
|
@ -109,7 +109,7 @@ scale = Vector2(0.216276, 0.249769)
|
|||
autostart = true
|
||||
|
||||
[node name="InGame" type="Timer" parent="."]
|
||||
wait_time = 10.0
|
||||
wait_time = 3.0
|
||||
|
||||
[node name="SAD" type="Sprite2D" parent="."]
|
||||
visible = false
|
||||
|
@ -122,7 +122,7 @@ position = Vector2(535, 300)
|
|||
texture = ExtResource("10_1il5r")
|
||||
|
||||
[node name="SuccessFail" type="Timer" parent="."]
|
||||
wait_time = 2.0
|
||||
wait_time = 3.0
|
||||
|
||||
[connection signal="button_up" from="TextureButton" to="." method="_on_texture_button_button_up"]
|
||||
[connection signal="timeout" from="StartGame" to="." method="_on_start_game_timeout"]
|
||||
|
|
Loading…
Add table
Reference in a new issue