21 lines
493 B
GDScript
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.
|