Exemple #1
0
 public void bottomOn(final Actor object) {
   object.setLocation(getWidth() / 2 - object.getWidth() / 2, getHeight() - object.getHeight());
 }
Exemple #2
0
 public void leftOn(final Actor object) {
   object.setLocation(0, getHeight() / 2 - object.getHeight() / 2);
 }
Exemple #3
0
 public void rightOn(final Actor object) {
   object.setLocation(getWidth() - object.getWidth(), getHeight() / 2 - object.getHeight() / 2);
 }
Exemple #4
0
 public void centerOn(final Actor object) {
   object.setLocation(
       getWidth() / 2 - object.getWidth() / 2, getHeight() / 2 - object.getHeight() / 2);
 }