Esempio n. 1
0
        public void Draw()
        {
            spriteBatch.Draw(AllWords.WordsLists[CategoryIndex][CurrentWordIndex].Image, new Vector2(320, 64), null, Color.White, 0,
                             new Vector2(0, 0), 1f, SpriteEffects.None, 0);
            spriteBatch.Draw(BackGround, new Vector2(0, 0), null, Color.White, 0,
                             new Vector2(0, 0), 1f, SpriteEffects.None, 0);
            HomeButton.Draw();
            ArrowRight.Draw();
            if (!UsedHint)
            {
                HintButton.Draw();
            }
            else
            {
                HintButtonUsed.Draw();
            }

            foreach (Block block in BlockList)
            {
                block.Draw();
            }
            foreach (Block block in EmptyList)
            {
                block.Draw();
            }
        }
Esempio n. 2
0
 public void Draw()
 {
     spriteBatch.Draw(Background, new Vector2(0, 0), null, Color.White, 0,
                      new Vector2(0, 0), 1f, SpriteEffects.None, 0);
     HomeButton.Draw();
     foreach (Block block in BlockList)
     {
         block.DrawBig();
     }
     foreach (Block block in HiddenList)
     {
         if (!block.IsSelected && !block.IsEmptyBlock)
         {
             block.DrawBig();
         }
     }
     CheckWin();
     if (DidWin)
     {
         spriteBatch.Draw(WinnerSplash, new Vector2(256, 144), null, Color.White, 0,
                          new Vector2(0, 0), 1f, SpriteEffects.None, 0);
         //NewButton = new MenuButton(new Vector2(480, 448), "NewButton", gameContent.arrorRight, spriteBatch, gameContent);
         NewButton.Draw();
     }
 }
Esempio n. 3
0
        public void Draw()
        {
            spriteBatch.Draw(Background, new Vector2(0, 0), null, Color.White, 0,
                             new Vector2(0, 0), 1f, SpriteEffects.None, 0);
            WordBox.Draw();
            for (int ii = 0; ii < PlayFieldWidth; ii++)
            {
                for (int jj = 0; jj < PlayFieldHeight; jj++)
                {
                    CurrentLetter2DArray[ii, jj].Draw();
                }
            }
            HomeButton.Draw();
            Drawable.Draw();

            if (Won)
            {
                spriteBatch.Draw(WinnerSplash, new Vector2(256, 144), null, Color.White, 0,
                                 new Vector2(0, 0), 1f, SpriteEffects.None, 0);
                NewButton = new MenuButton(new Vector2(480, 448), "NewButton", gameContent.arrorRight, spriteBatch, gameContent);
                NewButton.Draw();
            }
        }