First respawning/level up
This commit is contained in:
Binary file not shown.
@@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ namespace EvilSatellites.Screens
|
|||||||
}
|
}
|
||||||
UpdateRadar();
|
UpdateRadar();
|
||||||
CheckCollisions();
|
CheckCollisions();
|
||||||
|
Spawner.Update();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user