Exemple #1
0
        private void Playground_ContentRendered(object sender, EventArgs e)
        {
            Background = new ImageBrush
            {
                ImageSource = new BitmapImage(new Uri(System.IO.Path.GetFullPath("Assets/Images/earthBackgr.jpg"), UriKind.Absolute))
            };
            GamePaddle = Paddle.getInstance(GameArea);
            GamePaddle.Draw(GameArea);
            PingPongBall.Draw(GameArea);

            bdrWelcomePanel.Visibility = Visibility.Visible;
        }
Exemple #2
0
 private void GameTicker_Tick(object sender, EventArgs e)
 {
     PingPongBall.Move(GamePaddle);
     PingPongBall.Draw(GameArea);
     DetectCollision();
 }