diff --git a/game/assets/level1.gobz b/game/assets/level1.gobz index edcf84a..9f680a6 100644 Binary files a/game/assets/level1.gobz and b/game/assets/level1.gobz differ diff --git a/main.go b/main.go index da779b0..31fc00e 100644 --- a/main.go +++ b/main.go @@ -79,6 +79,15 @@ func repl(g *engine.Game) { if err := s.Save(); err != nil { log.Printf("Couldn't save %q: %v", id, err) } + case "reload": + g.Disable() + g.Hide() + if err := g.Load(game.Assets); err != nil { + log.Printf("Couldn't load: %v", err) + } + g.Prepare() + g.Enable() + g.Show() } } if err := sc.Err(); err != nil {