Package Hexel.things.types

Examples of Hexel.things.types.Zombie


            engine.addThing(fc);
            engine.setCamera(fc);
          }
        }
        else if (thing instanceof Zombie){
          Zombie zombie = (Zombie)thing;
          if (zombie.health <= 0){
            thingsToRemove.add(zombie);
          }
        }
        else if (thing instanceof Deer){
View Full Code Here


        int numberToSpawn = engine.zsp.getNumberToSpawn();
        if (numberToSpawn <= 0)
          return;
        double lightLevel = engine.getAmbientLight() - abt.naturalLightLevel*1.0/BlockTransparent.MAX_LIGHT_LEVEL;
        if (lightLevel < .5 && Util.hashToDouble(Util.hash(Hexel.session.seed, step, bx, by, bz)) < .25){
          Zombie zombie = new Zombie(x, y, z, engine.getThingBridge());
          engine.addThing(zombie);
          engine.zsp.spawnZombies(1);
        }
      }

View Full Code Here

TOP

Related Classes of Hexel.things.types.Zombie

Copyright © 2018 www.massapicom. 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.