diff --git a/Content/Content.mgcb b/Content/Content.mgcb index 255914e..1215a8b 100644 --- a/Content/Content.mgcb +++ b/Content/Content.mgcb @@ -98,6 +98,18 @@ /processorParam:TextureFormat=Color /build:player.png +#begin Sink area.png +/importer:TextureImporter +/processor:TextureProcessor +/processorParam:ColorKeyColor=255,0,255,255 +/processorParam:ColorKeyEnabled=True +/processorParam:GenerateMipmaps=False +/processorParam:PremultiplyAlpha=True +/processorParam:ResizeToPowerOfTwo=False +/processorParam:MakeSquare=False +/processorParam:TextureFormat=Color +/build:Sink area.png + #begin spr_cave1_background.png /importer:TextureImporter /processor:TextureProcessor diff --git a/Game1.cs b/Game1.cs index 9df03a5..355de23 100644 --- a/Game1.cs +++ b/Game1.cs @@ -28,6 +28,7 @@ namespace LunaLightXMG // Test sprites - eventually handle in a sprite manager? private Texture2D platformTexture; + private Texture2D sinkArea; // Test platforms private Platform[] platforms; @@ -87,6 +88,7 @@ namespace LunaLightXMG // Test platform platformTexture = Content.Load("platform"); + sinkArea = Content.Load("Sink area"); // Music sinkBeats = Content.Load("music/sinkBeats"); // load player sprite @@ -133,7 +135,8 @@ namespace LunaLightXMG // Test Sprite spriteBatch.Begin(samplerState: SamplerState.PointClamp); // Debug Grid - spriteBatch.Draw(debugGrid, new Vector2(0, 0), Color.Blue); + //spriteBatch.Draw(debugGrid, new Vector2(0, 0), Color.Blue); + spriteBatch.Draw(sinkArea, new Vector2(0, 0), Color.White); // Test draw tiles foreach (var platform in platforms) diff --git a/Platform.cs b/Platform.cs index baa2155..4d47222 100644 --- a/Platform.cs +++ b/Platform.cs @@ -102,8 +102,8 @@ namespace LunaLightXMG { List platforms = new List(); platforms.Add(new Platform(new Vector2(16, 132), 16, 16)); - platforms.Add(new Platform(new Vector2(144, 132), 16, 16)); - platforms.Add(new Platform(new Vector2(160, 132), 16, 16)); + platforms.Add(new Platform(new Vector2(128, 132), 16, 16)); + platforms.Add(new Platform(new Vector2(176, 132), 16, 16)); platforms.Add(new Platform(new Vector2(288, 132), 16, 16)); for (int i = 0; i < numberOfPlatforms; i++)