Advertisement
Bleser

Untitled

Jun 2nd, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. local function moveBackgroundGrid()
  2.     if not isGameEnd then
  3.         for i,v in ipairs(backgroundGrids) do
  4.             v.y = v.y + (gameSpeed * 2)
  5.  
  6.             if v.y > 1500 then
  7.                 v:translate(0,-2208)
  8.             end
  9.  
  10.         end
  11.     end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement