summaryrefslogtreecommitdiff
path: root/examples/platformer
diff options
context:
space:
mode:
Diffstat (limited to 'examples/platformer')
-rw-r--r--examples/platformer/main.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/platformer/main.lua b/examples/platformer/main.lua
index d1160e1..2c954be 100644
--- a/examples/platformer/main.lua
+++ b/examples/platformer/main.lua
@@ -80,6 +80,12 @@ local function createMap()
tilemap.tiles[1][8] = 6
end
+function log( logLevel, message )
+ if logLevel == LOG_WARNING then
+ error( "Terminated because of warning" )
+ end
+end
+
function init()
local monitorPos = Vec2:new( RL_GetMonitorPosition( monitor ) )
local monitorSize = Vec2:new( RL_GetMonitorSize( monitor ) )