public void setFaceImage(LTexture img) { if (img == face) { return; } if (face != null) { face.destroy(); face = null; } this.face = img; }
public void setBackground(LTexture img) { if (img == background) { return; } if (background != null) { background.destroy(); background = null; } this.background = img; }
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); }