ChocolateBird/Node2D.gd

15 lines
387 B
GDScript3
Raw Normal View History

2023-07-25 14:21:10 +09:30
extends Node2D
2023-07-29 01:53:03 +09:30
var save_slots = []
var save_slot_dicts = []
2023-07-25 14:21:10 +09:30
func _ready():
Engine.set_target_fps(60)
2023-07-29 01:53:03 +09:30
var save_file := File.new()
var error := save_file.open('test.srm', File.READ)
if error == OK:
for i in 4:
save_slots.append(SaveLoader.get_save_slot(save_file, i))
save_slot_dicts.append(SaveLoader.get_struct(save_slots[i], 'Save_slot'))
print('Loaded test save file')