Exemplo n.º 1
0
        public Application(string title = "Tetris", Styles style = Styles.Close)
        {
            window = new RenderWindow(new VideoMode(WindowWidth, WindowHeight), title, style);

            sceneManager = new SceneManager();

            window.KeyPressed += inputManager.OnKeyPressed;
            eventSystem.Subscribe(EventType.InputEscape, OnQuit);
            window.Closed += OnWindowClosed;

            window.SetKeyRepeatEnabled(false);
            window.SetMouseCursorVisible(false);

            window.SetIcon(48, 48, IconGenerator.IconToBytes("Art/icon.png"));
        }