Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function drawSuper() {
- setTimeout(function(){
- requestAnimationFrame(drawSuper)
- ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);
- if (i % 2 === 0) {
- drawSuperMarioOne();
- } else {
- drawSuperMarioTwo();
- }
- i++;
- }, 1000/5)
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement