funk/src/main.lua

22 lines
562 B
Lua

_G.CONFIG = require("conf").properties
local log = require("log")
local pal = require("palette").getPalette("CADE-15")
function love.load()
require("cindy").applyPatch()
scr = love.graphics.newCanvas(256,244)
love.graphics.setCanvas(scr)
pal.setColor(10)
love.graphics.rectangle("fill",0,0,5,5)
love.graphics.setCanvas()
end
function love.update(dt)
if love.keyboard.isDown("escape") then love.event.quit() end
end
function love.draw()
love.graphics.setBackgroundColor(0,0,0)
love.graphics.setColor(255,255,255)
love.graphics.draw(scr,0,0,0,2,2)
end