First respawning/level up

This commit is contained in:
2021-04-20 16:45:20 +02:00
parent 92b70a6208
commit 14473a02a6
3 changed files with 7 additions and 1 deletions
Binary file not shown.
+6 -1
View File
@@ -36,7 +36,12 @@ namespace EvilSatellites
public void Update() public void Update()
{ {
var sats = Screen.Objects.Where((x) => x.Type == ObjectType.Satellite).ToList();
if (sats.Count < 1)
{
Level++;
Spawn();
}
} }
} }
} }
+1
View File
@@ -80,6 +80,7 @@ namespace EvilSatellites.Screens
} }
UpdateRadar(); UpdateRadar();
CheckCollisions(); CheckCollisions();
Spawner.Update();
return; return;
} }