Beispiel #1
0
 public void setFaceImage(LTexture img) {
   if (img == face) {
     return;
   }
   if (face != null) {
     face.destroy();
     face = null;
   }
   this.face = img;
 }
Beispiel #2
0
 public void setBackground(LTexture img) {
   if (img == background) {
     return;
   }
   if (background != null) {
     background.destroy();
     background = null;
   }
   this.background = img;
 }
Beispiel #3
0
 public void setCharacterImage(LTexture img, int x, int y) {
   if (img == character) {
     return;
   }
   if (character != null) {
     character.destroy();
     character = null;
   }
   this.character = img;
   this.setCharacterLocation(x, y);
 }