This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

test

By: a guest on Jun 5th, 2013  |  syntax: None  |  size: 0.45 KB  |  views: 33  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. function Test()
  2. {
  3.  
  4.  
  5.  
  6.  intervalT = setInterval(BulletExplosionAnimate, 80);
  7.  
  8.  
  9. }
  10.  
  11. var bulletExplosionStart = 0;
  12. function BulletExplosionAnimate(intervalT)
  13. {
  14.  
  15. var wide = 70;
  16. var high = 70;
  17.  
  18. if (bulletExplosionStart > 308)
  19. {
  20.  clearInterval(intervalT);
  21. }
  22. else
  23. {
  24. ctxExplosion.clearRect(0,0,canvasWidth,canvasHeight)
  25. ctxExplosion.drawImage(spriteImage,bulletExplosionStart,1250,wide,high,100,100,wide,high);
  26. bulletExplosionStart += 77;
  27. }
  28.  
  29.  
  30. }
clone this paste RAW Paste Data