public static void main(String[] args) {
        Frame frame = new Frame("GameEngine v 0.1 alpha");
        GLCanvas canvas = new GLCanvas();
        GameEngine project = new GameEngine();

        canvas.addGLEventListener(project);
        canvas.addKeyListener(project);
        frame.add(canvas);
        frame.addKeyListener(project);
        frame.setSize(640, 480);
        final Animator animator = new Animator(canvas);
        frame.addWindowListener(new WindowAdapter() {

            @Override
            public void windowClosing(WindowEvent e) {
                new Thread(new Runnable() {

                    public void run() {
                        animator.stop();
                        System.exit(0);
                    }
                }).start();
            }
        });
        //  
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
        animator.start();
    }