Browse Source

add Spider* files to project and SneakGame

main
Colin McMillen 3 years ago
parent
commit
1fd19f14dc
  1. 2
      Shared/Shared.projitems
  2. 6
      Shared/SneakGame.cs

2
Shared/Shared.projitems

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

6
Shared/SneakGame.cs

@ -66,12 +66,14 @@ namespace SemiColinGames {
world?.Dispose();
// world = new SneakWorld(GraphicsDevice, Content.LoadString("levels/demo.json"));
// world = new TreeWorld();
world = new ShmupWorld();
// world = new ShmupWorld();
world = new SpiderWorld();
scene?.Dispose();
// scene = new SneakScene(GraphicsDevice, ((SneakWorld) world).Camera);
// 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.WaitForPendingFinalizers();

Loading…
Cancel
Save