Cave concept level

This commit is contained in:
Simon Holmberg
2012-09-28 14:41:33 +02:00
parent 8c6878ef25
commit 365bb32702
4 changed files with 27 additions and 2 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ namespace DepthsBelow
// Create a new SpriteBatch, which can be used to draw textures.
spriteBatch = new SpriteBatch(GraphicsDevice);
map = Content.Load<Map>("maps/test");
map = Content.Load<Map>("maps/Cave.Level1");
// TODO: use this.Content to load your game content here
Soldier.LoadContent(this);
@@ -110,7 +110,7 @@ namespace DepthsBelow
GraphicsDevice.Clear(Color.Black);
// Start drawing using the camera transform
spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, null, null, null, null, camera.Transform);
spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, null, null, null, camera.Transform);
// Draw the level
map.Draw(spriteBatch);
@@ -84,6 +84,20 @@
<Processor>TextureProcessor</Processor>
</Compile>
</ItemGroup>
<ItemGroup>
<Compile Include="maps\Cave.Level1.tmx">
<Name>Cave.Level1</Name>
<Processor>MapProcessor</Processor>
<Importer>TmxImporter</Importer>
</Compile>
</ItemGroup>
<ItemGroup>
<Compile Include="maps\tilesets\cave.png">
<Name>cave</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
</Compile>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB