1
0
Fork 0
mirror of https://github.com/Reuh/ubiquitousse.git synced 2025-10-27 17:19:31 +00:00

The Ubiquitousse Update

This commit is contained in:
Reuh 2016-12-23 17:22:38 +01:00
parent 8ccf3534bc
commit 07cc7216a1
9 changed files with 96 additions and 96 deletions

View file

@ -1,14 +1,14 @@
-- abstract.event
local input = require((...):match("^(.-abstract)%.")..".input")
local time = require((...):match("^(.-abstract)%.")..".time")
local scene = require((...):match("^(.-abstract)%.")..".scene")
-- ubiquitousse.event
local input = require((...):match("^(.-ubiquitousse)%.")..".input")
local time = require((...):match("^(.-ubiquitousse)%.")..".time")
local scene = require((...):match("^(.-ubiquitousse)%.")..".scene")
--- The events: callback functions that will be called when something interesting occurs.
-- Theses are expected to be redefined in the game.
-- For backend writers: if they already contain code, then this code has to be called on each call.
-- @usage -- in the game's code
-- abstract.event.draw = function()
-- abstract.draw.text(5, 5, "Hello world")
-- ubiquitousse.event.draw = function()
-- ubiquitousse.draw.text(5, 5, "Hello world")
-- end
return {
--- Called each time the game loop is ran. Don't draw here.
@ -19,7 +19,7 @@ return {
time.update(dt)
scene.update(dt)
end,
--- Called each time the game expect a new frame to be drawn.
-- The screen is expected to be cleared since last frame.
-- @impl backend