コード例 #1
0
ファイル: OgmoXNADemoGame.cs プロジェクト: endy/OgmoXNA
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(this.GraphicsDevice);

            // Load our level using the game's content manager.  The project specified in the content processor
            // properties for this level, along with all the texture assets, will be built and loaded.
            level = new Level(this.Content.Load<OgmoLevel>(@"levels\demo\demoLevel"));
            // Load the level's font so we can show off how many coins we have gathered.
            level.Load(this.Content);
        }