Sorceress

Untitled

May 28th, 2015
382
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for(int i=1; i <= MissileCount; i++) {
  2.   Missile[i].pos.x += Missile[i].vel.x * deltatime;
  3.   Missile[i].pos.y += Missile[i].vel.y * deltatime;
  4.   Missile[i].life -= deltatime;
  5.   if(Missile[i].life < 0) Missile[i].dead = true;
  6. }
RAW Paste Data