From d12fa31cf86d54b5e88e9b6169e758a8875da869 Mon Sep 17 00:00:00 2001 From: phat_sumo Date: Wed, 13 Apr 2022 18:21:11 -0600 Subject: remove dynamic coloring, recolor sprites --- src/render/graphics.js | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/render/graphics.js') 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 { -- cgit v1.2.3-70-g09d2