Пример #1
0
 public void setFaceImage(LTexture img) {
   if (img == face) {
     return;
   }
   if (face != null) {
     face.destroy();
     face = null;
   }
   this.face = img;
 }
Пример #2
0
 public void setBackground(LTexture img) {
   if (img == background) {
     return;
   }
   if (background != null) {
     background.destroy();
     background = null;
   }
   this.background = img;
 }
Пример #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);
 }