示例#1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);
            List <Card> cards = new List <Card>();

            cards.Add(new Card("1", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("2", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("3", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("4", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("5", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("6", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("7", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("8", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("9", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("10", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("11", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("12", "You got owned", Card.CardType.Reward, 100));
            myCardPile = new CardPile("TROLOLOLOLOLOLOLOLOLOLOLOL Pile ", cards);

            // TODO: use this.Content to load your game content here
        }
示例#2
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);
            List<Card> cards = new List<Card>();
            cards.Add(new Card("1", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("2", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("3", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("4", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("5", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("6", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("7", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("8", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("9", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("10", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("11", "You got owned", Card.CardType.Reward, 100));
            cards.Add(new Card("12", "You got owned", Card.CardType.Reward, 100));
            myCardPile = new CardPile("TROLOLOLOLOLOLOLOLOLOLOLOL Pile ", cards);

            // TODO: use this.Content to load your game content here
        }