From ef9cda068992e768d3e5c19e22dc2dbacda6aa9e Mon Sep 17 00:00:00 2001 From: William Date: Sun, 19 Apr 2020 12:39:31 -0400 Subject: [PATCH] fixed the transition --- docs/assets/js/index.js | 8 ++++---- docs/assets/js/transition/transition.js | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/assets/js/index.js b/docs/assets/js/index.js index 27ca176..13b33c3 100644 --- a/docs/assets/js/index.js +++ b/docs/assets/js/index.js @@ -21,7 +21,7 @@ var globalStates = { building: 5 }; var globalState = globalStates.titleScreen; - +debugger function update() { switch (globalState) { @@ -31,7 +31,7 @@ function update() { break; // level transition case globalStates.levelTransition: - + handleTransition(); break; // playing case globalStates.playing: @@ -68,7 +68,8 @@ function draw() { break; // level transition case globalStates.levelTransition: - handleTransition(); + + drawLevelTransitionUI(); break; // playing case globalStates.playing: @@ -101,7 +102,6 @@ function absoluteDraw() { break; // level transition case globalStates.levelTransition: - drawLevelTransitionUI(); break; // playing case globalStates.playing: diff --git a/docs/assets/js/transition/transition.js b/docs/assets/js/transition/transition.js index b1d566f..1665c56 100644 --- a/docs/assets/js/transition/transition.js +++ b/docs/assets/js/transition/transition.js @@ -39,4 +39,5 @@ function drawLevelTransitionUI() { // resets alpha for rest of drawing canvases.ctx.globalAlpha = 1; + }