Package edu.ups.gamedev.terrain

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

TOP

Related Classes of edu.ups.gamedev.terrain.Level

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.