use of nars.rover.Sim in project narchy by automenta.
the class SomeRovers method main.
public static void main(String[] args) {
Global.DEBUG = Global.EXIT_ON_EXCEPTION = false;
float fps = 60;
boolean cpanels = true;
RoverWorld world;
// world = new ReactorWorld(this, 32, 48, 48*2);
world = new FoodSpawnWorld1(128, 48, 48, 0.5f);
// world = new GridSpaceWorld(GridSpaceWorld.newMazePlanet());
final Sim game = new Sim(clock, world);
game.add(new Turret("turret"));
game.add(new Spider("spider", 3, 3, 0.618f, 30, 30));
{
NARSeed e = newDefault(3);
NAR nar = new NAR(e);
game.add(new Rover("r1", nar));
}
{
NAR nar = new NAR(newDefault(1));
// nar.param.outputVolume.set(0);
game.add(new CarefulRover("r2", nar));
/*if (cpanels) {
SwingUtilities.invokeLater(() -> {
new NARSwing(nar, false);
});
}*/
}
game.run(fps);
}
Aggregations