protected override void LoadContent() { DrawBatch = new SpriteBatch(GraphicsDevice); GhostGame = new ChangedStage(Content, DrawBatch); FPSFont = Content.Load <SpriteFont>("Data\\Font\\GhostFont"); // Mouse Graphic MousePointer = Content.Load <Texture2D>("Data\\Pointer"); MouseImage = Content.Load <Texture2D>("Data\\Cursor"); // LoadContent Graphic MainMenuFont = Content.Load <SpriteFont>("Data\\Font\\PreloadFont"); lv0Ground = Content.Load <Texture2D>("Data\\Ground-Level0"); lv1Ground = Content.Load <Texture2D>("Data\\Ground-Level1"); // Preview Video Player VideoLogo = Content.Load <Video>("Data\\Media\\Logo-PkAtPay"); TitlePlayer = new VideoPlayer(); TitlePlayer.IsLooped = false; TitlePlayer.Play(VideoLogo); // TODO: use this.Content to load your game content here PreContent.WorkerReportsProgress = true; PreContent.DoWork += new DoWorkEventHandler(InitializeMenu); PreContent.ProgressChanged += new ProgressChangedEventHandler(PreloadAppChanged); PreContent.RunWorkerCompleted += new RunWorkerCompletedEventHandler(PreloadAppCompleted); }
protected override void LoadContent() { DrawBatch = new SpriteBatch(GraphicsDevice); GhostGame = new ChangedStage(Content, DrawBatch); FPSFont = Content.Load<SpriteFont>("Data\\Font\\GhostFont"); // Mouse Graphic MousePointer = Content.Load<Texture2D>("Data\\Pointer"); MouseImage = Content.Load<Texture2D>("Data\\Cursor"); // LoadContent Graphic MainMenuFont = Content.Load<SpriteFont>("Data\\Font\\PreloadFont"); lv0Ground = Content.Load<Texture2D>("Data\\Ground-Level0"); lv1Ground = Content.Load<Texture2D>("Data\\Ground-Level1"); // Preview Video Player VideoLogo = Content.Load<Video>("Data\\Media\\Logo-PkAtPay"); TitlePlayer = new VideoPlayer(); TitlePlayer.IsLooped = false; TitlePlayer.Play(VideoLogo); // TODO: use this.Content to load your game content here PreContent.WorkerReportsProgress = true; PreContent.DoWork += new DoWorkEventHandler(InitializeMenu); PreContent.ProgressChanged += new ProgressChangedEventHandler(PreloadAppChanged); PreContent.RunWorkerCompleted += new RunWorkerCompletedEventHandler(PreloadAppCompleted); }