Esempio n. 1
0
        protected override void LoadContent()
        {
            stage = new Stage();
            stage.StageWidth = graphics.GraphicsDevice.Viewport.Width;
            stage.StageHeight = graphics.GraphicsDevice.Viewport.Height;
            stage.stage = stage;

            stage.AddChild(rootSprite);

            #if __MOBILE__ || DEBUG
            debugFont = Content.Load<SpriteFont>("MainFont");
            #endif

            spriteBatch = new SpriteBatch(GraphicsDevice);
        }
Esempio n. 2
0
 private void AddedToStage(Event e)
 {
     stage = parent.stage;
 }