This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Print a prompt an read an input line | |
local function getline(line) | |
if line ~= "" then | |
io.write(">> ") | |
return line .. "\n" .. io.read() | |
end | |
io.write("> ") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Maxs1789 solarus debug script v0.1 | |
local console = ... | |
local environment = {} | |
-- Returns the current game. | |
local function get_game() | |
return sol.main.game | |
end |