not much, continued work on the snetris game
This commit is contained in:
@@ -123,7 +123,6 @@ let ActiveApple = new Apple();
|
|||||||
|
|
||||||
/*<==== GAME LOGIC AND EVENT HANDLING ====>*/
|
/*<==== GAME LOGIC AND EVENT HANDLING ====>*/
|
||||||
let stop = false;
|
let stop = false;
|
||||||
|
|
||||||
function gameLoop() {
|
function gameLoop() {
|
||||||
if (!stop) {
|
if (!stop) {
|
||||||
clear();
|
clear();
|
||||||
@@ -145,10 +144,9 @@ function gameLoop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function animationLoop() {
|
function animationLoop() {
|
||||||
if (ActiveSnake.frozen) {
|
if (!stop) {
|
||||||
console.log('FALLING');
|
// loop through Boxes and if a box is in the falling
|
||||||
|
// state, then apply animation
|
||||||
drawAnimation();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user