Engine
0.0.6
Game engine in lua
Loading...
Searching...
No Matches
loop.lua
Go to the documentation of this file.
1
local function
loop
(
std
,
game
,
application
, dt)
2
game
.dt = dt * 1000
3
game
.milis = love.timer.getTime() * 1000
4
game
.fps = love.timer.getFPS()
5
application
.callbacks.loop(
std
,
game
)
6
end
7
8
local function
install
(
std
,
game
,
application
)
9
application
.callbacks.loop =
application
.callbacks.loop or function () end
10
11
return {
12
event
={
loop
=
loop
}
13
}
14
end
15
16
local P = {
17
install
=
install
18
}
19
20
return
P
application
local application
Definition
main.lua:16
game
local game
Definition
main.lua:17
std
local std
Definition
main.lua:18
install
local function install(std, game, application)
loop
local function loop(std, game, application, dt)
src
engine
core
love
loop.lua
Generated by
1.12.0