extends Control # Called when the node enters the scene tree for the first time. func _ready(): pass # Replace with function body. # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta): $CanvasLayer/Pentagram.rotation += PI * delta func _on_play_button_pressed(): get_tree().change_scene_to_file("res://Level/level.tscn") func _on_quit_button_pressed(): get_tree().quit() func _on_how_to_play_button_pressed(): get_tree().change_scene_to_file("res://HowToPlay/how_to_play.tscn") func _on_music_timer_timeout(): $RythmTimer.start() func _on_rythm_timer_timeout(): var r = randf() var g = randf() var b = randf() $CanvasLayer/TextureRect.modulate = Color(r, g, b) $CanvasLayer/Pentagram.visible = not $CanvasLayer/Pentagram.visible $CanvasLayer/Pentagram.scale.x = randf() * 2 $CanvasLayer/Pentagram.scale.y = $CanvasLayer/Pentagram.scale.x $CanvasLayer/Pentagram.position.x = randf() * get_viewport().size.x $CanvasLayer/Pentagram.position.y = randf() * get_viewport().size.y