Skip to content

Commit

Permalink
Change for single row Sprites.
Browse files Browse the repository at this point in the history
  • Loading branch information
tberthel committed Aug 21, 2016
1 parent a263e20 commit 6ca2dcf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Expand Up @@ -32,5 +32,10 @@ public AllBinaryAdjustedSpriteRotationAnimationFactory(Image image)
throws Exception {
this(image, 0, 0);
}

public AllBinaryAdjustedSpriteRotationAnimationFactory(Image image, String nullish)
throws Exception {
super(image, nullish);
}

}
Expand Up @@ -45,6 +45,16 @@ public AllBinarySpriteRotationAnimationFactory(Image image)
//this.height = frameSize;
}

public AllBinarySpriteRotationAnimationFactory(Image image, String nullish)
throws Exception {
//90 degrees per row with 4 rows
//Future imp may include Control fidelity for non square frames
super(image, (image.getHeight()), (image.getHeight()));
//int frameSize = (image.getHeight() >> 2);
//this.width = frameSize;
//this.height = frameSize;
}

public Animation getInstance()
throws Exception
{
Expand Down

0 comments on commit 6ca2dcf

Please sign in to comment.