Beispiel #1
0
        public override void Resize(int width, int height)
        {
            base.Resize(width, height);

            playerPos = new SKPoint(width / 3f, height / 2.5f);

            tutorial.Resize(width, height);
            gameOver.Resize(width, height);
        }
Beispiel #2
0
        public override void Resize(int width, int height)
        {
            base.Resize(width, height);

            playerPos = new SKPoint(width / 3f, height / 2.5f);

            tutorial.Resize(width, height);
            gameOver.Resize(width, height);

            // play + scores buttons
            var buttonSpace = (width - playButton.Size.Width - scoresButton.Size.Width) / 3f;
            var bb          = FlappyBirdGame.ButtonShadowBorder.Bottom;

            playButton.Location   = new SKPoint(buttonSpace, groundLevel - playButton.Size.Height + bb);
            buttonSpace          += playButton.Size.Width + buttonSpace;
            scoresButton.Location = new SKPoint(buttonSpace, groundLevel - scoresButton.Size.Height + bb);
        }