public static void main(String[] args) {

        GLCapabilities caps = new GLCapabilities(GLProfile.get(GLProfile.GL2ES2));

        caps.setBackgroundOpaque(false);
        GLWindow glWindow = GLWindow.create(caps);

        glWindow.setTitle("Ducking hipster");
        glWindow.setSize(WIDTH, HEIGHT);
        glWindow.setUndecorated(false);
        glWindow.setPointerVisible(true);
        glWindow.setVisible(true);

        glWindow.addGLEventListener(new Main());
        glWindow.addKeyListener(new KeyListener() {

            @Override
            public void keyTyped(KeyEvent key) {
                if (key.getKeyCode() == KeyEvent.VK_SPACE) {

                    Main.game.reset();
                }
            }

            @Override
            public void keyReleased(KeyEvent key) {
                switch (key.getKeyCode()) {
                case KeyEvent.VK_LEFT:
                    game.player.direction.x -= 1f;
                    break;
                case KeyEvent.VK_RIGHT:
                    game.player.direction.x += 1f;
                    break;
                }
                if (game.player.direction.x > 1) game.player.direction.x = 1f;
                if (game.player.direction.x < -1) game.player.direction.x = -1f;

            }

            @Override
            public void keyPressed(KeyEvent key) {
                switch (key.getKeyCode()) {
                case KeyEvent.VK_LEFT:
                    game.player.direction.x += 1f;
                    break;
                case KeyEvent.VK_RIGHT:
                    game.player.direction.x -= 1f;
                    break;
                }
                if (game.player.direction.x > 1) game.player.direction.x = 1f;
                if (game.player.direction.x < -1) game.player.direction.x = -1f;
            }
        });
        Animator animator = new Animator(glWindow);
        animator.add(glWindow);
        animator.start();
    }