#63075
Warnest
Participant

— mouse update for easier interactivity and remove spawn line from the main file
— remove those line because now mouse control spawn and even de-spawn
— entity.spawn (200,200,16,16,0,0,0,500,2500,1,1,1,1,1,5,5,6,8,”direction”,1)
— entity.spawn (100,100,16,16,0,0,0,500,2500,1,1,1,1,1,5,5,6,8,”direction”,1)

function love.mousepressed(x, y, button, istouch)
if button == 1 then
entity.spawn (x,y,16,16,0,0,0,500,2500,1,1,1,1,1,5,5,6,8, »direction »,1)
end
if button == 2 then

while #entity > 0 do
table.remove(entity, #entity)
end

end
end