GlyEngine
0.4
Create games and apps with lua
Toggle main menu visibility
Loading...
Searching...
No Matches
Lua
Languages
Create games and apps with Lua.
Official site
https://www.lua.org
Online Lua REPL
https://lua.ceifa.dev
WIKI Lua 5.4 in english
https://www.lua.org/manual
WIKI Lua 5.1 in portuguese
https://www.lua.org/manual/5.1/pt
(currently most
ginga
devices use lua 5.1)
Template
modern
local Game = {
title
=
'Your Awesome Game'
,
author =
'IntellectualAuthor'
,
description =
'The best game in the world made in GlyEngine'
,
version =
'1.0.0'
}
function
Game.init(std, data)
end
function
Game.loop(std, data)
end
function
Game.draw(std, data)
end
function
Game.exit(std, data)
end
return
Game
title
local function title(window_name)
@decorator
classic
local
function
init(std, data)
end
local
function
loop(std, data)
end
local
function
draw
(std, data)
end
local
function
exit
(std, data)
end
local P = {
meta={
title
=
'Your Awesome Game'
,
author =
'IntellectualAuthor'
,
description =
'The best game in the world made in GlyEngine'
,
version =
'1.0.0'
},
callbacks
={
init=init,
loop=loop,
draw
=
draw
,
exit
=
exit
}
}
return
P;
exit
local function exit()
@decorator
draw
local function draw(src, pos_x, pos_y)
callbacks
local function callbacks(handler)
Generated by
1.18.0