/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { // TODO: Add your initialization logic here audio = new AudioManager(Content); camera = new Camera(GraphicsDevice.Viewport.AspectRatio); world = new World(Content, GraphicsDevice); data = new GameData(Content, GraphicsDevice, audio, world); screen = new TitleScreen(Content, GraphicsDevice, audio, data); myAction = new ActionScreen(Content, GraphicsDevice, audio, data, camera, world); audio.playBackground(0); fading = false; fadeOut = true; fadeFrames = 0; maxFadeFrames = 30; fadeRectangle = new Rectangle(0, 0, 1024, 768); base.Initialize(); }