Example #1
0
        public void DrawCard(MainNode node)
        {
            var se = Sound.Load(@"resources/card-put.ogg", true);

            Engine.Sound.Play(se);

            var card = Deck.Draw();

            Hand.Add(card);
            card.Position = new Vector2F(100 + 100 * Hand.Count, 370);
            card.ZOrder   = Hand.Count;
            node.AddChildNode(card);
        }
Example #2
0
        public Card FirstDraw(MainNode node)
        {
            var se = Sound.Load(@"resources/card-put.ogg", true);

            Engine.Sound.Play(se);

            var card = Deck.Draw();

            Hand.Add(card);
            card.Position = new Vector2F(100 + 100 * Hand.Count, 150);
            card.ZOrder   = Hand.Count;

            card.IsReverse = true;
            node.AddChildNode(card);
            return(card);
        }