Changeset 2119 for 2011/23


Ignore:
Timestamp:
2011-06-17 18:01:14 (12 years ago)
Author:
sijoseha
Message:

Some files missed from the last commit

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  
    9090    <Compile Include="HUD.cs" /> 
    9191    <Compile Include="Properties\AssemblyInfo.cs" /> 
     92    <Compile Include="ScreenManager.cs" /> 
    9293    <None Include="Properties\AppManifest.xml"> 
    9394      <XnaPlatformSpecific>true</XnaPlatformSpecific> 
  • 2011/23/sijoseha/Fera Proelia/Fera Proelia/Fera Proelia/HUD.cs

    r2118 r2119  
    88    public class HUD : DrawableGameComponent 
    99    { 
    10         public HUD(Game game) 
     10        private Texture2D backgroundTexture; 
     11 
     12        public HUD(Game game, Texture2D bgTex) 
    1113            : base(game) 
    1214        { 
     15            backgroundTexture = bgTex; 
     16        } 
    1317 
     18        public override void Draw(GameTime gameTime) 
     19        { 
     20            //SpriteBatch sb =  
     21            base.Draw(gameTime); 
    1422        } 
    1523    } 
  • 2011/23/sijoseha/Fera Proelia/Fera Proelia/Fera Proelia/ScreenManager.cs

    r2118 r2119  
    3939            } 
    4040        } 
     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        } 
    4177    } 
    4278} 
  • 2011/23/sijoseha/Fera Proelia/Fera Proelia/Fera ProeliaContent/Fera ProeliaContent.contentproj

    r2079 r2119  
    4949    </Compile> 
    5050  </ItemGroup> 
     51  <ItemGroup> 
     52    <Compile Include="hudBg.png"> 
     53      <Name>hudBg</Name> 
     54      <Importer>TextureImporter</Importer> 
     55      <Processor>TextureProcessor</Processor> 
     56    </Compile> 
     57  </ItemGroup> 
    5158  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    5259  <!--  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.