From e20b62018a1a117cf0a8133b5c6f0e19642ccb34 Mon Sep 17 00:00:00 2001 From: "theo@manjaro" Date: Fri, 4 Mar 2022 15:19:16 +0100 Subject: [PATCH] Added debug info --- game.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/game.lua b/game.lua index 66d356f..e3181e5 100644 --- a/game.lua +++ b/game.lua @@ -14,6 +14,7 @@ function Game:reinit() self.rect = require "lib/rect" self.maxobjects = 0 self.camerax = 0 + self.debug = true self.cameray = 0 self.floatcamerax = 0 self.floatcameray = 0 @@ -217,6 +218,7 @@ function Game:draw(screen) end end end + if self.debug then lg.print("OSTYPE: "..self.OSTYPE.."; ".."OS: "..self.OS.."; ".."FPS: "..tostring(love.timer.getFPS( )), 10, 10) end end function Game:MouseCallback(x,y,presses)