Ejemplo n.º 1
0
 public override void gameRender()
 {
     //screen.Draw(ball.asset , ball.position, white);
     ball.draw();
     ball2.draw();
     t1.draw(20, 20, Microsoft.Xna.Framework.Graphics.Color.Red);
     t1 = new text(this, "testFont", net.Message);
 }
Ejemplo n.º 2
0
 public override void gameRender()
 {
     ball.draw();
     leftPaddle.draw();
     rightPaddle.draw();
     title.draw((int)(200 - title.getLength() / 2), 10, Microsoft.Xna.Framework.Graphics.Color.White);
     playerScore.draw(0, 10, Microsoft.Xna.Framework.Graphics.Color.White);
     computerScore.draw((int)(400 - computerScore.getLength2()), 10, Microsoft.Xna.Framework.Graphics.Color.White);
 }
Ejemplo n.º 3
0
 public override void gameRender()
 {
     //draw everything
     sand.draw();
     wallLeft.draw();
     wallRight.draw();
     leftShell.draw();
     rightShell.draw();
     bottomPost.draw();
     ball.draw();
     leftScore.draw(10, 10, Microsoft.Xna.Framework.Graphics.Color.Red);
     rightScore.draw((int)(400 - rightScore.getLength2()), 10, Microsoft.Xna.Framework.Graphics.Color.Red);
     state.draw((int)(200 - state.getLength2() / 2), 10, Microsoft.Xna.Framework.Graphics.Color.Red);
 }
Ejemplo n.º 4
0
        public override void gameRender()
        {
            if (gameOver)
            {
            }
            else
            {
                road.draw();
                finalStatus.draw(0, 50, Microsoft.Xna.Framework.Graphics.Color.Red);

                line1.draw();
                line2.draw();
                line3.draw();
                line4.draw();
                kid1.draw();
                kid2.draw();
                car.draw();
                timer.draw(10, 10, Microsoft.Xna.Framework.Graphics.Color.Red);
                flag.draw();
            }
        }
Ejemplo n.º 5
0
 public override void gameRender()
 {
     if (stage == 0)
     {
         state.draw(10, 10, Microsoft.Xna.Framework.Graphics.Color.Red);
         state1.draw(10, (int)(state.getHeight() + 10), Microsoft.Xna.Framework.Graphics.Color.Red);
         netState.draw(10, (int)(state1.getHeight() + state1.getHeight()), Microsoft.Xna.Framework.Graphics.Color.Red);
     }
     else if (stage == 3)//game stage
     {
         //draw everything
         sand.draw();
         wallLeft.draw();
         wallRight.draw();
         leftShell.draw();
         rightShell.draw();
         bottomPost.draw();
         ball.draw();
         leftScore.draw(10, 10, Microsoft.Xna.Framework.Graphics.Color.Red);
         rightScore.draw((int)(400 - rightScore.getLength2()), 10, Microsoft.Xna.Framework.Graphics.Color.Red);
         state.draw((int)(200 - state.getLength2() / 2), 10, Microsoft.Xna.Framework.Graphics.Color.Red);
     }
 }
Ejemplo n.º 6
0
 public override void gameRender()
 {
     Deadman1.draw();
 }