open-card-table/oct_utils.lua

15 lines
319 B
Lua
Raw Normal View History

2023-01-06 19:12:24 -05:00
-- 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
OCT_NEEDS_NETWORKING = 1;
OCT_NOT_NEEDS_NETWORKING = 0;
OCT_NEEDS_TERMBOX = 1;
OCT_NOT_NEEDS_TERMBOX = 0;