Exemplo n.º 1
0
 protected override void Initialize()
 {
     base.Initialize();
     Camera = new GameComponents.Camera.Camera2d(this);
     GameComponents.Audio.Player.Initialize(this);
     menuHandler = new MenuHandler(this);
     gameHandler = new GameHandler(this, Camera);
 }
Exemplo n.º 2
0
 public void Draw(GameTime gameTime, SpriteBatch spriteBatch, Camera2d camera)
 {
     spriteBatch.Begin(SpriteSortMode.BackToFront,
                 BlendState.AlphaBlend,
                 null,
                 null,
                 null,
                 null,
                 camera.get_transformation());
     spriteBatch.Draw(Texture, Position, Color.White);
     spriteBatch.End();
 }
Exemplo n.º 3
0
 public GameHandler(Game game, Camera2d camera)
     : base(game)
 {
     Board = new GameBoard(game);
 }
Exemplo n.º 4
0
 public abstract void Draw(GameTime gameTime, SpriteBatch spriteBatch, Camera2d camera);