public override void Draw(SpriteBatch spriteBatch)
 {
     dialog.Draw(spriteBatch);
     notification.Draw(spriteBatch);
     yes.Draw(spriteBatch);
     no.Draw(spriteBatch);
 }
Exemple #2
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     background.Draw(spriteBatch);
     title.Draw(spriteBatch);
     newGame.Draw(spriteBatch);
     setting.Draw(spriteBatch);
     exit.Draw(spriteBatch);
 }
Exemple #3
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);
 }
Exemple #4
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     background.Draw(spriteBatch);
     //title.Draw(spriteBatch);
     if (isContinueDisplay)
     {
         continueGame.Draw(spriteBatch);
     }
     newGame.Draw(spriteBatch);
     setting.Draw(spriteBatch);
     exit.Draw(spriteBatch);
 }
Exemple #5
0
        public void Draw(SpriteBatch spriteBatch)
        {
            foreach (var mapCell in map)
            {
                mapCell.Draw(spriteBatch);
            }

            playerCharacter.Draw(spriteBatch);

            foreach (var bot in bots)
            {
                bot.Draw(spriteBatch);
            }

            foreach (var bomb in bombs)
            {
                bomb.Draw(spriteBatch);
            }
        }
Exemple #6
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);
        }
Exemple #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();
                }
            }
        }
Exemple #8
0
 public void Draw(SpriteBatch spriteBatch)
 {
     title.Draw(spriteBatch);
     progress.Draw(spriteBatch);
     control.Draw(spriteBatch);
 }
Exemple #9
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     background.Draw(spriteBatch);
     loadingTitle.Draw(spriteBatch);
 }