SaveStation, save & load properly

This commit is contained in:
Felipe M 2021-05-22 18:33:00 +02:00
parent d4acde846c
commit 847670821d
Signed by: fmartingr
GPG key ID: 716BC147715E716F
16 changed files with 129 additions and 13 deletions

View file

@ -6,3 +6,13 @@ func _ready():
var parent = get_parent()
if parent is WORLD:
parent.currentLevel = self
func save():
var data = {
"filename": get_filename(),
"parent": get_parent().get_path(),
"position_x": position.x,
"position_y": position.y
}
return data