protected override void LoadScreenContent(Microsoft.Xna.Framework.Content.ContentManager content) { background = new Background(content); road = new Road(content); car = new Car(new Vector2(120, 599), content, soundEffects, input, ActionMoveLeft, ActionMoveRight, 120, 280); hazards = new Hazards(content, 5, 120, 280); }
protected override void LoadScreenContent(ContentManager content) { background = new Background(content); titleText = new Text(font, "Drive & Dodge!", new Vector2(0, (int)(ScreenHeight/3)), Color.Brown, Color.Beige, Text.Alignment.Horizontal, new Rectangle(0, 0, ScreenWidth, 0)); startButton = new Button(content, "Start Game", new Vector2(30, 500), Color.BurlyWood); exitButton = new Button(content, "Exit", new Vector2(30, 650), Color.BurlyWood ); }