Advertisement
joseleeph

Untitled

Jan 28th, 2021
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. --main.lua
  2. WINDOWN_WIDTH = 1280
  3. WINDOW_HEIGHT = 720
  4.  
  5. VIRTUAL_WIDTH = 432
  6. VIRTUAL_HEIGHT = 243
  7.  
  8. Class = require 'class'
  9. push = require 'push'
  10.  
  11. require 'Util'
  12.  
  13. require 'Map'
  14.  
  15. function love.load()
  16. map = Map()
  17.  
  18. love.graphics.setDefaultFilter('nearest', 'nearest') -- it pixelates everything
  19. push:setupScreen(VIRTUAL_WIDTH, VIRTUAL_HEIGHT, WINDOWN_WIDTH, WINDOW_HEIGHT,
  20. {
  21. fullscreen = false,
  22. resizable = false,
  23. vsync = true
  24. })
  25. end
  26.  
  27. function love.update(dt)
  28. end
  29.  
  30. function love.draw()
  31. push:apply('start')
  32. love.graphics.clear(108/255, 140/255, 255/255, 255/255)
  33. --love.graphics.print("hello, World!", VIRTUAL_WIDTH/2-50,VIRTUAL_HEIGHT/2, center)
  34.  
  35. map:render()
  36. push:apply('end')
  37. end
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement