Engine
0.0.6
Game engine in lua
Loading...
Searching...
No Matches
game.lua
Go to the documentation of this file.
1
local function
init
(
std
,
game
)
2
end
3
4
local function
loop
(
std
,
game
)
5
end
6
7
local function
draw
(
std
,
game
)
8
std
.
draw
.
clear
(
std
.
color
.
black
)
9
std
.
draw
.
color
(
std
.
color
.
white
)
10
std
.
draw
.
text
(8 , 8, 'Hello world!')
11
end
12
13
local function
exit
(
std
,
game
)
14
end
15
16
local P = {
17
meta
={
18
title=
'Hello world'
,
19
author=
'RodrigoDornelles'
,
20
description=
'say hello to the world!'
,
21
version
=
'1.0.0'
22
},
23
callbacks={
24
init
=
init
,
25
loop
=
loop
,
26
draw
=
draw
,
27
exit
=
exit
28
}
29
}
30
31
return
P;
version
local function version()
meta
local function meta()
white
local white
Definition
color.lua:6
black
local black
Definition
color.lua:28
draw
local function draw(std, game)
init
local function init(std, game)
exit
local function exit(std, game)
loop
local function loop(std, game)
game
local game
Definition
main.lua:17
std
local std
Definition
main.lua:18
clear
local function clear(c)
color
local function color(c)
text
local function text(x, y, text)
examples
helloworld
game.lua
Generated by
1.12.0