Mech descriptions / Balancing / Crash fix / Physics fix

This commit is contained in:
Anuken
2018-08-27 09:52:33 -04:00
parent 2f7f16daff
commit 6323c13704
17 changed files with 614 additions and 724 deletions

View File

@@ -67,6 +67,16 @@ public class Image {
draw(region, 0, 0, false, false);
}
/**Draws a region at the center.*/
public void drawCenter(TextureRegion region){
draw(region, (width() - region.getRegionWidth())/2, (height() - region.getRegionHeight())/2, false, false);
}
/**Draws a region at the center.*/
public void drawCenter(TextureRegion region, boolean flipx, boolean flipy){
draw(region, (width() - region.getRegionWidth())/2, (height() - region.getRegionHeight())/2, flipx, flipy);
}
/**Draws an image at the top left corner.*/
public void draw(Image image){
draw(image, 0, 0);