Beispiel #1
0
        /// <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.
            mSpriteBatch     = new SpriteBatch(GraphicsDevice);
            mStartSceneSound = ContentHolder.LoadSong("Sounds/StartSceneSound");
            mPlaySceneSound  = ContentHolder.LoadSong("Sounds/PlaySceneSound");

            // TODO: use this.Content to load your game content here
        }
Beispiel #2
0
        public Game1()
        {
            mGraphics             = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            MediaPlayer.IsRepeating = true;
            ContentHolder.SetContentManager(Content);

            mGraphics.PreferredBackBufferWidth  = 1920;
            mGraphics.PreferredBackBufferHeight = 1080;
            mGraphics.ToggleFullScreen();
            mGraphics.ApplyChanges();
        }
Beispiel #3
0
 static Cursor()
 {
     msInstance.mTexture =
         ContentHolder.LoadTexture("Etc/cursor_pointerFlat_shadow");
 }