public override void Draw(SpriteBatch spriteBatch)
 {
     dialog.Draw(spriteBatch);
     notification.Draw(spriteBatch);
     yes.Draw(spriteBatch);
     no.Draw(spriteBatch);
 }
Ejemplo n.º 2
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     notification.Draw(spriteBatch);
     playAgain.Draw(spriteBatch);
     returnRoom.Draw(spriteBatch);
     mainMenu.Draw(spriteBatch);
 }
Ejemplo n.º 3
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     background.Draw(spriteBatch);
     title.Draw(spriteBatch);
     newGame.Draw(spriteBatch);
     setting.Draw(spriteBatch);
     exit.Draw(spriteBatch);
 }
Ejemplo n.º 4
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     background.Draw(spriteBatch);
     musicControl.Draw(spriteBatch);
     soundControl.Draw(spriteBatch);
     title.Draw(spriteBatch);
     apply.Draw(spriteBatch);
     cancel.Draw(spriteBatch);
 }
Ejemplo n.º 5
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            background.Draw(spriteBatch);

            title.Draw(spriteBatch);

            multiplayerTitle.Draw(spriteBatch);
            multiplayerEnabled.Draw(spriteBatch);
            multiplayerDisabled.Draw(spriteBatch);

            player.Draw(spriteBatch);
            previousPlayer.Draw(spriteBatch);
            nextPlayer.Draw(spriteBatch);

            playerTypeTitle.Draw(spriteBatch);


            if (RoomSetting.Instance.MultiplayerMode)
            {
                player2.Draw(spriteBatch);
                previousPlayer2.Draw(spriteBatch);
                nextPlayer2.Draw(spriteBatch);
                player2TypeTitle.Draw(spriteBatch);
            }
            else
            {
                numOfBotsTitle.Draw(spriteBatch);
                numOfBotsEntity.Draw(spriteBatch);
                decreaseNumOfBots.Draw(spriteBatch);
                increaseNumOfBots.Draw(spriteBatch);
                previousMap.Draw(spriteBatch);
                nextMap.Draw(spriteBatch);
            }

            map.Draw(spriteBatch);

            fight.Draw(spriteBatch);
            returnToMenu.Draw(spriteBatch);
        }
Ejemplo n.º 6
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     LoadingText.Draw(spriteBatch);
 }
Ejemplo n.º 7
0
        public override void Draw(SpriteBatch _spriteBatch)
        {
            if (isPause)
            {
                spriteBatch.Begin();
                pauseScreen.Draw(spriteBatch);
                continueGame.Draw(spriteBatch);
                returnToMenu.Draw(spriteBatch);
                setting.Draw(spriteBatch);
                if (!gameOperator.IsMultiplayer)
                {
                    save.Draw(spriteBatch);
                }
                spriteBatch.End();
            }
            else
            {
                if (RoomSetting.Instance.MapSize == 21)
                {
                    spriteBatch.Begin();
                }
                else
                {
                    spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend,
                                      null,
                                      null,
                                      null,
                                      null,
                                      camera.GetTransformation());
                }

                var map = gameOperator.Map;
                for (int i = 0; i < map.GetLength(0); i++)
                {
                    for (int j = 0; j < map.GetLength(1); j++)
                    {
                        map[i, j].Draw(spriteBatch);
                    }
                }

                foreach (var bomb in gameOperator.Bombs)
                {
                    bomb.Draw(spriteBatch);
                }

                gameOperator.Player.Draw(spriteBatch);

                if (gameOperator.IsMultiplayer)
                {
                    gameOperator.Player2.Draw(spriteBatch);
                }
                else
                {
                    foreach (var bot in gameOperator.Bots)
                    {
                        bot.Draw(spriteBatch);
                    }
                }

                spriteBatch.End();

                if (gameOperator.MiniMap.IsEnabled)
                {
                    spriteBatch.Begin();
                    gameOperator.MiniMap.Draw(spriteBatch);
                    spriteBatch.End();
                }

                if (gameOperator.IsMultiplayer)
                {
                    spriteBatch.Begin();
                    playerOneInstruction.Draw(spriteBatch);
                    playerTwoInstruction.Draw(spriteBatch);
                    spriteBatch.End();
                }
            }
        }
Ejemplo n.º 8
0
 public void Draw(SpriteBatch spriteBatch)
 {
     title.Draw(spriteBatch);
     progress.Draw(spriteBatch);
     control.Draw(spriteBatch);
 }
Ejemplo n.º 9
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     background.Draw(spriteBatch);
     loadingTitle.Draw(spriteBatch);
 }