diff --git a/data/gfx/tiles.gif b/data/gfx/tiles.gif index ce35733..c74965c 100644 Binary files a/data/gfx/tiles.gif and b/data/gfx/tiles.gif differ diff --git a/data/maps/rooms_background.gif b/data/maps/rooms_background.gif index eb01468..bc8a8ca 100644 Binary files a/data/maps/rooms_background.gif and b/data/maps/rooms_background.gif differ diff --git a/data/maps/rooms_foreground.gif b/data/maps/rooms_foreground.gif index ba40585..7317f9b 100644 Binary files a/data/maps/rooms_foreground.gif and b/data/maps/rooms_foreground.gif differ diff --git a/data/stages/editor.lua b/data/stages/editor.lua index 806e1ab..105c75c 100644 --- a/data/stages/editor.lua +++ b/data/stages/editor.lua @@ -385,11 +385,20 @@ editor = { surf.target(surf.SCREEN) draw.surf(0,0,160,104,0,0) - local x = (rooms.pos.x//20)*20 - local y = (rooms.pos.y//13)*13 + local x = (rooms.pos.x)--//20)*20 + local y = (rooms.pos.y)--//13)*13 draw.rect(x, y, 20, 13, 68) - if not key.down(key.GRAVE) then + local mx,my = mouse.pos() + mx,my = (mx//20)*20, (my//13)*13 + draw.rect(mx, my, 20, 13, 23) + + if mouse.press(mouse.LEFT) then + rooms.pos.x, rooms.pos.y = mx, my + editor.mapviewer.close() + end + + if key.press(key.ESCAPE) or key.press(key.GRAVE) then editor.mapviewer.close() end end