Skip to content

Commit

Permalink
Fix flicker due to rendering order
Browse files Browse the repository at this point in the history
  • Loading branch information
zerebos committed Jan 15, 2018
1 parent 6353dec commit dbeca15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions game.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,11 @@ function render(frameStart) {
score += blocks[i].blockData.points;
scoreDisplay.textContent = score;
blocks.splice(i,1);
i--;
}
else if (blocks[i].points[blocks[i].leftTopMax][1] <= -1.0) {
blocks.splice(i,1);
i--;
}
}
window.requestAnimFrame(render);
Expand Down

2 comments on commit dbeca15

@MaleficentRu
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello.
But add me as a friend on discord.
I got an error.

My discord
Mon coeur est brisé ... 💔 # 4354

@zerebos
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MaleficentRu congratulations, consider yourself blocked on both platforms.

Please sign in to comment.