16 lines
302 B
Lua
16 lines
302 B
Lua
local window = require('window')
|
|
-- prototype of immovable objects
|
|
|
|
local m = {}
|
|
m.__index = m
|
|
|
|
function m:new()
|
|
return setmetatable({}, self)
|
|
end
|
|
|
|
m.mousepressed = window.mousepressed(function (self, x, y, button)
|
|
end)
|
|
|
|
function m:draw()
|
|
love.graphics.draw(self.image, self.x, self.y)
|
|
end
|