This commit is contained in:
parent
91f3aea0d9
commit
cd133c170f
2
main.lua
2
main.lua
|
@ -86,7 +86,7 @@ function love.draw()
|
||||||
|
|
||||||
local mx,my = coord(love.mouse.getX()-16), coord(love.mouse.getY()-line.y)
|
local mx,my = coord(love.mouse.getX()-16), coord(love.mouse.getY()-line.y)
|
||||||
|
|
||||||
for i,shape in ipairs(line.shapes) do
|
for _,shape in ipairs(line.shapes) do
|
||||||
assert(shape)
|
assert(shape)
|
||||||
if on_shape(mx,my, line, shape) then
|
if on_shape(mx,my, line, shape) then
|
||||||
love.graphics.setColor(1,0,0)
|
love.graphics.setColor(1,0,0)
|
||||||
|
|
Loading…
Reference in New Issue