summaryrefslogtreecommitdiff
path: root/src/render/graphics.js
diff options
context:
space:
mode:
authorphat_sumo <ethanjpayne1@gmail.com>2022-04-13 18:21:11 -0600
committerphat_sumo <ethanjpayne1@gmail.com>2022-04-13 18:21:11 -0600
commitd12fa31cf86d54b5e88e9b6169e758a8875da869 (patch)
tree3e448328b0f43351ac0913b76a2d2e97656a4aea /src/render/graphics.js
parent8d0c43c1e7c47bb6767d361d8141c1467df9d50a (diff)
downloadbbiy-d12fa31cf86d54b5e88e9b6169e758a8875da869.tar.gz
bbiy-d12fa31cf86d54b5e88e9b6169e758a8875da869.zip
remove dynamic coloring, recolor sprites
Diffstat (limited to 'src/render/graphics.js')
-rw-r--r--src/render/graphics.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/render/graphics.js b/src/render/graphics.js
index 06d0b2c..aa4195e 100644
--- a/src/render/graphics.js
+++ b/src/render/graphics.js
@@ -34,14 +34,6 @@ game.graphics = (
const col = Math.floor(currentFrame / rows);
context.drawImage(image, spriteX+col*spriteWidth, spriteY+row*spriteHeight, spriteWidth, spriteHeight, x, y, width, height);
- // apply color to sprite
- if (color) {
- context.globalAlpha=0.7;
- context.globalCompositeOperation="source-atop";
- context.fillStyle=color;
- context.fillRect(x, y, width, height);
- }
-
context.restore();
};
} else {