Esempio n. 1
0
  // -----------------------------------------------------------------------------
  private void createAnimationList() {
    String[] lems = {"fall", "walk"};

    // Add all the lemmings animations
    for (String l : lems) {
      AnimatedGif leftAnim = ImageHelper.getLemmingAnim("lemming_" + l + "_l");
      AnimatedGif rightAnim = ImageHelper.getLemmingAnim("lemming_" + l + "_r");
      AnimatedGif[] lemIcns = {leftAnim, rightAnim};
      animations.add(lemIcns);
    }
  }
Esempio n. 2
0
 // -----------------------------------------------------------------------------
 private void loadImages() {
   anims[0] = ImageHelper.getLemmingAnim("lemming_" + NAME + "_l");
   anims[1] = ImageHelper.getLemmingAnim("lemming_" + NAME + "_r");
 }