Advertisement
joseleeph

Untitled

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