r3-next/save.gd

7 lines
310 B
GDScript3
Raw Permalink Normal View History

2023-11-01 17:35:54 +01:00
extends Node
func _init():
2023-11-12 18:20:59 +01:00
var saveinit = Global.levelmax[0]+","+Global.levelmax[1]+","+Global.levelmax[2]+","+Global.levelmax[3]+","+Global.levelmax[4]+","+Global.levelmax[5]+","+Global.levelmax[6]
2023-11-01 17:35:54 +01:00
var file = FileAccess.open(Global.hiscoresfile, FileAccess.WRITE)
file.store_string(saveinit)
file.close()