Package stephencarmody.physics

Source Code of stephencarmody.physics.Main

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();
      }
    }
   
}
TOP

Related Classes of stephencarmody.physics.Main

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.