Skip to content

Commit

Permalink
Add constructor for non-repeating sprites
Browse files Browse the repository at this point in the history
  • Loading branch information
ultraq committed Apr 8, 2024
1 parent 278dffb commit 80b586a
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ class PalettedSprite extends Sprite implements FactionColours {
this.palette = palette
}

/**
* Constructor, build this sprite from an existing sprite sheet.
*/
PalettedSprite(int width, int height, int numImages, SpriteSheet spriteSheet, Palette palette) {

this(width, height, numImages, spriteSheet, 1f, 1f, palette)
}

/**
* Constructor, build this sprite from an existing sprite sheet.
*/
Expand Down

0 comments on commit 80b586a

Please sign in to comment.