17 lines
340 B
Lua
17 lines
340 B
Lua
-- Useful constants
|
|
OCT_NEEDS_NETWORKING = 1;
|
|
OCT_NOT_NEEDS_NETWORKING = 0;
|
|
OCT_NEEDS_TERMBOX = 1;
|
|
OCT_NOT_NEEDS_TERMBOX = 0;
|
|
|
|
-- Load a sprite stored in a .txt file
|
|
function load_termbox_sprite(file_name)
|
|
file = io.open(file_name, "r");
|
|
io.input(file);
|
|
local contents = io.read("*a");
|
|
io.close(file);
|
|
return contents;
|
|
end
|
|
|
|
|