public static void initBase() throws LWJGLException {
        if(System.getProperties().containsKey(Game.CMDLINE_FPS)) {
            fps = Integer.parseInt(System.getProperty(Game.CMDLINE_FPS));
        }
        else {
            fps = FPS;
        }

        if(System.getProperties().containsKey(Preferences.CMDLINE_FILENAME)) {
            Preferences.restoreAll(System.getProperty(Preferences.CMDLINE_FILENAME));
        }
        else {
            Preferences.restoreAll();
        }
        Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
            @Override
            public void run() {
                if (System.getProperties().containsKey(Preferences.CMDLINE_FILENAME)) {
                    Preferences.saveAll(System.getProperty(Preferences.CMDLINE_FILENAME));
                } else {
                    Preferences.saveAll();
                }
            }
        }));

        if(System.getProperties().containsKey(Game.CMDLINE_WINDOW_NAME)) {
            Display.setTitle(System.getProperty(Game.CMDLINE_WINDOW_NAME));
        }
        else {
            Display.setTitle(Game.WINDOW_NAME);
        }

        int width = Game.WINDOW_WIDTH;
        int height = Game.WINDOW_HEIGHT;
        if(System.getProperties().containsKey(Game.CMDLINE_WINDOW_WIDTH)) {
            width = Integer.parseInt(System.getProperty(Game.CMDLINE_WINDOW_WIDTH));
        }
        if(System.getProperties().containsKey(Game.CMDLINE_WINDOW_HEIGHT)) {
            height = Integer.parseInt(System.getProperty(Game.CMDLINE_WINDOW_HEIGHT));
        }
        Display.setDisplayMode(new DisplayMode(width, height));

//        PixelFormat pixelFormat = new PixelFormat();
//        ContextAttribs contextAttribs = new ContextAttribs(3, 2)
//                .withForwardCompatible(true)
//                .withProfileCore(true);
//        Display.create(pixelFormat, contextAttribs);
        Display.create();
        System.out.println("OpenGL Version: " + glGetString(GL_VERSION));
        Display.processMessages();
        windowWidth = width;
        windowHeight = height;
    }