Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- score = 0
- if fruits[i].position.x > 480 or fruits[i].position.x < 0 or fruits[i].position.y > 272 or fruits[i].position.y + fruits[i].image:height() < 0 then
- score = score+1
- end
- screen:print(x,y,"score"..score,color)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement