Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local game = require("game")
- -- WIDTH, HEIGHT, FULLSCREEN = 1920, 1080, true
- WIDTH, HEIGHT, FULLSCREEN = 1600, 900, false
- function love.load()
- love.window.setMode(WIDTH, HEIGHT, {fullscreen=FULLSCREEN})
- scFa = love.graphics.getWidth()/1920
- game.load()
- end
- function love.update(dt)
- game.update(dt)
- end
- function love.draw()
- love.graphics.scale(scFa, scFa)
- game.draw()
- end
- function love.mousepressed(x, y, button)
- x = x/scFa
- y = y/scFa
- game.mousepressed(x, y, button)
- end
- function love.mousemoved(x, y, dx, dy)
- x = x/scFa
- y = y/scFa
- game.mousemoved(x, y, dx, dy) end
- end
- function love.mousereleased(x, y, button)
- x = x/scFa
- y = y/scFa
- game.mousereleased(x, y, button)
- end
- function love.wheelmoved(dx, dy)
- game.wheelmoved(dx, dy)
- end
- function love.keypressed(key, scancode)
- game.keypressed(key, scancode)
- end
- function love.keyreleased(key, scancode)
- game.keyreleased(key, scancode)
- end
- function getMouseX() return love.mouse.getX()/scFa end
- function getMouseY() return love.mouse.getY()/scFa end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement