Package net.nakou.indie.jsige.entity

Examples of net.nakou.indie.jsige.entity.RigidBody


    public void fillFromTile(){
  if(tileMap != null){
      BlockMap ent;
      Controller c;
      Element e;
      RigidBody r;
      for (int xAxis=0;xAxis<tileMap.getWidth(); xAxis++)
      {
    for (int yAxis=0;yAxis<tileMap.getHeight(); yAxis++)
    {
        int tileID = tileMap.getTileId(xAxis, yAxis, 0);
        if(CONF.debugLevel >= 3)
      System.out.println(tileMap.getTileProperty(tileID, "Solid", "0"));
        if(tileMap.getTileProperty(tileID, "Solid", "0").equals("1")){
      try {
          ent = new BlockMap();
          e = new Element(ent, tileMap.getVisibleTile(xAxis, yAxis));
          ent.setElement(e);
          c = new Controller(ent, xAxis*32, yAxis*32);
          ent.setController(c);
          r = new RigidBody(ent,1, true, true);
          ent.setRigidbody(r);
                            ent.setEntityName("BlockNĀ°"+tileID);
      } catch (SlickException ex) {
          Logger.getLogger(Map.class.getName()).log(Level.SEVERE, null, ex);
          ent = null;
View Full Code Here

TOP

Related Classes of net.nakou.indie.jsige.entity.RigidBody

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.