Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         var newBullet1:Bullet = new Bullet();          
  2.         //bullet koordinátái
  3.         newBullet.x = SHIP.x+20+Math.sin(rotation/180*Math.PI);
  4.         newBullet.y = SHIP.y-80+Math.cos(rotation/180*Math.PI);
  5.        
  6. /*ez nemmmegy jól*/
  7.         newBullet1.x = SHIP.x-20+Math.sin(rotation/180*Math.PI);
  8.         newBullet1.y = SHIP.y-80+Math.cos(rotation/180*Math.PI);
  9.  
  10.         //új lőszer hozzáadása astagehez
  11.         addChild(newBullet);
  12.         addChild(newBullet1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement