From ca1c5fda8c35443d39337118021e98a694cf6ee2 Mon Sep 17 00:00:00 2001 From: KikooDX Date: Tue, 25 Feb 2020 11:10:01 +0100 Subject: [PATCH] Improved GUI and command flow --- draw.lua | 2 +- keyboard.lua | 1 + save.lua | 2 -- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/draw.lua b/draw.lua index 96a7bab..7f08316 100644 --- a/draw.lua +++ b/draw.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 diff --git a/keyboard.lua b/keyboard.lua index 9a03f35..6ce4052 100644 --- a/keyboard.lua +++ b/keyboard.lua @@ -49,6 +49,7 @@ function update_keyboard() end --exit if love.keyboard.isScancodeDown("escape") then + save() love.event.quit() end --saving/export diff --git a/save.lua b/save.lua index 9cfb5a0..8110e51 100644 --- a/save.lua +++ b/save.lua @@ -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