a guest Aug 20th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   context_c.clearRect(0, 0, screen_width, screen_height);
  2.   context_c.drawImage(canvas_b, -1, 0);
  3.   // Patch emptiness with fresh tiles here.
  4.   context_b.clearRect(0, 0, screen_width, screen_height);
  5.   context_b.drawImage(canvas_c, 0, 0); // For use next frame.
  6.   context_a.drawImage(canvas_c, 0, 0); // Draw to main canvas.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand