Exemple #1
0
        private void SelectGUIOperation(int index)
        {
            if (guiSelected != null)
            {
                guiSelected.GetSprite().SetMultiplyTint(Vector4.One);
            }

            guiSelectedIndex = index;
            guiSelected      = guiToSelect[index];
            guiSelected.GetSprite().SetMultiplyTint(0, 2, 0, 1);
        }
Exemple #2
0
        public override void Update()
        {
            base.Update();

            float shake = (float)Math.Sin(shakeCounter) * WIDTH_SHAKE;

            labelWin.GetSprite().scale += new Vector2(shake) * Game.DeltaTime;
            shakeCounter += Game.DeltaTime * SPEED_SHAKE_MULTIPLIER;

            PhysicsManager.Update();
            UpdateManager.Update();
            BombsManager.Update();
        }
Exemple #3
0
        public void SetNumber(string number)
        {
            for (int i = 0; i < this.number.Count; i++)
            {
                this.number[i].Destroy();
            }

            this.number.Clear();

            Vector2 startPos = spritePosition;

            for (int i = 0; i < number.Length; i++)
            {
                GUIItem currNum           = new GUIItem(startPos, "number_" + number[i]);
                currNum.GetSprite().scale = scale;

                this.number.Add(currNum);
                startPos += new Vector2(1 * scale.X, 0);
            }
        }