Skip to content

Releases: openpatch/scratch-for-java

v3.6.0

02 Apr 19:22
3d708af
Compare
Choose a tag to compare

v3.5.0

30 Mar 18:27
5e6ca28
Compare
Choose a tag to compare

v3.4.0

30 Mar 07:43
32107f4
Compare
Choose a tag to compare

v3.3.0

26 Mar 20:59
7f994d1
Compare
Choose a tag to compare

v3.2.2

12 Mar 09:34
90cb4da
Compare
Choose a tag to compare

v3.2.1

12 Mar 01:18
b58f284
Compare
Choose a tag to compare

v3.2.0

03 Mar 02:01
46869b4
Compare
Choose a tag to compare

v3.1.0

10 Feb 12:02
4a249c2
Compare
Choose a tag to compare

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

30 Jan 23:34
d007d76
Compare
Choose a tag to compare

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

11 Dec 21:14
ca34966
Compare
Choose a tag to compare

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 or new Stage(400, 400) // Standalone. Be aware that you can only have one Stage at a time.