13 lines
395 B
GDScript
13 lines
395 B
GDScript
extends Control
|
|
|
|
|
|
func _ready() -> void:
|
|
get_tree().paused = false
|
|
$"%PlayButton".grab_focus()
|
|
GlobalAudio.play_scene_independent("res://assets/music/Shopping For The Future (LOOP).wav","Music", -17, true)
|
|
$"%SwayingGrassCheckbox".pressed = GlobalState.get_swaying_grass()
|
|
|
|
|
|
func _on_SwayingGrassCheckbox_toggled(button_pressed: bool) -> void:
|
|
GlobalState.set_swaying_grass(button_pressed)
|