Initial commit
This commit is contained in:
commit
ee4762673a
14 changed files with 410 additions and 0 deletions
30
game/main.lua
Normal file
30
game/main.lua
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue