SaveStation, save & load properly
This commit is contained in:
parent
d4acde846c
commit
847670821d
16 changed files with 129 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue