Advertisement
Guest User

test

a guest
Jun 5th, 2013
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement