16 lines
322 B
Lua
16 lines
322 B
Lua
local Circle = Object:extend()
|
|
|
|
function Circle:new(x, y, radius, mode)
|
|
self.x = x or 400
|
|
self.y = y or 300
|
|
self.radius = radius or 50
|
|
self.mode = mode or "fill"
|
|
end
|
|
|
|
function Circle:update(dt) end
|
|
|
|
function Circle:draw()
|
|
love.graphics.circle(self.mode, self.x, self.y, self.radius)
|
|
end
|
|
|
|
return Circle
|