Re-implemented some units / Bugfixes

This commit is contained in:
Anuken
2020-05-19 14:58:04 -04:00
parent 8c6e8d8bcb
commit 77c0163a79
39 changed files with 924 additions and 834 deletions

View File

@@ -246,9 +246,9 @@ public class Generators{
Image image = ImagePacker.get(type.region);
if(type.constructor.get() instanceof Legsc){
image.draw(type.baseRegion);
image.draw(type.legRegion);
image.draw(type.legRegion, true, false);
image.drawCenter(type.baseRegion);
image.drawCenter(type.legRegion);
image.drawCenter(type.legRegion, true, false);
}
image.draw(type.region);

View File

@@ -68,6 +68,7 @@ class Image{
graphics.fillRect(x, y, 1, 1);
}
/** Draws a region at the top left corner. */
void draw(TextureRegion region){
draw(region, 0, 0, false, false);