Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "hud/hud"
- require "debug/lovedebug"
- require "libs/camera"
- function love.load()
- Camera.load() -- Just like 'draw', we will manually call it from love.load
- end
- function love.mousemoved(x, y, dx, dy)
- Camera.mousemoved(x, y, dx, dy) -- Same for this
- end
- function love.draw()
- drawHud()
- Camera.draw() -- And now this will work as well
- end
- function love.update()
- require("debug/lurker").update()
- end
- function love.keypressed(key)
- if key == "f12" then
- love.window.setFullscreen(true, "desktop")
- end
- if key == "f11" then
- love.window.setMode(1366, 728, {resizable=false, vsync=false, minwidth=400, minheight=300})
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement