midori-school/levels/ui/vmboot.gd

25 lines
656 B
GDScript3
Raw Normal View History

2024-03-13 02:32:04 +01:00
extends Node2D
const backgrounds = ["res://backgounds/booting.png", "res://backgounds/fsck.png"]
var stage = 0
var bg
# Called when the node enters the scene tree for the first time.
func _ready():
2024-09-07 18:25:58 +02:00
Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
2024-03-13 02:32:04 +01:00
bg = $TextureRect
bg.texture = load(backgrounds[stage])
#pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _on_timer_timeout():
if stage == 0:
stage = stage + 1
bg.texture = load(backgrounds[stage])
else:
2024-11-04 00:29:58 +01:00
get_tree().change_scene("res://backgounds/disclaimer.tscn")
2024-03-13 02:32:04 +01:00
#pass # Replace with function body.