diff --git a/Shared/SneakGame.cs b/Shared/SneakGame.cs index 3c21a8c..7910c47 100644 --- a/Shared/SneakGame.cs +++ b/Shared/SneakGame.cs @@ -24,6 +24,7 @@ namespace SemiColinGames { // attempt to draw the scene. This is a workaround for the fact that otherwise the first few // frames can be really slow to draw. int framesToSuppress; + int levelIdx = 0; Scene scene; Player player; @@ -72,8 +73,9 @@ namespace SemiColinGames { framesToSuppress = 2; camera = new Camera(); player = new Player(); - world = new World(Levels.ONE_ONE); + world = new World(Levels.ALL_LEVELS[levelIdx % Levels.ALL_LEVELS.Length]); scene = new Scene(GraphicsDevice, camera); + levelIdx++; } // Called once per game. Unloads all game content.