public class Main { // for now, the Canvas and World must be the same size :( public static final java.awt.Dimension SIZE = new java.awt.Dimension(600, 600); public static final String DEFAULT_WORLD = "data/demo.xml"; public static void main (String args[]) { // create the world dynamically String filename = (args.length > 0) ? args[0] : DEFAULT_WORLD; ngp.World world = new ngp.World(filename); // create view for world ngp.views.Framed frame = new ngp.views.Framed(SIZE); frame.setTitle(world.getName()); frame.show(); // start things up ngp.AnimationEngine animator = new ngp.AnimationEngine(world, frame.getCanvas()); animator.start(); } }