mirror of
https://github.com/anthonyaxenov/toddler-play.git
synced 2024-09-16 11:42:23 +00:00
16 lines
287 B
GDScript3
16 lines
287 B
GDScript3
|
extends Node2D
|
||
|
|
||
|
func _process(delta):
|
||
|
$ParallaxBackground.scroll_offset.x -= delta * 100
|
||
|
|
||
|
# play button pressed
|
||
|
func _on_play_btn_pressed():
|
||
|
Core.change_level(1)
|
||
|
|
||
|
# exit button pressed
|
||
|
func _on_exit_btn_pressed():
|
||
|
get_tree().quit()
|
||
|
|
||
|
func _ready():
|
||
|
$Version.text = 'v' + Core.VERSION
|