Examples of Solid


Examples of it.marteEngine.entity.Solid

    // add some blocks to level, I will just create and add to the world
    Image block = ResourceManager.getImage("block");
    // bottom
    for (int i = 0; i < 18; i++) {
      add(new Solid(20 + i * 32, 400, 32, 32, 10, block));
    }
    // left platform
    for (int i = 0; i < 5; i++) {
      add(new Solid(120 + i * 32, 304, 32, 32, 10, block));
    }
    // right platform
    for (int i = 0; i < 5; i++) {
      add(new Solid(320 + i * 32, 304, 32, 32, 10, block));
    }
    // top platform
    for (int i = 0; i < 6; i++) {
      add(new Solid(200 + i * 32, 200, 32, 32, 10, block));
    }
    // left wall
    for (int i = 1; i < 13; i++) {
      add(new Solid(20, 400 - i * 32, 32, 32, 10, block));
    }
    // right wall
    for (int i = 1; i < 13; i++) {
      add(new Solid(564, 400 - i * 32, 32, 32, 10, block));
    }
    // add a background image, from
    // http://thetutorials.wordpress.com/2008/11/26/ps-cute-cartoon-clouds-the-simple-way/
    add(new Background(0, 0));
  }
View Full Code Here

Examples of nexus.model.renderable.Solid

        float z = (float) this.z * Chunk.WIDTH + j;
        float y = (int) dilation.y * ((Perlin.perlin2D(x * dilation.x + BIG_NUMBER, z * dilation.z + BIG_NUMBER) + 1) / 2) + 1;

        for (int k = 0; k < HEIGHT; k++) {
          if (k <= y) {
            this.blocks[i][j][k] = new Solid(new Vector3(x, (float) k, z), 1.0f, this.colorist);
          } else {
            this.blocks[i][j][k] = new Air(new Vector3(x, (float) k, z), 1.0f)
          }
        }
      }
View Full Code Here

Examples of nexus.model.renderable.Solid

        if (Mouse.isButtonDown(0)) {
          model.chunks.setBlock(new Air(model.chunks.selected, 1.0f));
        }
       
        if (Mouse.isButtonDown(1)) {
          Block newBlock = new Solid(model.chunks.getBlock(model.chunks.selected).a.add(new Vector3(0f, 1f, 0f)), 1.0f, new Greyscale(16.0f, 0.0f));
          model.chunks.setBlock(newBlock);
        }
       
        break;
      }
View Full Code Here

Examples of soc.qase.state.Solid

    {
      solid = (int)(Utils.shortValue(data, offset));
      offset = offset + 2;
    }

    return (offset > prevOff ? new Solid(solid) : null);
  }
View Full Code Here

Examples of soc.qase.state.Solid

/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
  private Solid processSolid()
  {
    Solid result = null;

    result = new Solid();

    // process solid
    if((bitmask & 0x08000000) != 0) {
      result.setSolid((int)(Utils.shortValue(data, offset)));
      offset = offset + 2;
    }
    return result;
  }
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.