0 Members and 1 Guest are viewing this topic.
[brayden@archbook downloads]$ love supersonicball-0.9.1.loveError: main.lua:3: attempt to call a nil valuestack traceback: main.lua:3: in function 'load' [string "boot.lua"]:394: in function <[string "boot.lua"]:387> [C]: in function 'xpcall'
diff -r supersonicball-0.9.1/main.lua supersonicball-0.9.1_custom/main.lua33c33,53< ---> > function logistic(x)> return 1/(1+math.exp(-x))> end> > ballcanvas = love.graphics.newCanvas(32,32)> ballcanvas:renderTo(> function()> local r, g, b, a = love.graphics.getColor()> for i=0,16,.5 do> local ilog = logistic((i-2)*1.5)> love.graphics.setColor(ilog*255,152+ilog*103,ilog*255)> love.graphics.circle("fill",16,16,16/(i+1),100)> end> love.graphics.setColor(0,0,0)> love.graphics.setLineWidth(1)> love.graphics.line(2,16,30,16)> love.graphics.line(16,2,16,30)> love.graphics.setColor(r,g,b,a)> end)> 330c350,351< love.graphics.drawq(sprites, geometry, ball.body:getX(), ball.body:getY(), ball.body:getAngle(), 1, 1, ball.shape:getRadius(), ball.shape:getRadius())---> -- love.graphics.drawq(sprites, geometry, ball.body:getX(), ball.body:getY(), ball.body:getAngle(), 1, 1, ball.shape:getRadius(), ball.shape:getRadius())> love.graphics.draw(ballcanvas, ball.body:getX(), ball.body:getY(), ball.body:getAngle(), 1, 1, ball.shape:getRadius(), ball.shape:getRadius())