Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 11th, 2012  |  syntax: None  |  size: 0.76 KB  |  hits: 19  |  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.         if (frame % 20 == 0)
  2.         {
  3.             let i = 0;
  4.             while(i < length(bullets))
  5.             {
  6.                 if (!Obj_IsDeleted(bullets[i]))
  7.                 {
  8.                     CreateShotA2(ObjRender_GetX(bullets[i]), ObjRender_GetY(bullets[i]), 0,
  9.                                                 ObjMove_GetAngle(bullets[i]) + 90, 0.015, 2.5, DS_SCALE_BLUE, 1);
  10.                     CreateShotA2(ObjRender_GetX(bullets[i]), ObjRender_GetY(bullets[i]), 0,
  11.                                                 ObjMove_GetAngle(bullets[i]) - 90, 0.015, 2.5, DS_SCALE_BLUE, 1);
  12.                 }
  13.                 else
  14.                 {
  15.                     bullets = erase(bullets, i);
  16.                     i--;
  17.                 }
  18.             i++;
  19.             }
  20.         }