Skip to content

Commit

Permalink
Merge pull request #103 from chrahunt/fix-whammy
Browse files Browse the repository at this point in the history
Workaround for Whammy parsing issue. Fixes #81.
  • Loading branch information
chrahunt authored Nov 22, 2016
2 parents ab18844 + 3267300 commit 0998157
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/modules/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,9 @@ function animateReplay(frame_n, positions, mapImg, spin, showSplats, showClockAn
let me = replay_data.me;

context.clearRect(0, 0, context.canvas.width, context.canvas.height);
// Fix for Whammy not handling transparency nicely. See #81.
context.fillStyle = 'black';
context.fillRect(0, 0, context.canvas.width, context.canvas.height);
posx = -(positions[me].x[frame] - context.canvas.width / 2 + TILE_SIZE / 2);
posy = -(positions[me].y[frame] - context.canvas.height / 2 + TILE_SIZE / 2);
context.drawImage(mapImg,
Expand Down

0 comments on commit 0998157

Please sign in to comment.