Improved GUI and command flow

master
KikooDX 3 years ago
parent 2436fa52a5
commit ca1c5fda8c
  1. 2
      draw.lua
  2. 1
      keyboard.lua
  3. 2
      save.lua

@ -28,5 +28,5 @@ function love.draw()
--gui
love.graphics.pop()
love.graphics.setColor(0.8, 0.8, 0.8, 1)
love.graphics.print(tiles_char[selected_tile], 2, 0)
love.graphics.print(screen_id, 2, 0)
end

@ -49,6 +49,7 @@ function update_keyboard()
end
--exit
if love.keyboard.isScancodeDown("escape") then
save()
love.event.quit()
end
--saving/export

@ -3,7 +3,6 @@ function save()
file = io.open("screens/"..screen_id..".scr", "w")
file:write(selected_screen)
file:close()
print("save "..screen_id)
end
end
@ -15,5 +14,4 @@ function load()
else
selected_screen = default_screen
end
print("load "..screen_id)
end

Loading…
Cancel
Save