static void Main(string[] args) { Game game = new Cricket(); game.play(); Console.WriteLine(); game = new Football(); game.play(); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); // TODO: use this.Content to load your game content here Assets.LoadContent(Content); Assets.CreatePixel(GraphicsDevice); football = new Football(); c = new Competitor(football); p = new Player(); }
public static void Demo() { Football f = new Football(); f.Play(); Baseball b = new Baseball(); b.Play(); Console.Read(); }
static void Main(string[] args) { Game game = new Racing(); game.play(); Console.WriteLine(); game = new Basketball(); game.play(); Console.WriteLine(); game = new Football(); game.play(); Console.Read(); }