Browse Source

Some minor graphical prettiness

Simon Jackson 8 years ago
parent
commit
a369741f2b
3 changed files with 18 additions and 0 deletions
  1. 12 0
      Content/Content.mgcb
  2. BIN
      Content/blueships1.png
  3. 6 0
      SampleCode/Screens/GameplayScreen.cs

+ 12 - 0
Content/Content.mgcb

@@ -63,3 +63,15 @@
 /processorParam:TextureFormat=Color
 /build:gradient.png
 
+#begin blueships1.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:blueships1.png
+

BIN
Content/blueships1.png


+ 6 - 0
SampleCode/Screens/GameplayScreen.cs

@@ -31,6 +31,8 @@ namespace GameStateManagementSample
         ContentManager content;
         SpriteFont gameFont;
 
+        Texture2D ship;
+
         Vector2 playerPosition = new Vector2(100, 100);
         Vector2 enemyPosition = new Vector2(100, 100);
 
@@ -71,6 +73,7 @@ namespace GameStateManagementSample
                     content = new ContentManager(ScreenManager.Game.Services, "Content");
 
                 gameFont = content.Load<SpriteFont>("gamefont");
+                ship = content.Load<Texture2D>("blueships1");
 
                 // A real game would probably have more content than this sample, so
                 // it would take longer to load. We simulate that by delaying for a
@@ -157,6 +160,7 @@ namespace GameStateManagementSample
 
                 // TODO: this game isn't very fun! You could probably improve
                 // it by inserting something more interesting in this space :-)
+            
             }
         }
 
@@ -249,6 +253,8 @@ namespace GameStateManagementSample
             spriteBatch.DrawString(gameFont, "Insert Gameplay Here",
                                    enemyPosition, Color.DarkRed);
 
+            spriteBatch.Draw(ship, playerPosition, Color.White);
+
             spriteBatch.End();
 
             // If the game is transitioning on or off, fade it out to black.