diff --git a/UPDATE_NOTES.md b/UPDATE_NOTES.md index 3840794..06aec1c 100755 --- a/UPDATE_NOTES.md +++ b/UPDATE_NOTES.md @@ -1,3 +1,6 @@ +## 22.2.0.0-alpha.2 +* `[PlutoSpritesheet]` Renamed `TemporalSprite#getSideCount` to `getFrameCount` + ## 22.2.0.0-alpha.1 * `[PlutoGUI]` **Added support for bitmap fonts** * `[PlutoGUI]` Generalized the font renderer API diff --git a/engine-core/plutoaudio/src/main/java/org/plutoengine/audio/AudioLoader.java b/engine-core/plutoaudio/src/main/java/org/plutoengine/audio/AudioLoader.java index 7311242..9b74b96 100644 --- a/engine-core/plutoaudio/src/main/java/org/plutoengine/audio/AudioLoader.java +++ b/engine-core/plutoaudio/src/main/java/org/plutoengine/audio/AudioLoader.java @@ -225,7 +225,6 @@ public class AudioLoader this.channels = info.channels(); this.sampleRate = info.sample_rate(); - } this.samplesLength = STBVorbis.stb_vorbis_stream_length_in_samples(this.handle); diff --git a/engine-core/plutoruntime/src/main/java/org/plutoengine/mod/ModLoader.java b/engine-core/plutoruntime/src/main/java/org/plutoengine/mod/ModLoader.java index 0bf62b2..b52f8db 100644 --- a/engine-core/plutoruntime/src/main/java/org/plutoengine/mod/ModLoader.java +++ b/engine-core/plutoruntime/src/main/java/org/plutoengine/mod/ModLoader.java @@ -94,7 +94,7 @@ public final class ModLoader extends PlutoLocalComponent if (modInterface == null) { - Logger.logf(SmartSeverity.MODULE_WARNING, "Cannot create a mod from the class '%s', it is not annotated with @%s%n".formatted(modClass.getCanonicalName(), ModEntry.class.getName())); + Logger.logf(SmartSeverity.MODULE_WARNING, "Cannot create a mod from the class '%s', it is not annotated with @%s%n", modClass.getCanonicalName(), ModEntry.class.getName()); return; } diff --git a/engine-core/plutospritesheet/src/main/java/org/plutoengine/graphics/sprite/TemporalSprite.java b/engine-core/plutospritesheet/src/main/java/org/plutoengine/graphics/sprite/TemporalSprite.java index ca7f019..9622147 100644 --- a/engine-core/plutospritesheet/src/main/java/org/plutoengine/graphics/sprite/TemporalSprite.java +++ b/engine-core/plutospritesheet/src/main/java/org/plutoengine/graphics/sprite/TemporalSprite.java @@ -62,7 +62,7 @@ public class TemporalSprite implements Sprite this.recomputeFromIndex(index); } - public int getSideCount() + public int getFrameCount() { return this.frames.length; } diff --git a/engine-core/plutotexture/src/main/java/org/plutoengine/graphics/texture/Texture.java b/engine-core/plutotexture/src/main/java/org/plutoengine/graphics/texture/Texture.java index 0e5d8d0..c3a3f57 100644 --- a/engine-core/plutotexture/src/main/java/org/plutoengine/graphics/texture/Texture.java +++ b/engine-core/plutotexture/src/main/java/org/plutoengine/graphics/texture/Texture.java @@ -2,17 +2,16 @@ package org.plutoengine.graphics.texture; import org.lwjgl.opengl.GL33; import org.lwjgl.system.MemoryUtil; +import org.plutoengine.logger.Logger; +import org.plutoengine.logger.SmartSeverity; +import org.plutoengine.tpl.ImageABGR; +import org.plutoengine.tpl.ImageLoader; import java.awt.image.BufferedImage; import java.nio.ByteBuffer; import java.nio.file.Path; import java.util.Arrays; -import org.plutoengine.logger.Logger; -import org.plutoengine.logger.SmartSeverity; -import org.plutoengine.tpl.ImageABGR; -import org.plutoengine.tpl.ImageLoader; - public abstract class Texture implements AutoCloseable { protected int glID; diff --git a/engine-demo/basic-application/mods/tefek.demo.basicapplication/plutofonts/srclone/info.yaml b/engine-demo/basic-application/mods/tefek.demo.basicapplication/plutofonts/srclone/info.yaml index 512cb38..05e7dc4 100644 --- a/engine-demo/basic-application/mods/tefek.demo.basicapplication/plutofonts/srclone/info.yaml +++ b/engine-demo/basic-application/mods/tefek.demo.basicapplication/plutofonts/srclone/info.yaml @@ -233,7 +233,7 @@ glyphs: cp: 8734 # ∞ - infinity sprite: x: 112 - y: 0 + y: 8 w: 8 h: 8 leftBearing: 0