Commits

Samuel Jackson committed dd8ebe8

changes made to the scoring system.

  • Participants
  • Parent commits 43e8b6f

Comments (0)

Files changed (1)

 Game.score = 0
 Game.speed = 1
 Game.lineCount = 0
+Game.nextIncreatment = 5
 Game.displayMenu = true
 Game.paused = false
 Game.EOG = false
 		Game.EOG = checkGameOver()
 		Game.score = Game.score + (linesThisDelta * 10)
 		
-		if Game.lineCount % 5 == 0 and linesThisDelta ~= 0 then
+		if Game.lineCount >= Game.nextIncreatment and linesThisDelta ~= 0 then
 			Game.speed = Game.speed - 0.1
+			local r = Game.lineCount % 5
+			Game.nextIncreatment = (Game.lineCount - r) + 5
 		end		
 	end
 end