1
0
Fork 0
Cleanomancer/Script/Credits.gd

14 lines
272 B
GDScript

extends Node2D
export (Texture) var finished
export (Texture) var not_finished
func _ready():
check()
func check(force := false):
if File.new().file_exists("user://finished.dat") or force:
$Background.texture = finished
else:
$Background.texture = not_finished