SHARE
TWEET

test

a guest Jun 5th, 2013 35 Never
  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. }
RAW Paste Data
Top