コード例 #1
0
 public override void Initialize()
 {
     ScreenArea = new Rectangle(Game.GraphicsDevice.Viewport.X, Game.GraphicsDevice.Viewport.Y, Game.GraphicsDevice.Viewport.Width, Game.GraphicsDevice.Viewport.Height);
     DrawArea = new Rectangle(
         ScreenArea.X + ((int)((ScreenArea.Width - 800) / 2f)),
         ScreenArea.Y + ((int)((ScreenArea.Height - 600) / 2f)),
         800,
         600
         );
     splashColor = Color.Black;
     scriptManager = new Scripting.ScriptManager();
     scriptManager.Execute(SplashAnimation);
 }
コード例 #2
0
 public override void Initialize()
 {
     ScreenArea = new Rectangle(Game.GraphicsDevice.Viewport.X, Game.GraphicsDevice.Viewport.Y, Game.GraphicsDevice.Viewport.Width, Game.GraphicsDevice.Viewport.Height);
     DrawArea   = new Rectangle(
         ScreenArea.X + ((int)((ScreenArea.Width - 800) / 2f)),
         ScreenArea.Y + ((int)((ScreenArea.Height - 600) / 2f)),
         800,
         600
         );
     splashColor   = Color.Black;
     scriptManager = new Scripting.ScriptManager();
     scriptManager.Execute(SplashAnimation);
 }