From 6b446f42bf755aac9f3345f3d21e9977f2ddf067 Mon Sep 17 00:00:00 2001 From: julian T Date: Mon, 31 Dec 2018 13:39:49 +0100 Subject: Removed dropBlock --- Jetris.ino | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'Jetris.ino') 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; -- cgit v1.2.3