Ejemplo n.º 1
0
    public void Draw()
    {
        _GameWindow.Clear(Color.White); //clearing the window
        Score timing = new Score(_GameWindow, _Score);

        timing.Draw(bonus);
        foreach (Robot robot in _Robots)
        {
            robot.Draw();  //drawing each robot on the screen
        }
        for (int i = 1; i <= _LivesRemaining.Count; i++)
        {
            _GameWindow.DrawBitmap(heart, 600 - (i * 50), 415, SplashKit.OptionScaleBmp(.1, .1));
        }
        _Player.Draw();                 //drawing the player on the screen
        Lives life = new Lives(_GameWindow);

        life.Draw();
        DrawLife();
        _GameWindow.Refresh(60);
    }