Fix timings
This commit is contained in:
parent
4ac76453e1
commit
5969b56b75
4 changed files with 26 additions and 14 deletions
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=17 format=4 uid="uid://5ske2hm55rce"]
|
||||
[gd_scene load_steps=18 format=4 uid="uid://5ske2hm55rce"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://n2lpy72tkyc8" path="res://storm/StormManager.tscn" id="1_gcxt1"]
|
||||
[ext_resource type="Script" path="res://main.gd" id="1_pg2kh"]
|
||||
|
@ -12,6 +12,7 @@
|
|||
[ext_resource type="Texture2D" uid="uid://bccyjf2bn3mpj" path="res://background.png" id="7_bnuu0"]
|
||||
[ext_resource type="PackedScene" uid="uid://byyyhq3x8t2d8" path="res://InfoWindow.tscn" id="7_f4xfy"]
|
||||
[ext_resource type="PackedScene" uid="uid://b22pr3istdhcv" path="res://ui/BuildingMenu.tscn" id="7_hnxcf"]
|
||||
[ext_resource type="PackedScene" path="res://Night.tscn" id="13_8fvl0"]
|
||||
[ext_resource type="AudioStream" uid="uid://dfxndvkdey800" path="res://light version final(1).wav" id="13_tvksj"]
|
||||
[ext_resource type="AudioStream" uid="uid://dk2thkxy31doi" path="res://heavy version.wav" id="14_frsfx"]
|
||||
|
||||
|
@ -180,6 +181,10 @@ pivot_offset = Vector2(114, 128)
|
|||
|
||||
[node name="BuildingMenu" parent="CanvasLayer" instance=ExtResource("7_hnxcf")]
|
||||
|
||||
[node name="Night" parent="CanvasLayer" instance=ExtResource("13_8fvl0")]
|
||||
modulate = Color(1, 1, 1, 0)
|
||||
color = Color(0.121569, 0, 0.25098, 0.392157)
|
||||
|
||||
[node name="CanvasLayer2" type="CanvasLayer" parent="."]
|
||||
layer = -1
|
||||
|
||||
|
|
6
Night.tscn
Normal file
6
Night.tscn
Normal file
|
@ -0,0 +1,6 @@
|
|||
[gd_scene format=3 uid="uid://v4qfjewow3cb"]
|
||||
|
||||
[node name="Night" type="ColorRect"]
|
||||
offset_right = 640.0
|
||||
offset_bottom = 360.0
|
||||
color = Color(0.121569, 0, 0.25098, 0.690196)
|
13
main.gd
13
main.gd
|
@ -7,6 +7,19 @@ extends Node2D
|
|||
$Node2D/Level5/BuildingLevel5,
|
||||
$Node2D/BuildingLevel6
|
||||
]
|
||||
@onready var night: ColorRect = $CanvasLayer/Night
|
||||
var night_tween
|
||||
|
||||
func _ready() -> void:
|
||||
if night_tween:
|
||||
night_tween.kill()
|
||||
|
||||
night_tween = create_tween()
|
||||
night_tween.set_loops()
|
||||
night_tween.tween_property(night, "modulate", Color.TRANSPARENT, 5)
|
||||
night_tween.tween_interval(15)
|
||||
night_tween.tween_property(night, "modulate", Color.WHITE, 5)
|
||||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if Input.is_action_just_released("lclick"):
|
||||
|
|
|
@ -1,20 +1,8 @@
|
|||
time_to_flood_change: 250
|
||||
time_to_flood_change: 25
|
||||
flood_levels[]
|
||||
0
|
||||
2
|
||||
4
|
||||
5
|
||||
3
|
||||
1
|
||||
0
|
||||
2
|
||||
4
|
||||
5
|
||||
3
|
||||
1
|
||||
0
|
||||
2
|
||||
4
|
||||
5
|
||||
3
|
||||
1
|
||||
|
|
Loading…
Reference in a new issue