Esempio n. 1
0
        public Game(VideoMode mode, bool fullscreen)
        {
            Styles st = Styles.Titlebar;

            //if (fullscreen) st = Styles.Fullscreen;
            window = new RenderWindow(new VideoMode(640, 480), "", st);
            window.EnableKeyRepeat(false);

            window.KeyPressed  += new EventHandler <KeyEventArgs>(window_KeyPressed);
            window.KeyReleased += new EventHandler <KeyEventArgs>(window_KeyReleased);
        }