コード例 #1
0
ファイル: Program.cs プロジェクト: CaKlassen/Titanium
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (BaseGame game = new BaseGame())
     {
         game.Run();
     }
 }
コード例 #2
0
ファイル: BaseGame.cs プロジェクト: CaKlassen/Titanium
        /// <summary>
        /// The base constructor for the game.
        /// </summary>
        public BaseGame()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            instance = this;

            PartyUtils.loadPartyMembers();
            sceneManager = new SceneManager(this);

            // Set default window properties
            graphics.PreferredBackBufferWidth = SCREEN_WIDTH;
            graphics.PreferredBackBufferHeight = SCREEN_HEIGHT;
        }