This commit is contained in:
parent
662d1cf202
commit
31816db0cc
51
chesstv.tlv
51
chesstv.tlv
|
@ -1,6 +1,7 @@
|
||||||
teliva_program = {
|
teliva_program = {
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
window = [==[
|
window = [==[
|
||||||
window = curses.stdscr()
|
window = curses.stdscr()
|
||||||
-- animation-based app
|
-- animation-based app
|
||||||
|
@ -8,12 +9,14 @@ window:nodelay(true)
|
||||||
lines, cols = window:getmaxyx()]==],
|
lines, cols = window:getmaxyx()]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
current_game = [==[
|
current_game = [==[
|
||||||
current_game = {}]==],
|
current_game = {}]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
piece_glyph = [==[
|
piece_glyph = [==[
|
||||||
piece_glyph = {
|
piece_glyph = {
|
||||||
-- for legibility, white pieces also use unicode glyphs for black pieces
|
-- for legibility, white pieces also use unicode glyphs for black pieces
|
||||||
|
@ -33,7 +36,8 @@ piece_glyph = {
|
||||||
}]==],
|
}]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
top_player = [==[
|
top_player = [==[
|
||||||
function top_player(current_game)
|
function top_player(current_game)
|
||||||
if current_game.players[1].color == "black" then
|
if current_game.players[1].color == "black" then
|
||||||
|
@ -43,7 +47,8 @@ function top_player(current_game)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
bottom_player = [==[
|
bottom_player = [==[
|
||||||
function bottom_player(current_game)
|
function bottom_player(current_game)
|
||||||
if current_game.players[1].color == "white" then
|
if current_game.players[1].color == "white" then
|
||||||
|
@ -53,7 +58,8 @@ function bottom_player(current_game)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
render_player = [==[
|
render_player = [==[
|
||||||
function render_player(y, x, player)
|
function render_player(y, x, player)
|
||||||
curses.mvaddstr(y, x, player.user.name)
|
curses.mvaddstr(y, x, player.user.name)
|
||||||
|
@ -62,7 +68,8 @@ function render_player(y, x, player)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
render_square = [==[
|
render_square = [==[
|
||||||
function render_square(current_game, rank, file, highlighted_squares)
|
function render_square(current_game, rank, file, highlighted_squares)
|
||||||
-- decide whether to highlight
|
-- decide whether to highlight
|
||||||
|
@ -85,7 +92,8 @@ function render_square(current_game, rank, file, highlighted_squares)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
render_fen_rank = [==[
|
render_fen_rank = [==[
|
||||||
function render_fen_rank(rank, fen_rank, highlighted_squares)
|
function render_fen_rank(rank, fen_rank, highlighted_squares)
|
||||||
local file = 1
|
local file = 1
|
||||||
|
@ -124,7 +132,8 @@ function render_fen_rank(rank, fen_rank, highlighted_squares)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
render_time = [==[
|
render_time = [==[
|
||||||
function render_time(y, x, seconds)
|
function render_time(y, x, seconds)
|
||||||
if seconds == nil then return end
|
if seconds == nil then return end
|
||||||
|
@ -133,7 +142,8 @@ function render_time(y, x, seconds)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
render_board = [==[
|
render_board = [==[
|
||||||
function render_board(current_game)
|
function render_board(current_game)
|
||||||
--? curses.mvaddstr(1, 50, dump(current_game.fen))
|
--? curses.mvaddstr(1, 50, dump(current_game.fen))
|
||||||
|
@ -151,7 +161,8 @@ function render_board(current_game)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
parse_lm = [==[
|
parse_lm = [==[
|
||||||
function parse_lm(move)
|
function parse_lm(move)
|
||||||
--? curses.mvaddstr(4, 50, move)
|
--? curses.mvaddstr(4, 50, move)
|
||||||
|
@ -164,7 +175,8 @@ function parse_lm(move)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
render = [==[
|
render = [==[
|
||||||
function render(chunk)
|
function render(chunk)
|
||||||
local o = json.decode(chunk)
|
local o = json.decode(chunk)
|
||||||
|
@ -187,7 +199,8 @@ function render(chunk)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
init_colors = [==[
|
init_colors = [==[
|
||||||
function init_colors()
|
function init_colors()
|
||||||
-- colors
|
-- colors
|
||||||
|
@ -209,7 +222,8 @@ function init_colors()
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
main = [==[
|
main = [==[
|
||||||
function main()
|
function main()
|
||||||
init_colors()
|
init_colors()
|
||||||
|
@ -228,7 +242,8 @@ function main()
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
utf8 = [==[
|
utf8 = [==[
|
||||||
-- https://stackoverflow.com/questions/7983574/how-to-write-a-unicode-symbol-in-lua
|
-- https://stackoverflow.com/questions/7983574/how-to-write-a-unicode-symbol-in-lua
|
||||||
function utf8(decimal)
|
function utf8(decimal)
|
||||||
|
@ -250,7 +265,8 @@ function utf8(decimal)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
split = [==[
|
split = [==[
|
||||||
function split(s, pat)
|
function split(s, pat)
|
||||||
result = {}
|
result = {}
|
||||||
|
@ -261,7 +277,8 @@ function split(s, pat)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
dump = [==[
|
dump = [==[
|
||||||
-- https://stackoverflow.com/questions/9168058/how-to-dump-a-table-to-console
|
-- https://stackoverflow.com/questions/9168058/how-to-dump-a-table-to-console
|
||||||
function dump(o)
|
function dump(o)
|
||||||
|
|
18
counter.tlv
18
counter.tlv
|
@ -1,16 +1,19 @@
|
||||||
teliva_program = {
|
teliva_program = {
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
window = [==[
|
window = [==[
|
||||||
window = curses.stdscr()]==],
|
window = curses.stdscr()]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
n = [==[
|
n = [==[
|
||||||
n = 0]==],
|
n = 0]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
render = [==[
|
render = [==[
|
||||||
function render(window)
|
function render(window)
|
||||||
window:clear()
|
window:clear()
|
||||||
|
@ -24,12 +27,14 @@ function render(window)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
menu = [==[
|
menu = [==[
|
||||||
menu = {Enter="increment"}]==],
|
menu = {Enter="increment"}]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
update = [==[
|
update = [==[
|
||||||
function update(window)
|
function update(window)
|
||||||
local key = curses.getch()
|
local key = curses.getch()
|
||||||
|
@ -39,7 +44,8 @@ function update(window)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
main = [==[
|
main = [==[
|
||||||
function main()
|
function main()
|
||||||
for i=1,7 do
|
for i=1,7 do
|
||||||
|
|
36
hanoi.tlv
36
hanoi.tlv
|
@ -1,6 +1,7 @@
|
||||||
teliva_program = {
|
teliva_program = {
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
render = [==[
|
render = [==[
|
||||||
function render(window)
|
function render(window)
|
||||||
window:clear()
|
window:clear()
|
||||||
|
@ -14,7 +15,8 @@ function render(window)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
lines = [==[
|
lines = [==[
|
||||||
function lines(window)
|
function lines(window)
|
||||||
local lines, cols = window:getmaxyx()
|
local lines, cols = window:getmaxyx()
|
||||||
|
@ -22,19 +24,22 @@ function lines(window)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
pop = [==[
|
pop = [==[
|
||||||
function pop(array)
|
function pop(array)
|
||||||
return table.remove(array)
|
return table.remove(array)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
window = [==[
|
window = [==[
|
||||||
window = curses.stdscr()]==],
|
window = curses.stdscr()]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
render_tower = [==[
|
render_tower = [==[
|
||||||
function render_tower(window, line, col, tower_index, tower)
|
function render_tower(window, line, col, tower_index, tower)
|
||||||
window:attron(curses.A_BOLD)
|
window:attron(curses.A_BOLD)
|
||||||
|
@ -56,12 +61,14 @@ function render_tower(window, line, col, tower_index, tower)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
tower = [==[
|
tower = [==[
|
||||||
tower = {{6, 5, 4, 3, 2}, {}, {}}]==],
|
tower = {{6, 5, 4, 3, 2}, {}, {}}]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
render_disk = [==[
|
render_disk = [==[
|
||||||
function render_disk(window, line, col, size)
|
function render_disk(window, line, col, size)
|
||||||
col = col-size+1
|
col = col-size+1
|
||||||
|
@ -74,7 +81,8 @@ function render_disk(window, line, col, size)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
main = [==[
|
main = [==[
|
||||||
function main()
|
function main()
|
||||||
for i=1,7 do
|
for i=1,7 do
|
||||||
|
@ -89,7 +97,8 @@ end
|
||||||
]==],
|
]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
len = [==[
|
len = [==[
|
||||||
function len(array)
|
function len(array)
|
||||||
local result = 0
|
local result = 0
|
||||||
|
@ -100,7 +109,8 @@ function len(array)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
update = [==[
|
update = [==[
|
||||||
function update(window)
|
function update(window)
|
||||||
window:mvaddstr(lines(window)-2, 5, "tower to remove top disk from? ")
|
window:mvaddstr(lines(window)-2, 5, "tower to remove top disk from? ")
|
||||||
|
@ -111,7 +121,8 @@ function update(window)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
make_move = [==[
|
make_move = [==[
|
||||||
function make_move(from, to)
|
function make_move(from, to)
|
||||||
local disk = pop(tower[from])
|
local disk = pop(tower[from])
|
||||||
|
@ -119,7 +130,8 @@ function make_move(from, to)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
cols = [==[
|
cols = [==[
|
||||||
function cols(window)
|
function cols(window)
|
||||||
local lines, cols = window:getmaxyx()
|
local lines, cols = window:getmaxyx()
|
||||||
|
|
48
life.tlv
48
life.tlv
|
@ -1,6 +1,7 @@
|
||||||
teliva_program = {
|
teliva_program = {
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
grid = [==[
|
grid = [==[
|
||||||
-- main data structure
|
-- main data structure
|
||||||
grid = {}
|
grid = {}
|
||||||
|
@ -13,7 +14,8 @@ end
|
||||||
]==],
|
]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
window = [==[
|
window = [==[
|
||||||
window = curses.stdscr()
|
window = curses.stdscr()
|
||||||
-- animation-based app
|
-- animation-based app
|
||||||
|
@ -21,7 +23,8 @@ window:nodelay(true)
|
||||||
lines, cols = window:getmaxyx()]==],
|
lines, cols = window:getmaxyx()]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
grid_char = [==[
|
grid_char = [==[
|
||||||
-- grab a 4x2 chunk of grid
|
-- grab a 4x2 chunk of grid
|
||||||
function grid_char(line, col)
|
function grid_char(line, col)
|
||||||
|
@ -33,7 +36,8 @@ function grid_char(line, col)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
print_grid_char = [==[
|
print_grid_char = [==[
|
||||||
function print_grid_char(window, x)
|
function print_grid_char(window, x)
|
||||||
result = {}
|
result = {}
|
||||||
|
@ -46,7 +50,8 @@ function print_grid_char(window, x)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
glyph = [==[
|
glyph = [==[
|
||||||
-- look up the braille pattern corresponding to a 4x2 chunk of grid
|
-- look up the braille pattern corresponding to a 4x2 chunk of grid
|
||||||
-- https://en.wikipedia.org/wiki/Braille_Patterns
|
-- https://en.wikipedia.org/wiki/Braille_Patterns
|
||||||
|
@ -72,7 +77,8 @@ glyph = {
|
||||||
}]==],
|
}]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
utf8 = [==[
|
utf8 = [==[
|
||||||
-- https://stackoverflow.com/questions/7983574/how-to-write-a-unicode-symbol-in-lua
|
-- https://stackoverflow.com/questions/7983574/how-to-write-a-unicode-symbol-in-lua
|
||||||
function utf8(decimal)
|
function utf8(decimal)
|
||||||
|
@ -94,7 +100,8 @@ function utf8(decimal)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
grid_char_to_glyph_index = [==[
|
grid_char_to_glyph_index = [==[
|
||||||
-- convert a chunk of grid into a number
|
-- convert a chunk of grid into a number
|
||||||
function grid_char_to_glyph_index(g)
|
function grid_char_to_glyph_index(g)
|
||||||
|
@ -104,7 +111,8 @@ function grid_char_to_glyph_index(g)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
render = [==[
|
render = [==[
|
||||||
function render(window)
|
function render(window)
|
||||||
window:clear()
|
window:clear()
|
||||||
|
@ -118,7 +126,8 @@ end
|
||||||
]==],
|
]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
state = [==[
|
state = [==[
|
||||||
function state(line, col)
|
function state(line, col)
|
||||||
if line < 1 or line > table.getn(grid) or col < 1 or col > table.getn(grid[1]) then
|
if line < 1 or line > table.getn(grid) or col < 1 or col > table.getn(grid[1]) then
|
||||||
|
@ -128,7 +137,8 @@ function state(line, col)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
num_live_neighbors = [==[
|
num_live_neighbors = [==[
|
||||||
function num_live_neighbors(line, col)
|
function num_live_neighbors(line, col)
|
||||||
return state(line-1, col-1) + state(line-1, col) + state(line-1, col+1) +
|
return state(line-1, col-1) + state(line-1, col) + state(line-1, col+1) +
|
||||||
|
@ -137,7 +147,8 @@ function num_live_neighbors(line, col)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
step = [==[
|
step = [==[
|
||||||
function step()
|
function step()
|
||||||
local new_grid = {}
|
local new_grid = {}
|
||||||
|
@ -158,7 +169,8 @@ function step()
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
sleep = [==[
|
sleep = [==[
|
||||||
function sleep(a)
|
function sleep(a)
|
||||||
local sec = tonumber(os.clock() + a);
|
local sec = tonumber(os.clock() + a);
|
||||||
|
@ -167,7 +179,8 @@ function sleep(a)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
file_exists = [==[
|
file_exists = [==[
|
||||||
function file_exists(filename)
|
function file_exists(filename)
|
||||||
local f = io.open(filename, "r")
|
local f = io.open(filename, "r")
|
||||||
|
@ -180,7 +193,8 @@ function file_exists(filename)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
load_file = [==[
|
load_file = [==[
|
||||||
function load_file(window, filename)
|
function load_file(window, filename)
|
||||||
io.input(filename)
|
io.input(filename)
|
||||||
|
@ -203,7 +217,8 @@ function load_file(window, filename)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
update = [==[
|
update = [==[
|
||||||
menu = {arrow="pan"}
|
menu = {arrow="pan"}
|
||||||
|
|
||||||
|
@ -244,7 +259,8 @@ function update(window, c)
|
||||||
end]==],
|
end]==],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__teliva_timestamp = [==[original]==],
|
__teliva_timestamp = [==[
|
||||||
|
original]==],
|
||||||
main = [==[
|
main = [==[
|
||||||
function main()
|
function main()
|
||||||
for i=1,7 do
|
for i=1,7 do
|
||||||
|
|
Loading…
Reference in New Issue