コード例 #1
0
        public override void Draw(GameTime gameTime)
        {
            switch (castle.Upgrade)
            {
            case 1:
            {
                castle0.Draw(gameTime);
                break;
            }

            case 2:
            {
                castle1.Draw(gameTime);
                break;
            }

            case 3:
            {
                castle2.Draw(gameTime);
                break;
            }

            case 4:
            {
                castle3.Draw(gameTime);
                break;
            }

            case 5:
            {
                castle4.Draw(gameTime);
                break;
            }

            case 6:
            {
                castle5.Draw(gameTime);
                break;
            }

            default:
            {
                castle0.Draw(gameTime);
                break;
            }
            }

            base.Draw(gameTime);
        }
コード例 #2
0
        public override void Draw(GameTime gameTime)
        {
            theGround.Draw(gameTime);
            theTrees.Draw(gameTime);
            theShrooms.Draw(gameTime);
            theRiver.Draw(gameTime);

            base.Draw(gameTime);
        }