Created
January 27, 2014 07:07
-
-
Save dwhacks/8644250 to your computer and use it in GitHub Desktop.
speed equation tetris
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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