Files
qbert.love2d/qbert.lua

19 lines
368 B
Lua

mkHopper = require "hopper"
local height = 10
local width = height
local draw = function(x, y, se, sw)
love.graphics.setColor(128,128,0);
love.graphics.circle("fill", x, y, height)
end
local update = function(dt, se, sw, jumpTime, jumpFrame, jumpDir)
end
-- constructor
return function(arena)
local self = mkHopper(arena, draw, update)
return self
end