//For GameState in STATE_GAME
 public void Draw(GameTime gameTime, World world, GuiController gui)
 {
     spriteBatch.Begin(transformMatrix: camera.GetViewMatrix());
     world.Draw(spriteBatch);
     gui.Draw(gameTime);
     spriteBatch.End();
 }
Ejemplo n.º 2
0
 public GameCore()
 {
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     contentManager        = new ContentManager();
     drawingController     = new DrawingController();
     cameraController      = new CameraController();
     logicController       = new LogicController();
     guiController         = new GuiController(this, world);
 }
Ejemplo n.º 3
0
 public void Update(GameCore game, World world, GameTime gameTime, GuiController guiController)
 {
     input.Update(game, world, gameTime);
     guiController.Update(gameTime);
 }
Ejemplo n.º 4
0
 public void Update(GameTime gameTime, GuiController guiController)
 {
     guiController.Update(gameTime);
 }
 //For GameState in STATE_TITLE
 public void Draw(GameTime gameTime, GuiController gui)
 {
     gui.Draw(gameTime);
 }