Permalink
Browse files

Just use opacity to indicate non-presence for now.

  • Loading branch information...
kevadsett committed Sep 10, 2016
1 parent d57da17 commit cf595c8508d44480f850c844d2b99ee54a39c0ca
Showing with 1 addition and 6 deletions.
  1. +1 −6 src/js/views/LevelTileView.js
@@ -12,12 +12,7 @@ LevelTileView.prototype = {
var scaledPosition = this.model.position.scale(window.gameScale);
if (this.model.isGlitching) {
var glitchRoll = Math.random();
if (glitchRoll > 0.9) {
ctx.globalAlpha = Math.random();
glitchAmount = ((glitchRoll * 2) - 1) * 10;
scaledPosition.x += ((Math.random() * 10) - 5) * window.gameScale;
}
ctx.globalAlpha = 0.1;
} else {
ctx.globalAlpha = 1;
}

0 comments on commit cf595c8

Please sign in to comment.