Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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()
- math.randomseed(os.time())
- map = Map()
- love.graphics.setDefaultFilter('nearest', 'nearest')
- love.graphics.setFont(love.graphics.newFont('fonts/Stay and Shine.ttf',20))
- push:setupScreen(VIRTUAL_WIDTH, VIRTUAL_HEIGHT, WINDOWN_WIDTH, WINDOW_HEIGHT,
- {
- fullscreen = false,
- resizable = false,
- vsync = true
- })
- end
- function love.update(dt)
- map:update(dt)
- end
- function love.draw()
- love.graphics.clear(108/255, 140/255, 255/255, 255/255)
- push:apply('start')
- love.graphics.translate(math.floor(-map.camX + 0.5), math.floor(-map.camY + 0.5))
- love.graphics.print("hello, Mario!", VIRTUAL_WIDTH/2-50,VIRTUAL_HEIGHT/2, center)
- map:render()
- push:apply('end')
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement