Skip to content

Instantly share code, notes, and snippets.

View Maxs1789's full-sized avatar

Maxs Maxs1789

  • Brussels, Belgium
View GitHub Profile
@Maxs1789
Maxs1789 / console.lua
Created August 14, 2015 20:33
Lua console coded in Lua.
-- 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("> ")
@Maxs1789
Maxs1789 / debug
Last active September 20, 2017 02:09
A debug file script for games made with the Solarus engine and that uses a debug console system.
-- Maxs1789 solarus debug script v0.1
local console = ...
local environment = {}
-- Returns the current game.
local function get_game()
return sol.main.game
end