src/main/java/h1z1/Startup.java
public static void main(String[] args) {

        // TODO: Remove this test code once we're 100% sure controller works as expected
        /*
        ControllerEnvironment ce = ControllerEnvironment.getDefaultEnvironment();
        for (Controller controller : ce.getControllers()) {
            if (controller.getType() == Controller.Type.GAMEPAD) {
                System.out.println(controller.getName());
                listenToGamepad(controller);
            }
        }
        */

        // Create the MainFrame (or Main Window) to hold our game.
        // The constructor for MainFrame starts all the resources we need,
        // so just creating a MainFrame object using new MainFrame() is enough.
        System.setProperty("sun.java2d.opengl","true");
        MainFrame mainFrame = new MainFrame();
    }
/**
     * Entry point to the Nova game. No command line arguments needed.
     * @param args command line arguments, if provided.
     */
Entry point to the Nova game. No command line arguments needed.
@param args command line arguments, if provided.
Entry point to the Nova game . No command line arguments needed . @param args command line arguments if provided .
public static void main(String[] args) {
        /*
        ControllerEnvironment ce = ControllerEnvironment.getDefaultEnvironment();
        for (Controller controller : ce.getControllers()) {
            if (controller.getType() == Controller.Type.GAMEPAD) {
                System.out.println(controller.getName());
                listenToGamepad(controller);
            }
        }
        */
        System.setProperty("sun.java2d.opengl","true");
        MainFrame mainFrame = new MainFrame();
    }
public static void main ( String [ ] args ) { /*
        ControllerEnvironment ce = ControllerEnvironment.getDefaultEnvironment();
        for (Controller controller : ce.getControllers()) {
            if (controller.getType() == Controller.Type.GAMEPAD) {
                System.out.println(controller.getName());
                listenToGamepad(controller);
            }
        }
        */ System . setProperty ( "sun.java2d.opengl" , "true" ) ; MainFrame mainFrame = new MainFrame ( ) ; }
Entry point to the Nova game.
Entry point to the Nova game .
// TODO: Remove this test code once we're 100% sure controller works as expected // Create the MainFrame (or Main Window) to hold our game. // The constructor for MainFrame starts all the resources we need, // so just creating a MainFrame object using new MainFrame() is enough.