Esempio n. 1
0
        public void update(GameTime gameTime, TouchCollection touches)
        {
            if (currentModel != null)
            {
                base.update(gameTime);
                if (tweener != null)
                {
                    tweener.Update(gameTime);
                    backShape.alpha = tweener.Position / 100;
                    position.Y      = tweener.Position;

                    mainImage.position  = position + new Vector2(33 + 75 - mainImage.texture.Width / 2, 82 + 70 - mainImage.texture.Height / 2);
                    backButton.position = position + new Vector2(10 - 20, 10 - 20);
                    buyButton.position  = position + new Vector2(192, 174);

                    firstSymbol.position = position + new Vector2(190, 67);;
                    secSymbol.position   = position + new Vector2(190, 97);
                    thrSymbol.position   = position + new Vector2(190, 127);

                    star.position = position + new Vector2(35, 45);

                    backButton.updateButton(gameTime, touches);
                    buyButton.updateButton(gameTime, touches);
                }
            }
        }
        public void update(GameTime gameTime, TouchCollection touches)
        {
            base.update(gameTime);
            if (tweener != null)
            {
                tweener.Update(gameTime);
                backShape.alpha = tweener.Position / 100;
                position.Y      = tweener.Position;

                backButton.position = position + new Vector2(10 - 20, 10 - 20);
                backButton.updateButton(gameTime, touches);
                cheatButton.updateButton(gameTime, touches);
            }
        }
Esempio n. 3
0
        public void update(GameTime gameTime, TouchCollection touches)
        {
            base.update(gameTime);
            if (tweener != null)
            {
                tweener.Update(gameTime);
                //backShape.alpha = tweener.Position / 100;
                position.Y = tweener.Position;

                mainImage.position  = position + new Vector2(33 + 75 - mainImage.texture.Width / 2, 82 + 70 - mainImage.texture.Height / 2);
                backButton.position = position + new Vector2(10 - 20, 10 - 20);

                backButton.updateButton(gameTime, touches);
                //twButton.position = position + new Vector2(80 + 40, 260);
                // fbButton.position = position + new Vector2(180 + 40, 260);
            }
        }