Ejemplo n.º 1
0
 private void DrawButton(SpriteBatch spriteBatch)
 {
     m_StartButton.Draw(spriteBatch, -0.2f);
     m_ContinueButton.Draw(spriteBatch, -0.1f);
     m_ExitButton.Draw(spriteBatch, 0);
     m_OptionButton.Draw(spriteBatch);
 }
Ejemplo n.º 2
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     spriteBatch.Begin();
     spriteBatch.Draw(Story[m_StoryNumber], new Vector2(0, 0), null, Color.White, 0, Vector2.Zero, 0.5f, SpriteEffects.None, 0);
     m_TapButton.Draw(spriteBatch);
     m_SkipButton.Draw(spriteBatch);
     spriteBatch.End();
 }
Ejemplo n.º 3
0
 private void DrawStageButton(SpriteBatch spriteBatch)
 {
     m_SecondStage.Draw(spriteBatch);
     m_FirstStage.Draw(spriteBatch);
     m_ThirdStage.Draw(spriteBatch);
     m_FourthStage.Draw(spriteBatch);
     m_FinalStage.Draw(spriteBatch);
 }
Ejemplo n.º 4
0
 private void DrawMapButton(SpriteBatch spriteBatch)
 {
     m_PolarBear.Draw(spriteBatch);
     m_Armadillo.Draw(spriteBatch);
     m_Panda.Draw(spriteBatch);
     m_Frog.Draw(spriteBatch);
     m_Rhinoceros.Draw(spriteBatch);
     m_Antelope.Draw(spriteBatch);
     m_Tuna.Draw(spriteBatch);
 }
Ejemplo n.º 5
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     spriteBatch.Begin();
     spriteBatch.Draw(m_BackgroundImage, new Vector2(0, 0), null, Color.White, 0, Vector2.Zero, 0.5f, SpriteEffects.None, 0);
     DrawUI(spriteBatch);
     DrawMapButton(spriteBatch);
     if (m_OpenSetting)
     {
         spriteBatch.Draw(m_SettingBackground, new Vector2(50, 50), null, Color.White, 0, Vector2.Zero, 0.43f, SpriteEffects.None, 0);
         m_SettingCancelButton.Draw(spriteBatch);
     }
     spriteBatch.End();
 }
Ejemplo n.º 6
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Begin();
            spriteBatch.Draw(m_BackgroundImage, new Vector2(0, 0), null, Color.White, 0, Vector2.Zero, 0.5f, SpriteEffects.None, 0);
            spriteBatch.Draw(m_PpuoooImage, new Vector2(150, 100), null, Color.White, 0, Vector2.Zero, 0.65f, SpriteEffects.None, 0);
            spriteBatch.Draw(m_ResultImage, new Vector2(GraphicsDeviceManager.DefaultBackBufferWidth / 2 - m_ResultImage.Width / 4, 20), null, Color.White, 0, Vector2.Zero, 0.5f, SpriteEffects.None, 0);
            spriteBatch.Draw(m_LeafImage, new Vector2(GraphicsDeviceManager.DefaultBackBufferWidth / 2 + m_LeafImage.Width / 2, 200), null, Color.White, 0, Vector2.Zero, 0.5f, SpriteEffects.None, 0);
            spriteBatch.Draw(m_FullBeadImage, new Vector2(GraphicsDeviceManager.DefaultBackBufferWidth / 2 + m_FullBeadImage.Width / 2, 270), null, Color.White, 0, Vector2.Zero, 0.5f, SpriteEffects.None, 0);

            spriteBatch.Draw(m_EmptyBeadImage, new Vector2(GraphicsDeviceManager.DefaultBackBufferWidth / 2 + m_EmptyBeadImage.Width / 2, 270), new Rectangle(0, 0, m_EmptyBeadImage.Width, tempBead), Color.White, 0, Vector2.Zero, 0.5f, SpriteEffects.None, 0);
            spriteBatch.Draw(m_Success, new Vector2(400, 100), null, Color.White, 0, Vector2.Zero, 0.7f, SpriteEffects.None, 0);
            spriteBatch.DrawString(m_Font, Convert.ToString(m_NumberOfLeaf), new Vector2(GraphicsDeviceManager.DefaultBackBufferWidth / 2 + (float)(m_LeafImage.Width * 1.2), 200), Color.White);
            spriteBatch.DrawString(m_Font, Convert.ToString(100 - tempBead), new Vector2(GraphicsDeviceManager.DefaultBackBufferWidth / 2 + (float)(m_EmptyBeadImage.Width * 1.2), 270), Color.White);

            DrawUI(spriteBatch);
            if (m_OpenSetting)
            {
                spriteBatch.Draw(m_SettingBackground, new Vector2(50, 50), null, Color.White, 0, Vector2.Zero, 0.43f, SpriteEffects.None, 0);
                m_SettingCancelButton.Draw(spriteBatch);
            }
            spriteBatch.End();
        }
Ejemplo n.º 7
0
 private void DrawUI(SpriteBatch spriteBatch)
 {
     m_HomeButton.Draw(spriteBatch);
     m_OptionButton.Draw(spriteBatch);
     m_Resetbutton.Draw(spriteBatch);
 }