Update Overview
parent
bf18f79e77
commit
aed2f0c80e
1 changed files with 3 additions and 2 deletions
|
@ -5,9 +5,9 @@ Singe uses an event-driven programming model. What this means is that Singe con
|
||||||
The most basic Singe script that provides all the existing "callbacks" used by Singe looks like this:
|
The most basic Singe script that provides all the existing "callbacks" used by Singe looks like this:
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
-- Singe Game Skeleton
|
-- Singe Game Skeleton.
|
||||||
|
|
||||||
-- Load the Singe Framework
|
-- Load the Singe Framework.
|
||||||
dofile("Singe/Framework.singe")
|
dofile("Singe/Framework.singe")
|
||||||
|
|
||||||
-- Declare any global variables you need here.
|
-- Declare any global variables you need here.
|
||||||
|
@ -31,6 +31,7 @@ function onMouseMoved(x, y, xr, yr, which)
|
||||||
end
|
end
|
||||||
|
|
||||||
function onOverlayUpdate()
|
function onOverlayUpdate()
|
||||||
|
return(OVERLAY_UPDATED) -- Or OVERLAY_NOT_UPDATED if no drawing was done.
|
||||||
end
|
end
|
||||||
|
|
||||||
function onShutdown()
|
function onShutdown()
|
||||||
|
|
Loading…
Add table
Reference in a new issue