Advertisement
Guest User

Untitled

a guest
Mar 18th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.66 KB | None | 0 0
  1. require "hud/hud"
  2. require "debug/lovedebug"
  3. require "libs/camera"
  4.  
  5. function love.load()
  6.   Camera.load() -- Just like 'draw', we will manually call it from love.load
  7. end
  8.  
  9. function love.mousemoved(x, y, dx, dy)
  10.   Camera.mousemoved(x, y, dx, dy) -- Same for this
  11. end
  12.  
  13. function love.draw()
  14.     drawHud()
  15.     Camera.draw() -- And now this will work as well
  16. end
  17.  
  18. function love.update()
  19.     require("debug/lurker").update()
  20. end
  21.  
  22. function love.keypressed(key)
  23.     if key == "f12" then
  24.         love.window.setFullscreen(true, "desktop")
  25.     end
  26.     if key == "f11" then
  27.         love.window.setMode(1366, 728, {resizable=false, vsync=false, minwidth=400, minheight=300})
  28.     end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement