I created a table
Code: Select all
bulletsCollider = {}
Code: Select all
local num = #bulletsCollider
bulletsCollider[num+1] = HC:addCircle(playerX,playerY,bulletRadius)
Code: Select all
table.insert(bulletsCollider,HC:addCircle(playerX,playerY,bulletRadius))
-- also tried
table.insert(bulletsCollider,Collider:addCircle(playerX,playerY,bulletRadius))
Other relevant snippet of code
Code: Select all
HC = require 'hardoncollider'
function love.load() -- Initialized once
Collider = HC(100, on_collide) -- Hardon Collider init