Examples of Ground


Examples of com.googlecode.jumpnevolve.game.objects.Ground

    engine.setTargetFrameRate(100);

    World world = new World(1000, 300, 1);
    world.setZoom(3000);

    world.add(new Ground(world, new Vector(300, 300), new Vector(800, 20)));

    engine.switchState(world);

    engine.start();
  }
View Full Code Here

Examples of javara.world.physical.Ground

        if (horizonScale >= 0)
          sky.setHorizonScale(horizonScale);
      }
      else if (localName.equalsIgnoreCase("ground")) {
        ColorRGBA groundColor = (attrs.getValue("color") != null) ? parseColor(attrs.getValue("color")) : null;
        Ground ground = world.getGround();
        Sky sky = world.getSky();

        if (groundColor != null) {
          ground.setColor(groundColor);
          sky.setGroundColor(groundColor);
        }
      }
      else if (localName.equalsIgnoreCase("celestial")) {
        ColorRGBA color;
View Full Code Here

Examples of javara.world.physical.Ground

    this.rootNode = rootNode;
    this.physicsSpace = physicsSpace;
    this.assetManager = assetManager;

    this.sky = new Sky(assetManager, DEFAULT_SKY_COLOR, DEFAULT_HORIZON_COLOR, DEFAULT_HORIZON_SCALE, DEFAULT_GROUND_COLOR);
    this.ground = new Ground(assetManager, 1000.0f, DEFAULT_GROUND_COLOR);

    addWorldObject(this.sky);
    addWorldObject(this.ground);

    ambientLight = new AmbientLight();
View Full Code Here

Examples of org.bitbucket.woolmark.object.Ground

        Atmosphere atmosphere = createAtmosphere(this);

        Fence fence = createFence(this);

        Ground ground = createGround(this);
        ground.setSize(fence);

        addObject(atmosphere);
        addObject(ground);
        addObject(fence);
View Full Code Here

Examples of org.bitbucket.woolmark.object.Ground

    private boolean strech;

    public AbstractSheep(World world) {
        super(world);

        Ground ground = world.findFirstObject(Ground.class);
        if (ground != null) {
            setPosition(ground.getWidth() + getWidth(),
                    world.getHeight() - ground.getHeight()
                            + random.nextInt(ground.getHeight() - getHeight()));
        }

        jumpX = calcJumpX();
    }
View Full Code Here
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.