コード例 #1
0
ファイル: ScratchGame.cs プロジェクト: tml/Scratch-Library
 public ScratchGame(ScratchGameAction initialize, ScratchGameHost host)
 {
     this.callback = initialize;
     this.host     = host;
     graphics      = new GraphicsDeviceManager(this);
     graphics.PreferredBackBufferWidth  = 480;
     graphics.PreferredBackBufferHeight = 360;
     Content.RootDirectory = "Content";
 }
コード例 #2
0
ファイル: ScratchGame.cs プロジェクト: tml/Scratch-Library
 public ScratchGameHost(ScratchGameAction initialize)
 {
     value = new ScratchGame(initialize, this);
 }
コード例 #3
0
ファイル: ScratchGame.cs プロジェクト: tml/Scratch-Library
 public static ScratchGameHost Create(ScratchGameAction initialize)
 {
     return(new ScratchGameHost(initialize));
 }