package stephencarmody.physics;
import stephencarmody.k8.core.Application;
import stephencarmody.k8.core.Log;
import stephencarmody.k8.core.Texture;
import stephencarmody.k8.physics.State;
public final class Main {
public static Texture wood;
/** Application entrypoint */
public static void main(String[] args) {
try {
Log.setLogFile("C:/physics.log");
Application.setTitle("Physics");
Application.initialise(400, 300);
wood = new Texture("/stephencarmody/physics/texture/blonde-wood.jpg");
new User();
new State(100f, 0f);
Application.run();
} catch ( Throwable t ) {
String msg = t.toString() + "\n\t";
StackTraceElement[] stack = t.getStackTrace();
for ( StackTraceElement s : stack ) msg += "at " + s.getClassName() + "." + s.getMethodName()+ "\n\t";
Log.severe(msg);
} finally {
Application.destroy();
}
}
}