Minor bug fixes.

This commit is contained in:
2026-09-06 20:08:23 -04:00
parent ebcfd9cd39
commit 6e88a9e9e2
24 changed files with 126 additions and 43 deletions

View File

@@ -112,8 +112,9 @@ public class SpriteManager
public void Draw(SpriteBatch sb)
{
int n = Items.Count;
for (int i = 0; i < n; i++)
// Omega drew newest sprites first, so earlier-created sprites appear on top
// (e.g. the missile turret gun is spawned before its base and must cover it)
for (int i = Items.Count - 1; i >= 0; i--)
if (!Items[i].IsDead)
Items[i].Draw(sb);
}