30 lines
591 B
Lua
30 lines
591 B
Lua
if love.system.getOS() ~= 'DOS' then
|
|
local lick = require "3rd.lick"
|
|
lick.updateAllFiles = true
|
|
end
|
|
|
|
local platform = require "platform.platform"
|
|
|
|
function love.load()
|
|
platform.init()
|
|
end
|
|
|
|
local function drawText(str, x, y)
|
|
local font = love.graphics.getFont()
|
|
love.graphics.print(str, x - font:getWidth(str) / 2, y - font:getHeight() / 2)
|
|
end
|
|
|
|
function love.draw()
|
|
platform.drawStart()
|
|
|
|
love.graphics.clear()
|
|
drawText('Hellorld!', 160, 100)
|
|
|
|
platform.drawEnd()
|
|
end
|
|
|
|
function love.keypressed(key)
|
|
if key == "escape" then
|
|
os.exit()
|
|
end
|
|
end
|