Пример #1
0
        public MiswGame2008(bool fullscreen, int startLevel)
        {
            FileArchiverZip zip = new FileArchiverZip();

            zip.ZipExtName = ".bin";
            FileSys.AddArchiver(zip);
            window = new SDLWindow();
            window.SetCaption("DTF");
            window.BeginScreenTest();
            if (fullscreen)
            {
                window.TestVideoMode(640, 480, 32);
                window.TestVideoMode(640, 480, 16);
            }
            else
            {
                window.TestVideoMode(640, 480, 0);
            }
            window.EndScreenTest();
            graphics = new SdlGraphics(window);
            audio    = new SdlAudio();
            input    = new SdlInput(fullscreen);

            this.startLevel = startLevel;
        }
Пример #2
0
        public MiswGame2008(bool fullscreen, int startLevel)
        {
            FileArchiverZip zip = new FileArchiverZip();
            zip.ZipExtName = ".bin";
            FileSys.AddArchiver(zip);
            window = new SDLWindow();
            window.SetCaption("DTF");
            window.BeginScreenTest();
            if (fullscreen)
            {
                window.TestVideoMode(640, 480, 32);
                window.TestVideoMode(640, 480, 16);
            }
            else
            {
                window.TestVideoMode(640, 480, 0);
            }
            window.EndScreenTest();
            graphics = new SdlGraphics(window);
            audio = new SdlAudio();
            input = new SdlInput(fullscreen);

            this.startLevel = startLevel;
        }