Advertisement
Guest User

Points example

a guest
Dec 13th, 2014
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.20 KB | None | 0 0
  1. local time, points, target = 2, 0, 45
  2.  
  3. function love.update( dt )
  4.     --# Do this when you increment the score
  5.     if points >= target then
  6.     time = time - 0.5
  7.         target = target + 45
  8.     end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement