Changeset 10 for Code/oMaE/oMaE/Game1.cs


Ignore:
Timestamp:
01/26/2012 02:27:10 PM (4 years ago)
Author:
acarter
Message:

Added slider and began traffic game

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Code/oMaE/oMaE/Game1.cs

    r9 r10  
    2323        GameState gamestate = new GameState();
    2424        Match match = new Match();
     25        FractionalTraffic traffic = new FractionalTraffic();
    2526        public Game1()
    2627        {
     
    4041            this.IsMouseVisible = true;
    4142            match.Initialize();
     43            traffic.Initialize();
    4244            base.Initialize();
    4345        }
     
    5254            spriteBatch = new SpriteBatch(GraphicsDevice);
    5355            match.LoadContent(Content);
     56            traffic.LoadContent(Content);
    5457            // TODO: use this.Content to load your game content here
    5558        }
     
    7679            gamestate.Update(gameTime, Keyboard.GetState(), Mouse.GetState());
    7780            // TODO: Add your update logic here
    78             match.Update(gamestate);
     81            // match.Update(gamestate);
     82            traffic.Update(gamestate);
    7983            base.Update(gameTime);
    8084        }
     
    8892            GraphicsDevice.Clear(Color.CornflowerBlue);
    8993
    90             match.Draw(spriteBatch, gamestate);
     94            // match.Draw(spriteBatch, gamestate);
     95            traffic.Draw(spriteBatch, gamestate);
    9196            // TODO: Add your drawing code here
    9297
Note: See TracChangeset for help on using the changeset viewer.