Hi everyone,
I was just wondering if anyone knows what this error mean.
Do I have to include the sprite library to my project ?
Here’s my code :
--display groups local hudGroup = display.newGroup()--Disaplays the Hud local gameGroup = display.newGroup() local levelGroup = display.newGroup() local stars = display.newGroup() --Displays the stars. --Modules local sprite = require("sprite") local physics = require("physics") local mCeil = math.Ceil local mAtan2 = math.atan2 local mPi = math.pi local mSqrt = math.sqrt --Game objects local background local ground local powerShot local arrow local panda local poof local starGone local scoreText local gameOverDisplay --Variables local gameIsActive = false local waitingForNewRound local restartTimer local counter local timerInfo local numSeconds = 30 --Time the round starts at. local counterSize = 50 local gameScore = 0 local starWidth = 30 local starHeigth = 30 local startNewRound = function() if panda then local activateRound = function() waitingForNewRound = false if restartTimer then timer.cancel(restartTimer) end ground:toFront() panda.x = 240 panda.y = 300 panda.rotation = 0 panda.isVisible = true panda.isBodyActive = true local pandaLoaded = function() gameIsActive = true panda.inAir = false panda.isHit = false panda:toFront() panda.bodyType = "static" end transition.to( panda, {time = 1000, y = 225, onComplete = pandaLoaded } ) end acrivateRound() end end
Unless I did something wrong in my code…
Please help.