Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --main.lua
- WINDOWN_WIDTH = 1280
- WINDOW_HEIGHT = 720
- VIRTUAL_WIDTH = 432
- VIRTUAL_HEIGHT = 243
- Class = require 'class'
- push = require 'push'
- require 'Util'
- require 'Map'
- function love.load()
- map = Map()
- love.graphics.setDefaultFilter('nearest', 'nearest') -- it pixelates everything
- push:setupScreen(VIRTUAL_WIDTH, VIRTUAL_HEIGHT, WINDOWN_WIDTH, WINDOW_HEIGHT,
- {
- fullscreen = false,
- resizable = false,
- vsync = true
- })
- end
- function love.update(dt)
- end
- function love.draw()
- push:apply('start')
- love.graphics.clear(108/255, 140/255, 255/255, 255/255)
- --love.graphics.print("hello, World!", VIRTUAL_WIDTH/2-50,VIRTUAL_HEIGHT/2, center)
- map:render()
- push:apply('end')
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement