Skip to content

Commit 8313c08

Browse files
committed
Convenience constructor for PartialTextureSprite
1 parent efb6b3b commit 8313c08

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

UPDATE_NOTES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 22.0.0.0-alpha.6
2+
* `[PlutoSpritesheet]` Added a constructor to `PartialTextureSprite` that initializes the spritesheet to `null`
3+
14
## 22.0.0.0-alpha.5
25
* `[PlutoRuntime]` Fixed module load ordering
36

buildSrc/src/main/kotlin/org/plutoengine/Versions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ object Versions {
2222

2323
const val isPrerelease = true
2424
const val prereleaseName = "alpha"
25-
const val prerealeaseUpdate = 5
25+
const val prerealeaseUpdate = 6
2626

2727
val versionFull =
2828
if (isPrerelease)

engine-core/plutospritesheet/src/main/java/org/plutoengine/graphics/sprite/PartialTextureSprite.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ public PartialTextureSprite(RectangleTexture texture, int x, int y, int width, i
2121
this.height = height;
2222
}
2323

24+
public PartialTextureSprite(int x, int y, int width, int height)
25+
{
26+
this(null, x, y, width, height);
27+
}
28+
2429
@Override
2530
public int getX()
2631
{

0 commit comments

Comments
 (0)