コード例 #1
0
        protected override void Initialize()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);
            Device = graphics.GraphicsDevice;

            //Initialize game info:
            graphics.PreferredBackBufferWidth = 620;
            graphics.PreferredBackBufferHeight = 500;
            graphics.IsFullScreen = false;
            graphics.ApplyChanges();
            Window.Title = "Space Invaders by Sandi Dusic";

            //Initialize the static classes:
            ObjectManager.Initialize();

            //Initialize the debug console:
            Console = new DebugConsole(spriteBatch, new Vector2(0, 0));

            base.Initialize();
        }
コード例 #2
0
ファイル: Testing.cs プロジェクト: SandiDusic/Sandi_s_Way
        protected override void Initialize()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);
            device = graphics.GraphicsDevice;

            //Initialize the game:
            graphics.PreferredBackBufferWidth = 500;
            graphics.PreferredBackBufferHeight = 500;
            graphics.IsFullScreen = false;
            graphics.ApplyChanges();
            Window.Title = "Testing the Sandi's Way wrapper";
            IsMouseVisible = true;

            //Initialize the static classes:
            ObjectManager.Initialize();

            //Initialize the debug console:
            Console = new DebugConsole(spriteBatch, new Vector2(0, 0));
            DebuggConsoleFont = Content.Load<SpriteFont>("DebuggConsoleFont");
            Console.Font = DebuggConsoleFont;

            base.Initialize();
        }
コード例 #3
0
 public _line(string text, DebugConsole console)
 {
     Text = text;
     Time = DefaultTime;
     _console = console;
 }