コード例 #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);
        }
コード例 #2
0
ファイル: DisplayObject.cs プロジェクト: Morozov-5F/MonoFlash
 private void AddedToStage(Event e)
 {
     stage = parent.stage;
 }