Skip to content

Instantly share code, notes, and snippets.

@zfogg
Created July 2, 2011 05:23
Show Gist options
  • Save zfogg/1059757 to your computer and use it in GitHub Desktop.
Save zfogg/1059757 to your computer and use it in GitHub Desktop.
for (int i = 0; i < PhysicalSprites.Count; i++)
{
if (PhysicalSprites[i].IsAlive)
PhysicalSprites[i].Update(gameTime);
else
{
PhysicalSprites[i].Body.Dispose();
PhysicalSprites.RemoveAt(i);
i--;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment