Skip to content
Snippets Groups Projects
Commit 8eb560bd authored by Trandinh Thien's avatar Trandinh Thien
Browse files

Added character Sprites

parent b6f6d6b6
No related branches found
No related tags found
No related merge requests found
Showing
with 42 additions and 10 deletions
......@@ -91,6 +91,7 @@
<Content Include="GameThumbnail.png">
<XnaPlatformSpecific>true</XnaPlatformSpecific>
</Content>
<None Include="Resources\charSprite.png" />
<None Include="Resources\Game Map.png" />
</ItemGroup>
<ItemGroup>
......
Content\Game Map.xnb
Content\GreenScreen.xnb
Content\charSprite.xnb
......@@ -18,7 +18,13 @@ namespace Controller
{
GraphicsDeviceManager graphics;
SpriteBatch spriteBatch;
Texture2D backGround;
Texture2D backGround, unit1;
// Set the coordinates to draw the sprite at.
Vector2 spritePosition = new Vector2(50.0f, 50.0f);
// Store some information about the sprite's motion.
// Vector2 spriteSpeed = new Vector2(50.0f, 50.0f);
public Game()
{
......@@ -47,6 +53,8 @@ namespace Controller
{
// Create a new SpriteBatch, which can be used to draw textures.
spriteBatch = new SpriteBatch(GraphicsDevice);
unit1 = Content.Load<Texture2D>("charSprite");
backGround = Content.Load<Texture2D>("Game Map");
// TODO: use this.Content to load your game content here
......@@ -73,6 +81,7 @@ namespace Controller
this.Exit();
// TODO: Add your update logic here
unit1 = Content.Load<Texture2D>("charSprite");
backGround = Content.Load<Texture2D>("Game Map");
......@@ -90,7 +99,9 @@ namespace Controller
spriteBatch.Begin(SpriteSortMode.BackToFront, BlendState.AlphaBlend, null, null, null, null);
// TODO: Add your drawing code here
spriteBatch.Draw(unit1, spritePosition, Color.White);
spriteBatch.Draw(backGround, Vector2.Zero, Color.White); //draws background
spriteBatch.End();
base.Draw(gameTime);
......
......@@ -118,6 +118,9 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="charSprite" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\charSprite.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Game_Map" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\Game Map.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
......
No preview for this file type
No preview for this file type
File added
No preview for this file type
......@@ -17,7 +17,6 @@ C:\Users\chaos\Documents\Git\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\obj\x
C:\Users\chaos\Documents\Git\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\obj\x86\Debug\Blaze_Brigade.pdb
C:\Users\chaos\Documents\Git\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\obj\x86\Debug\Blaze_Brigade.Resource1.resources
C:\Users\chaos\Documents\Git\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\obj\x86\Debug\Blaze_Brigade.csproj.GenerateResource.Cache
C:\Users\chaos\Documents\Git\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\bin\x86\Debug\Content\GreenScreen.xnb
C:\Users\chaos\Documents\Git\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\bin\x86\Debug\Microsoft.Xna.Framework.Avatar.dll
C:\Users\chaos\Documents\Git\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\bin\x86\Debug\Microsoft.Xna.Framework.Net.dll
C:\Users\chaos\Documents\Git\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\bin\x86\Debug\Microsoft.Xna.Framework.Storage.dll
......@@ -57,3 +56,4 @@ C:\Users\Susan\Documents\GitHub\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\ob
C:\Users\Susan\Documents\GitHub\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\obj\x86\Debug\Blaze_Brigade.csproj.GenerateResource.Cache
C:\Users\Susan\Documents\GitHub\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\obj\x86\Debug\Blaze_Brigade.exe
C:\Users\Susan\Documents\GitHub\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\obj\x86\Debug\Blaze_Brigade.pdb
C:\Users\chaos\Documents\Git\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\bin\x86\Debug\Content\charSprite.xnb
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -7,8 +7,17 @@
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
<Options>None</Options>
<Output>C:\Users\Susan\Documents\GitHub\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\bin\x86\Debug\Content\Game Map.xnb</Output>
<Time>2016-10-18T13:30:12.421677-04:00</Time>
<Output>C:\Users\chaos\Documents\Git\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\bin\x86\Debug\Content\Game Map.xnb</Output>
<Time>2015-07-22T20:51:38-04:00</Time>
</Item>
<Item>
<Source>charSprite.png</Source>
<Name>charSprite</Name>
<Importer>TextureImporter</Importer>
<Processor>TextureProcessor</Processor>
<Options>None</Options>
<Output>C:\Users\chaos\Documents\Git\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\bin\x86\Debug\Content\charSprite.xnb</Output>
<Time>2016-10-18T13:51:08.0660613-04:00</Time>
</Item>
<BuildSuccessful>true</BuildSuccessful>
<Settings>
......@@ -17,10 +26,10 @@
<TargetProfile>Reach</TargetProfile>
<BuildConfiguration>Debug</BuildConfiguration>
<CompressContent>false</CompressContent>
<RootDirectory>C:\Users\Susan\Documents\GitHub\Blaze-Brigade\src\Blaze-Brigade\Blaze_BrigadeContent\</RootDirectory>
<LoggerRootDirectory>C:\Users\Susan\Documents\GitHub\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\</LoggerRootDirectory>
<IntermediateDirectory>C:\Users\Susan\Documents\GitHub\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\obj\x86\Debug\</IntermediateDirectory>
<OutputDirectory>C:\Users\Susan\Documents\GitHub\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\bin\x86\Debug\Content\</OutputDirectory>
<RootDirectory>C:\Users\chaos\Documents\Git\Blaze-Brigade\src\Blaze-Brigade\Blaze_BrigadeContent\</RootDirectory>
<LoggerRootDirectory>C:\Users\chaos\Documents\Git\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\</LoggerRootDirectory>
<IntermediateDirectory>C:\Users\chaos\Documents\Git\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\obj\x86\Debug\</IntermediateDirectory>
<OutputDirectory>C:\Users\chaos\Documents\Git\Blaze-Brigade\src\Blaze-Brigade\Blaze_Brigade\bin\x86\Debug\Content\</OutputDirectory>
</Settings>
<Assemblies>
<Assembly>
......@@ -49,7 +58,7 @@
</Assembly>
<Assembly>
<Key>C:\WINDOWS\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key>
<Value>2016-10-18T11:11:33.4375035-04:00</Value>
<Value>2016-10-18T10:51:30.2111439-04:00</Value>
</Assembly>
</Assemblies>
</Asset>
......
Content\Game Map.xnb
Content\charSprite.xnb
......@@ -36,6 +36,13 @@
<Processor>TextureProcessor</Processor>
</Compile>
</ItemGroup>
<ItemGroup>
<Compile Include="charSprite.png">
<Name>charSprite</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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment