Examples of Level


Examples of com.mime.minefront.level.Level

          pixels[x + y * width] = 0;
        }
      }
    }

    Level level = game.level;
    int size = 100;
    for (int xBlock = -size; xBlock <= size; xBlock++) {
      for (int zBlock = -size; zBlock <= size; zBlock++) {
        Block block = level.create(xBlock, zBlock);
        Block east = level.create(xBlock + 1, zBlock);
        Block south = level.create(xBlock, zBlock + 1);

        if (block.solid) {
          if (!east.solid) {
            renderWall(xBlock + 1, xBlock + 1, zBlock, zBlock + 1, 0);
            renderWall(xBlock + 1, xBlock + 1, zBlock, zBlock + 1, 1);
          }
          if (!south.solid) {
            renderWall(xBlock + 1, xBlock, zBlock + 1, zBlock + 1, 0);
            renderWall(xBlock + 1, xBlock, zBlock + 1, zBlock + 1, 1);
          }
        } else {
          if (east.solid) {
            renderWall(xBlock + 1, xBlock + 1, zBlock + 1, zBlock, 0);
            renderWall(xBlock + 1, xBlock + 1, zBlock + 1, zBlock, 1);
          }
          if (south.solid) {
            renderWall(xBlock, xBlock + 1, zBlock + 1, zBlock + 1, 0);
            renderWall(xBlock, xBlock + 1, zBlock + 1, zBlock + 1, 1);
          }
        }

      }
    }
    for (int xBlock = -size; xBlock <= size; xBlock++) {
      for (int zBlock = -size; zBlock <= size; zBlock++) {
        Block block = level.create(xBlock, zBlock);
        for (int s = 0; s < block.sprites.size(); s++) {
          Sprite sprite = block.sprites.get(s);
          renderSprite(xBlock + sprite.x, sprite.y, zBlock + sprite.z);
        }
      }
View Full Code Here

Examples of com.mojang.escape.level.Level

    rCos = Math.cos(rot);
    rSin = Math.sin(rot);

    fov = height;

    Level level = game.level;
    int r = 6;

    int xCenter = (int) (Math.floor(xCam));
    int zCenter = (int) (Math.floor(yCam));
    for (int zb = zCenter - r; zb <= zCenter + r; zb++) {
      for (int xb = xCenter - r; xb <= xCenter + r; xb++) {
        Block c = level.getBlock(xb, zb);
        Block e = level.getBlock(xb + 1, zb);
        Block s = level.getBlock(xb, zb + 1);

        if (c instanceof DoorBlock) {
          double rr = 1 / 8.0;
          double openness = 1 - ((DoorBlock) c).openness * 7 / 8;
          if (e.solidRender) {
            renderWall(xb + openness, zb + 0.5 - rr, xb, zb + 0.5 - rr, c.tex, (c.col & 0xfefefe) >> 1, 0, openness);
            renderWall(xb, zb + 0.5 + rr, xb + openness, zb + 0.5 + rr, c.tex, (c.col & 0xfefefe) >> 1, openness, 0);
            renderWall(xb + openness, zb + 0.5 + rr, xb + openness, zb + 0.5 - rr, c.tex, c.col, 0.5 - rr, 0.5 + rr);
          } else {
            renderWall(xb + 0.5 - rr, zb, xb + 0.5 - rr, zb + openness, c.tex, c.col, openness, 0);
            renderWall(xb + 0.5 + rr, zb + openness, xb + 0.5 + rr, zb, c.tex, c.col, 0, openness);
            renderWall(xb + 0.5 - rr, zb + openness, xb + 0.5 + rr, zb + openness, c.tex, (c.col & 0xfefefe) >> 1, 0.5 - rr, 0.5 + rr);
          }

        }

        if (c.solidRender) {
          if (!e.solidRender) {
            renderWall(xb + 1, zb + 1, xb + 1, zb, c.tex, c.col);
          }
          if (!s.solidRender) {
            renderWall(xb, zb + 1, xb + 1, zb + 1, c.tex, (c.col & 0xfefefe) >> 1);
          }
        } else {
          if (e.solidRender) {
            renderWall(xb + 1, zb, xb + 1, zb + 1, e.tex, e.col);
          }
          if (s.solidRender) {
            renderWall(xb + 1, zb + 1, xb, zb + 1, s.tex, (s.col & 0xfefefe) >> 1);
          }
        }
      }
    }
    for (int zb = zCenter - r; zb <= zCenter + r; zb++) {
      for (int xb = xCenter - r; xb <= xCenter + r; xb++) {
        Block c = level.getBlock(xb, zb);

        for (int j = 0; j < c.entities.size(); j++) {
          Entity e = c.entities.get(j);
          for (int i = 0; i < e.sprites.size(); i++) {
            Sprite sprite = e.sprites.get(i);
View Full Code Here

Examples of com.mojang.ld22.level.Level

    hasWon = false;

    levels = new Level[5];
    currentLevel = 3;

    levels[4] = new Level(128, 128, 1, null);
    levels[3] = new Level(128, 128, 0, levels[4]);
    levels[2] = new Level(128, 128, -1, levels[3]);
    levels[1] = new Level(128, 128, -2, levels[2]);
    levels[0] = new Level(128, 128, -3, levels[1]);

    level = levels[currentLevel];
    player = new Player(this, input);
    player.findStartPos(level);
View Full Code Here

Examples of com.mojang.minecraft.level.Level

      GL11.glLoadIdentity();
      GL11.glTranslatef(0.0F, 0.0F, -200.0F);
   }

   public void updateFog() {
      Level var1 = this.minecraft.level;
      Player var2 = this.minecraft.player;
      GL11.glFog(2918, this.createBuffer(this.fogRed, this.fogBlue, this.fogGreen, 1.0F));
      GL11.glNormal3f(0.0F, -1.0F, 0.0F);
      GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
      Block var5;
      if((var5 = Block.blocks[var1.getTile((int)var2.x, (int)(var2.y + 0.12F), (int)var2.z)]) != null && var5.getLiquidType() != LiquidType.NOT_LIQUID) {
         LiquidType var6 = var5.getLiquidType();
         GL11.glFogi(2917, 2048);
         float var3;
         float var4;
         float var7;
View Full Code Here

Examples of com.spotify.logging.LoggingConfigurator.Level

    // Hijack JUL
    SLF4JBridgeHandler.removeHandlersForRootLogger();
    SLF4JBridgeHandler.install();

    final int verbose = config.getVerbosity();
    final Level level = get(asList(INFO, DEBUG, ALL), verbose, ALL);
    final File logconfig = config.getConfigFile();

    if (logconfig != null) {
      LoggingConfigurator.configure(logconfig);
    } else {
View Full Code Here

Examples of com.thecrouchmode.level.Level

    int vertexArrayID = glGenVertexArrays();
    glBindVertexArray(vertexArrayID);
   
    Model dragon = null;
    Model cube = null;
    Level level = null;
   
    try{
      dragon = new Model("./models/head.off", true);
      cube = new Model("./models/cube.off", false);
      level = new Level("./levels/testlevel.png");
    }
    catch(IOException e){
      e.printStackTrace();
    }
   
View Full Code Here

Examples of edu.ups.gamedev.terrain.Level

   *
   */
  protected void buildTerrain() {
    // TODO abstract terrain creation and loading
    try {
      Level level = new Level(new File("resources/mapOne"));
      terrain = level.getMap().getTerrain();
     
      StaticPhysicsNode staticNode = TankGame.PHYSICS.getPhysicsSpace().createStaticNode();
      root.attachChild(staticNode);
      staticNode.attachChild(terrain);
      staticNode.generatePhysicsGeometry(true);
View Full Code Here

Examples of etch.bindings.java.msg.Validator.Level

    return level;
  }

  public Level setLevel( Level level )
  {
    Level oldLevel = this.level;
    this.level = level;
    return oldLevel;
  }
View Full Code Here

Examples of gwlpr.database.entities.Level

                attachedCharacterCollection.add(characterCollectionCharacterToAttach);
            }
            level.setCharacterCollection(attachedCharacterCollection);
            em.persist(level);
            for (Character characterCollectionCharacter : level.getCharacterCollection()) {
                Level oldLevelOfCharacterCollectionCharacter = characterCollectionCharacter.getLevel();
                characterCollectionCharacter.setLevel(level);
                characterCollectionCharacter = em.merge(characterCollectionCharacter);
                if (oldLevelOfCharacterCollectionCharacter != null) {
                    oldLevelOfCharacterCollectionCharacter.getCharacterCollection().remove(characterCollectionCharacter);
                    oldLevelOfCharacterCollectionCharacter = em.merge(oldLevelOfCharacterCollectionCharacter);
                }
            }
            em.getTransaction().commit();
        } finally {
View Full Code Here

Examples of it.eng.spagobi.engines.geo.dataset.provider.Hierarchy.Level

        hierarchyJSON.put("name", hierarchy.getName());
        hierarchyJSON.put("description", hierarchy.getName());
        List levels = hierarchy.getLevels();
        JSONArray levelsJSON = new JSONArray();
        for(int i = 0; i < levels.size(); i++) {
          Level level = (Level)levels.get(i);
          JSONObject levelJSON = new JSONObject();
          levelJSON.put("id", level.getName());
          levelJSON.put("name", level.getName());
          levelJSON.put("description", level.getName());
          levelJSON.put("feature", level.getFeatureName());
          levelsJSON.put(levelJSON);
        }
       
        hierarchyJSON.put("levels", levelsJSON);
        hierarchiesJSON.put(hierarchyJSON);
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.