Last active
January 4, 2016 17:59
-
-
Save dwhacks/8657724 to your computer and use it in GitHub Desktop.
Tetris drop speed versus level calculator test platform TO THE XTREME By D-Whacks2000
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
/*Tetris drop speed versus level calculator test platform TO THE XTREME | |
By D-Whacks2000 | |
*/ | |
int level = 0; | |
int dropSpeed = 1000; | |
void setup() | |
{ | |
// put your setup code here, to run once: | |
Serial.begin(9600); | |
} | |
void loop() | |
{ | |
dropSpeed = dropSpeed * .90; | |
dropSpeed += level/5; | |
Serial.println(); | |
Serial.print("Level: "); | |
Serial.print(level); | |
Serial.print(" Drop Speed:"); | |
Serial.print(dropSpeed); | |
level++; | |
delay(500); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment