示例#1
0
文件: Game1.cs 项目: dnguyen/Aurora
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            startScreen = new StartScreen(this, spriteBatch, Content.Load<SpriteFont>("Fonts/menuFont"));
            Components.Add(startScreen);
            startScreen.Hide();

            actionScreen = new ActionScreen(this, spriteBatch);
            Components.Add(actionScreen);
            actionScreen.LoadContent(Content);
            actionScreen.Hide();

            activeScreen = startScreen;
            activeScreen.Show();
        }
示例#2
0
文件: Game1.cs 项目: dnguyen/Aurora
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            startScreen = new StartScreen(this, spriteBatch, Content.Load <SpriteFont>("Fonts/menuFont"));
            Components.Add(startScreen);
            startScreen.Hide();

            actionScreen = new ActionScreen(this, spriteBatch);
            Components.Add(actionScreen);
            actionScreen.LoadContent(Content);
            actionScreen.Hide();

            activeScreen = startScreen;
            activeScreen.Show();
        }