Kingdaro

ticks

May 22nd, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. --love.load:
  2. gTime=0
  3. slowTick = 3
  4.  
  5. --love.update:
  6. gTime = gTime+dt
  7.  
  8. if gTime > slowTick then
  9.     slowTick = slowTick + 3
  10.    
  11.     for i=1, 10 do
  12.         local powerup = {
  13.             x = math.random()*750,
  14.             y = -50,
  15.             yvel = 128
  16.         }
  17.    
  18.         table.insert(powerups,powerup)
  19.     end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment