From f69be675ab1a1a9ab4b478f213c7b708d59820f2 Mon Sep 17 00:00:00 2001 From: Kyle Date: Thu, 22 Apr 2010 22:07:33 +0000 Subject: [PATCH] Basic character selection screen. git-svn-id: https://bd85.net/svn/cs3505_group@131 92bb83a3-7c8f-8a45-bc97-515c4e399668 --- CarFire/CarFire/CarFire/Game.cs | 9 ++++++++- CarFire/CarFire/CarFire/Human.cs | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CarFire/CarFire/CarFire/Game.cs b/CarFire/CarFire/CarFire/Game.cs index c867b3c..445336a 100644 --- a/CarFire/CarFire/CarFire/Game.cs +++ b/CarFire/CarFire/CarFire/Game.cs @@ -250,6 +250,7 @@ namespace CarFire public void LoadContent(ContentManager contentManager) { mContentManager = contentManager; + menu = mContentManager.Load("menuFont"); } @@ -391,8 +392,14 @@ namespace CarFire } if (allCharactersSelected) { + State.mDisplay.Draw(spriteBatch); } + else + { + spriteBatch.GraphicsDevice.Clear(Color.Black); + spriteBatch.DrawString(menu, "Press Enter To Select A Character", new Vector2(30, 30), Color.RosyBrown); + } return CurrentFrameNumber; } @@ -401,7 +408,7 @@ namespace CarFire #region Private Variables - Display mDisplay; + SpriteFont menu; ContentManager mContentManager; NextInputs mInputs; diff --git a/CarFire/CarFire/CarFire/Human.cs b/CarFire/CarFire/CarFire/Human.cs index 5b4c6a0..3897491 100644 --- a/CarFire/CarFire/CarFire/Human.cs +++ b/CarFire/CarFire/CarFire/Human.cs @@ -45,8 +45,8 @@ namespace CarFire public void LoadContent(ContentManager contentManager) { - charModel = contentManager.Load("deselectBox"); //change to charModel when designed - projectileModel = contentManager.Load("emptySelectBox"); //change to a projectile model later + charModel = contentManager.Load("cs"); //change to charModel when designed + projectileModel = contentManager.Load("projectile"); //change to a projectile model later } -- 2.45.2