-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.lua
27 lines (23 loc) · 864 Bytes
/
main.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
-- make this a path to the OS' tmp and extract the dependency to it from the fused fs.
local lib_path = "resources/natives/"
local extension = (jit.os == "Windows" and "dll" or jit.os == "Linux" and "so" or jit.os == "OSX" and "dylib")
package.cpath = string.format("%s;%s/?.%s", package.cpath, lib_path, extension)
package.path = package.path .. ";src/?.lua"
local love = love or {}
local zmmsv = require("zmmsv")
-- Load some default values for our rectangle.
love.load = function()
zmmsv.init()
x, y, w, h = 0, 0, 10, 10
end
-- Increase the size of the rectangle every frame.
love.update = function(dt)
w = w + 1
h = h + 1
end
-- Draw a coloured rectangle.
love.draw = function()
-- In versions prior to 11.0, color component values are (0, 102, 102)
love.graphics.setColor(0, 0.4, 0.4)
love.graphics.rectangle("fill", x, y, w, h)
end