Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Save/restore progress

  • Loading branch information...
commit 0d6ce03725d2df0230b29758562baca417a2b2a1 1 parent da9aca2
@whitingjp authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 Galaxy.as
View
7 Galaxy.as
@@ -47,7 +47,10 @@ package
public function init():void
{
- dungeon_completion = new Object();
+ if(Main.so.data.dungeon_completion)
+ dungeon_completion = Main.so.data.dungeon_completion;
+ else
+ dungeon_completion = new Object();
enter_dungeon("master");
transition = 0;
}
@@ -105,6 +108,8 @@ package
{
trace("returning to overworld: ");
dungeon_completion[current_dungeon_key] = true;
+ Main.so.data.dungeon_completion = dungeon_completion;
+ Main.so.flush();
enter_dungeon("master");
play("goalorb");
}
Please sign in to comment.
Something went wrong with that request. Please try again.