コード例 #1
0
ファイル: explosion.c プロジェクト: SonnyJim/spang
static void explosions_update_all (void)
{
    int i, j;
    for (i = 0; i < NUM_EXPLOSIONS; i++)
    {
        for (j = 0; j < NUM_PARTICLES; j++)
        {
            if (explosions[i][j].active == 1)
            {
                explosion_update (i, j);
            }
        }
    }
}
コード例 #2
0
ファイル: explosion.c プロジェクト: lquesada/SpaceARMy
void explosions_update() {
  register unsigned int ei;
  for (ei = 0;ei < EXPLOSION_AMOUNT;ei++)
    if (explosions[ei].used == EXPLOSION_USED)
      explosion_update(&explosions[ei]);
}