open-card-table/oct_utils.lua

9 lines
211 B
Lua

-- 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