Added debug info

This commit is contained in:
theo@manjaro 2022-03-04 15:19:16 +01:00
parent 49e17a199e
commit e20b62018a
1 changed files with 2 additions and 0 deletions

View File

@ -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)