Пример #1
0
  @Override
  protected void collisions(IA ia) {
    // System.out.println("Collision avec " + ia);

    ia.onCollision(sbg);
    if (!ia.isVisited() && Globals.node.equals(ia.getNode())) {
      ia.setVisited(true);
    }
  }
Пример #2
0
 @Override
 public void update(int delta) {
   super.update(delta);
   // Makes him jump and fall again and again
   if (!jumped && onGround) {
     body.addForce(new Vector2f(0, -1000));
   }
 }