aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjulian T <julian@jtle.dk>2018-12-31 13:39:49 +0100
committerjulian T <julian@jtle.dk>2018-12-31 13:39:49 +0100
commit6b446f42bf755aac9f3345f3d21e9977f2ddf067 (patch)
tree35f0e5e8fd0823a17c34fd53f72e5bf2b1196217
parent4b7e9ca7c92e2592324a250b5e29fb2b4c0cb8e4 (diff)
Removed dropBlock
-rw-r--r--Jetris.ino10
1 files changed, 0 insertions, 10 deletions
diff --git a/Jetris.ino b/Jetris.ino
index d68b3c7..840c2a6 100644
--- a/Jetris.ino
+++ b/Jetris.ino
@@ -152,16 +152,6 @@ int rotateBlock() {
moveBlock(0, 0);
}
-void dropBlock() {
- /* Move down until it hits something */
- while( !checkCollision(0, 1, cur_block) ) {
- moveBlock(0, 1);
-
- /* Add delay to make falling effect */
- delay(5);
- }
-}
-
/* Check and delete full rows(starting at `start`) */
void handleFullRows(int start) {
int i = start;