public MainClass()
    {
        //display the splash screen and determine network status
        splash = new SplashScreen(this);
        splash.ShowDialog();

        try {
            game = new GameClass(fullScreen, gameFormSize, enableNetwork);
        }
        catch(DirectXException) {
            return;
        }
        if( game.CreateGraphicsSample() )
            game.Run();
    }
示例#2
0
    public MainClass()
    {
        //display the splash screen and determine network status
        splash = new SplashScreen(this);
        splash.ShowDialog();

        try {
            game = new GameClass(fullScreen, gameFormSize, enableNetwork);
        }
        catch (DirectXException) {
            return;
        }
        if (game.CreateGraphicsSample())
        {
            game.Run();
        }
    }