public static void main(String[] args) {
        if (args.length == 0) {
            try {
                LauncherImpl.launchApplication(SuperMarioPaint.class,
                        SplashScreen.class, args);
            } catch (Exception e) {
                e.printStackTrace();
            }
        } else if (args.length > 0
                && (args[0].equals("--debug") || args[0].equals("--d"))) {
            if (args[1] != null) {
                try {
                    Settings.setDebug(Integer.parseInt(args[1]));
                } catch (NumberFormatException e) {
                    Settings.setDebug(1);
                }
            } else {
                Settings.setDebug(1);
            }
            try {
                LauncherImpl.launchApplication(SuperMarioPaint.class,
                        SplashScreen.class, args);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }

    }