Engine 0.0.6
Game engine in lua
Loading...
Searching...
No Matches
loop.lua
Go to the documentation of this file.
1local 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)
6end
7
8local function install(std, game, application)
9 application.callbacks.loop = application.callbacks.loop or function () end
10
11 return {
12 event={loop=loop}
13 }
14end
15
16local P = {
18}
19
20return P
local application
Definition main.lua:16
local game
Definition main.lua:17
local std
Definition main.lua:18
local function install(std, game, application)
local function loop(std, game, application, dt)