- Timestamp:
- 2011-06-17 18:01:14 (12 years ago)
- Location:
- 2011/23/sijoseha/Fera Proelia
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/23/sijoseha/Fera Proelia/Fera Proelia/Fera Proelia/Fera Proelia.csproj
r2118 r2119 90 90 <Compile Include="HUD.cs" /> 91 91 <Compile Include="Properties\AssemblyInfo.cs" /> 92 <Compile Include="ScreenManager.cs" /> 92 93 <None Include="Properties\AppManifest.xml"> 93 94 <XnaPlatformSpecific>true</XnaPlatformSpecific> -
2011/23/sijoseha/Fera Proelia/Fera Proelia/Fera Proelia/HUD.cs
r2118 r2119 8 8 public class HUD : DrawableGameComponent 9 9 { 10 public HUD(Game game) 10 private Texture2D backgroundTexture; 11 12 public HUD(Game game, Texture2D bgTex) 11 13 : base(game) 12 14 { 15 backgroundTexture = bgTex; 16 } 13 17 18 public override void Draw(GameTime gameTime) 19 { 20 //SpriteBatch sb = 21 base.Draw(gameTime); 14 22 } 15 23 } -
2011/23/sijoseha/Fera Proelia/Fera Proelia/Fera Proelia/ScreenManager.cs
r2118 r2119 39 39 } 40 40 } 41 42 protected override void UnloadContent() 43 { 44 foreach (GameScreen screen in screens) 45 { 46 screen.UnloadContent(); 47 } 48 } 49 50 public override void Update(GameTime gameTime) 51 { 52 screensToUpdate.Clear(); 53 foreach (GameScreen screen in screens) 54 screensToUpdate.Add(screen); 55 56 bool otherScreenHasFocus = !Game.IsActive; 57 58 while (screensToUpdate.Count > 0) 59 { 60 GameScreen screen = screensToUpdate[screensToUpdate.Count - 1]; 61 screensToUpdate.RemoveAt(screensToUpdate.Count - 1); 62 63 screen.Update(gameTime, otherScreenHasFocus); 64 } 65 66 base.Update(gameTime); 67 } 68 69 public override void Draw(GameTime gameTime) 70 { 71 foreach (GameScreen screen in screens) 72 { 73 screen.Draw(gameTime); 74 } 75 base.Draw(gameTime); 76 } 41 77 } 42 78 } -
2011/23/sijoseha/Fera Proelia/Fera Proelia/Fera ProeliaContent/Fera ProeliaContent.contentproj
r2079 r2119 49 49 </Compile> 50 50 </ItemGroup> 51 <ItemGroup> 52 <Compile Include="hudBg.png"> 53 <Name>hudBg</Name> 54 <Importer>TextureImporter</Importer> 55 <Processor>TextureProcessor</Processor> 56 </Compile> 57 </ItemGroup> 51 58 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 52 59 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Note: See TracChangeset
for help on using the changeset viewer.