Poprawki w dzwiękach

This commit is contained in:
Tirith 2025-10-31 14:01:13 +01:00
parent 1af8d16e6a
commit 7569b9d172
5 changed files with 20 additions and 15 deletions

View File

@ -18,12 +18,7 @@ position = Vector2(580.00006, 340.00003)
scale = Vector2(0.30208334, 0.3148148) scale = Vector2(0.30208334, 0.3148148)
texture = ExtResource("1_n7ltq") texture = ExtResource("1_n7ltq")
[node name="TimeDisplay" parent="CanvasLayer" instance=ExtResource("3_fmtwf")] [node name="AudioStreamPlayer2D" type="AudioStreamPlayer" parent="."]
offset_left = 896.0
offset_top = 8.0
offset_bottom = -616.0
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("3_mlxib") stream = ExtResource("3_mlxib")
autoplay = true autoplay = true
@ -31,3 +26,14 @@ autoplay = true
position = Vector2(904, 512) position = Vector2(904, 512)
zoom = Vector2(0.64, 0.64) zoom = Vector2(0.64, 0.64)
script = ExtResource("4_5xxpo") script = ExtResource("4_5xxpo")
[node name="CanvasLayer2" type="CanvasLayer" parent="."]
layer = 10
[node name="TimeDisplay" parent="CanvasLayer2" instance=ExtResource("3_fmtwf")]
top_level = true
z_index = 10
z_as_relative = false
offset_left = 896.0
offset_top = 8.0
offset_bottom = -616.0

View File

@ -8,8 +8,8 @@ func _ready():
func _process(delta): func _process(delta):
game_time += delta * Settings.TIME_SCALE game_time += delta #* Settings.TIME_SCALE
#print(game_time) #print(game_time)
update_timer += delta * Settings.TIME_SCALE update_timer += delta #* Settings.TIME_SCALE
if update_timer >= Settings.UPDATE_INTERVAL: if update_timer >= Settings.UPDATE_INTERVAL:
update_timer = 0.0 update_timer = 0.0

View File

@ -12,7 +12,6 @@ func _ready():
if GameData.game_lunched == true: if GameData.game_lunched == true:
back_button.visible = true back_button.visible = true
else : else :
MusicManager.play_music()
back_button.visible = false back_button.visible = false

View File

@ -16,7 +16,7 @@ func _ready():
func _process(delta): func _process(delta):
angle += orbit_speed * delta * Settings.TIME_SCALE # obrót w czasie angle += orbit_speed * delta # obrót w czasie
angle = fmod(angle, TAU) # utrzymanie kąta w 0..2π angle = fmod(angle, TAU) # utrzymanie kąta w 0..2π
_update_position() _update_position()

View File

@ -27,13 +27,13 @@ func _process(delta):
time_label.text = full_date time_label.text = full_date
func _on_faster_pressed(): func _on_faster_pressed():
if Settings.TIME_SCALE < 10: if Engine.time_scale < 20:
Settings.TIME_SCALE +=1 Engine.time_scale +=2
func _on_slower_pressed(): func _on_slower_pressed():
if Settings.TIME_SCALE > 0: if Engine.time_scale > 0:
Settings.TIME_SCALE -=1 Engine.time_scale -=2
func _on_pause_pressed(): func _on_pause_pressed():
Settings.TIME_SCALE = 0 Engine.time_scale = 0
#func _on_menu_button_pressed(): #func _on_menu_button_pressed():
#get_tree().change_scene_to_file("res://scenes/menu.tscn") #get_tree().change_scene_to_file("res://scenes/menu.tscn")