|
|
|
@ -21,12 +21,13 @@ public class Application {
|
|
|
|
|
|
|
|
|
|
static {
|
|
|
|
|
String classpath = new File("").getAbsolutePath();
|
|
|
|
|
int core = classpath.indexOf("\\frog\\");
|
|
|
|
|
if (core > 0)
|
|
|
|
|
CLASSPATH = classpath.substring(0, core) + "\\frog\\";
|
|
|
|
|
int i = classpath.indexOf("\\frog\\");
|
|
|
|
|
if (i > 0)
|
|
|
|
|
CLASSPATH = classpath.substring(0, i) + "\\frog\\";// windows
|
|
|
|
|
else
|
|
|
|
|
CLASSPATH = classpath.substring(0, core) + "/frog/"; // UNIX
|
|
|
|
|
CLASSPATH = classpath + "/"; // UNIX
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static JFrame mainFrame = new JFrame();
|
|
|
|
|
public static Env env = new Env();
|
|
|
|
|
public static BrainPicture brainPic = new BrainPicture(Env.ENV_WIDTH + 5, 0, Env.FROG_BRAIN_XSIZE,
|
|
|
|
|