Example #1
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            base.Draw(spriteBatch);

            fntMediumFont.DrawString(spriteBatch, "Conjunction", new Vector2(20, 20));

            if (sprFillLeft.Filled == false)
            {
                sprFillLeft.Texture = txrFillBlue;
                sprFillLeft.Draw(spriteBatch);
            }
            else
            {
                sprFillLeft.Texture = txrFilled;
                sprFillLeft.Draw(spriteBatch);
            }

            if (sprFillRight.Filled == false)
            {
                sprFillRight.Texture = txrFillRed;
                sprFillRight.Draw(spriteBatch);
            }
            else
            {
                sprFillRight.Texture = txrFilled;
                sprFillRight.Draw(spriteBatch);
            }

            Player.Draw(spriteBatch);
            //spriteBatch.Draw(txrWhite, sprPlayer.Bounds, Color.Green); //TODO add debug bounds drawing input

            spriteBatch.End();
        }
Example #2
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            base.Draw(spriteBatch);

            fntMediumFont.DrawString(spriteBatch, "Colors", new Vector2(20, 20));

            if (sprFill.Filled == false)
            {
                sprFill.Texture = txrFillRed;
                sprFill.Draw(spriteBatch);
            }
            else
            {
                sprFill.Texture = txrFilled;
                sprFill.Draw(spriteBatch);
            }

            Player.Draw(spriteBatch);
            //spriteBatch.Draw(txrWhite, sprPlayer.Bounds, Color.Green); //TODO figure out what this is supposed to be

            spriteBatch.End();
        }