Code: Select all
love.update(dt)
if hit==true then
score=score+1
end
end
oh, one more thing. English is not my nature language, so if i'd wrote something wrong, im sorry ^_^'
Code: Select all
love.update(dt)
if hit==true then
score=score+1
end
end
Code: Select all
function love.update(dt)
if hit then -- you don't need "== true" if it's already going to be a boolean!
score = score + 1
hit = false
end
end
Users browsing this forum: Bing [Bot] and 0 guests