1
0
This repository has been archived on 2026-07-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
countdown-mayhem/assets/scripts/main_menu.gd
T
2026-07-26 12:18:42 +02:00

21 lines
493 B
GDScript

extends Control
@onready var bg = $TextureRect
@onready var title1 = $title1
@onready var title2 = $title2
var timer := 0.0
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
timer += delta
bg.position = get_local_mouse_position() / 200 - Vector2(16, 8)
title1.position.y = 120 + sin(timer) * 16
title2.position.y = 120 + sin(timer) * 16
func _on_play_button_mouse_entered() -> void:
pass # Replace with function body.