diff --git a/data/editor.lua b/data/editor.lua index 49a31e3..7f4da88 100644 --- a/data/editor.lua +++ b/data/editor.lua @@ -89,6 +89,8 @@ editor = { elseif key.press(key.P) then sprites.hero.pos.x = tx*8-4 sprites.hero.pos.y = ty*8-9 + elseif key.press(key.F9) then + editor.play() end end, diff --git a/data/game.lua b/data/game.lua index a12574d..0b6b64d 100644 --- a/data/game.lua +++ b/data/game.lua @@ -20,7 +20,7 @@ game = { sprites.update() sprites.update_hero() - if key.down(key.ESCAPE) then + if key.press(key.ESCAPE) or key.press(key.F9) then editor.enable() end end, diff --git a/data/rooms_foreground.bin b/data/rooms_foreground.bin index 398477f..64de785 100644 Binary files a/data/rooms_foreground.bin and b/data/rooms_foreground.bin differ diff --git a/data/tiles.gif b/data/tiles.gif index 7e21f4b..b73a955 100644 Binary files a/data/tiles.gif and b/data/tiles.gif differ