add Spider* files to project and SneakGame

This commit is contained in:
Colin McMillen 2021-02-09 10:14:10 -05:00
parent 0b555af7a1
commit 1fd19f14dc
2 changed files with 6 additions and 2 deletions

View File

@ -10,6 +10,8 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)Camera.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Camera.cs" />
<Compile Include="$(MSBuildThisFileDirectory)SpiderScene.cs" />
<Compile Include="$(MSBuildThisFileDirectory)SpiderWorld.cs" />
<Compile Include="$(MSBuildThisFileDirectory)ExtensionMethods.cs" /> <Compile Include="$(MSBuildThisFileDirectory)ExtensionMethods.cs" />
<Compile Include="$(MSBuildThisFileDirectory)FSM.cs" /> <Compile Include="$(MSBuildThisFileDirectory)FSM.cs" />
<Compile Include="$(MSBuildThisFileDirectory)IScene.cs" /> <Compile Include="$(MSBuildThisFileDirectory)IScene.cs" />

View File

@ -66,12 +66,14 @@ namespace SemiColinGames {
world?.Dispose(); world?.Dispose();
// world = new SneakWorld(GraphicsDevice, Content.LoadString("levels/demo.json")); // world = new SneakWorld(GraphicsDevice, Content.LoadString("levels/demo.json"));
// world = new TreeWorld(); // world = new TreeWorld();
world = new ShmupWorld(); // world = new ShmupWorld();
world = new SpiderWorld();
scene?.Dispose(); scene?.Dispose();
// scene = new SneakScene(GraphicsDevice, ((SneakWorld) world).Camera); // scene = new SneakScene(GraphicsDevice, ((SneakWorld) world).Camera);
// scene = new TreeScene(GraphicsDevice); // scene = new TreeScene(GraphicsDevice);
scene = new ShmupScene(GraphicsDevice, ((ShmupWorld) world).Bounds.Size); // scene = new ShmupScene(GraphicsDevice, ((ShmupWorld) world).Bounds.Size);
scene = new SpiderScene(GraphicsDevice, ((SpiderWorld) world).Bounds.Size);
GC.Collect(); GC.Collect();
GC.WaitForPendingFinalizers(); GC.WaitForPendingFinalizers();