Search in sources :

Example 1 with Sim

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);
}
Also used : Rover(nars.rover.robot.Rover) CarefulRover(nars.rover.robot.CarefulRover) CarefulRover(nars.rover.robot.CarefulRover) RoverWorld(nars.rover.RoverWorld) Sim(nars.rover.Sim) Spider(nars.rover.robot.Spider) NARSeed(nars.NARSeed) Turret(nars.rover.robot.Turret) NAR(nars.NAR) FoodSpawnWorld1(nars.rover.world.FoodSpawnWorld1)

Aggregations

NAR (nars.NAR)1 NARSeed (nars.NARSeed)1 RoverWorld (nars.rover.RoverWorld)1 Sim (nars.rover.Sim)1 CarefulRover (nars.rover.robot.CarefulRover)1 Rover (nars.rover.robot.Rover)1 Spider (nars.rover.robot.Spider)1 Turret (nars.rover.robot.Turret)1 FoodSpawnWorld1 (nars.rover.world.FoodSpawnWorld1)1