Releases: openpatch/scratch-for-java
Releases · openpatch/scratch-for-java
v3.6.0
v3.5.0
v3.4.0
v3.3.0
v3.2.2
v3.2.1
v3.2.0
v3.1.0
3.1.0
- 🚀 Feat: The debug modus now shows the current FPS.
- 🚀 Feat:
isTouchingSprite(Class)
. IsTouchingSprite accepts also a Class, so you can check the collision with all objects of this class.
v3.0.0
3.0.0
Scratch for Java will from now on focus on being a standalone library. Even though it can be used in processing.
We also provide os-specific jar files for the standalone version.
v2.1.0
Changes
- 🚀 Feat: Image, Text and Pen can now be added without being used in a Sprite. Example:
import org.openpatch.scratch.Stage;
import org.openpatch.scratch.extensions.Pen;
public class PenStandalone {
public static void main(String[] args) {
Stage s = new Stage(400, 400);
Pen p = new Pen();
p.down();
p.setPosition(40, 40);
p.setPosition(40, 100);
}
}
- 🚀 Feat: AnimatedSprite and Sprite now support SpriteSheets. Example:
import org.openpatch.scratch.AnimatedSprite;
import org.openpatch.scratch.Stage;
public class SpriteSheet {
public static void main(String[] args) {
Stage stage = new Stage() ;
stage.add(new AnimatedBee());
}
}
class AnimatedBee extends AnimatedSprite {
public AnimatedBee() {
this.addAnimation("idle", "bee_idle.png", 6, 36, 34);
}
public void run() {
this.playAnimation("idle");
}
}
- 🐛 Fix: Pen did not include the first point
BREAKING CHANGES
- 💥 Prefix Scratch is removed. For exmaple: ScratchSprite -> Sprite, ScratchStage -> Stage
- 💥 getInstance and init got removed from Stage. You now have to instantiate a Stage like a normal Object
new Stage(this) // Processing
ornew Stage(400, 400) // Standalone
. Be aware that you can only have one Stage at a time.