Skip to content

Instantly share code, notes, and snippets.

@dwhacks
Created January 27, 2014 07:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwhacks/8644250 to your computer and use it in GitHub Desktop.
Save dwhacks/8644250 to your computer and use it in GitHub Desktop.
speed equation tetris
For speed I used the formula:
delay = 725 * .85 ^ level + level
Where delay is the time (in milliseconds) before the block falls one row -- That equation reaches its minimum at level 30 (35.5 ms delay) and begins to climb again until delay = level (basicly the game slows down about 6ms per drop by level 41). However, I was modeling a certain behavior, and you might have better performance with a more general equation:
delay = delay_at_level_0 / (level + 1)
Where delay_at_level_0 is a constant
#http://www.gamedev.net/topic/347055-tetris-scoring-formula/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment