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'
- Class = require 'Util' -- we want to use Util in map so it must be called before map
- Class = require 'Map'
- function love.load()
- map = Map()
- love.graphics.setDefaultFilter('nearest', 'nearest') -- it pixelates
- push:setupScreen(VIRTUAL_WIDTH, VIRTUAL_HEIGHT, WINDOWN_WIDTH, WINDOW_HEIGHT,
- {
- fullscreen = false,
- resizable = false,
- vsync = true
- })
- end
- function love.update(dt)
- --we need to chop up the individual ties. we will use the quad funtion
- -- it makes sense to put this in a utility class, with the file Util.lua
- end
- function love.draw() -- push apply start and end around the things to be drawn
- push:apply('start')
- love.graphics.clear(108/255, 140/255, 255/255, 255/255) -- clear screen with mario blue
- 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