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); }
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); } }