Skip to content

Releases: openpatch/scratch-for-java

v1.14.2

12 May 20:33

Choose a tag to compare

  • Remove System.out.print statements

v1.14.1

12 May 13:16

Choose a tag to compare

  • improve ScratchText rendering

v1.14.0

11 May 23:33

Choose a tag to compare

  • add think and say to ScratchSprite
  • add display to ScratchStage
  • add whenClicked to Sprite
  • add whenBackdropSwitches to Sprite

v1.13.1

03 May 09:28

Choose a tag to compare

  • Optimize image loading

v1.13.0

02 May 11:38

Choose a tag to compare

  • add stage.removeSprites
  • add stage.findSprites
  • use CopyOnWriteArrayList instead of ArrayList

v1.12.0

25 Oct 07:40

Choose a tag to compare

Changelog

  • Enhancement: Add pickRandom method 2821c70
  • Enhancement: Add ScratchAnimatedSprite 3e02e91
  • Enhancement: Allow pressing two keys simultaneously ffa504b
  • Fix: Transparency detection 8f5bd06
  • Fix: Null pointer exception when sound is loading 081680c

v1.11.0

23 Oct 07:30

Choose a tag to compare

Changelog

  • add method raiseSprite to stage
  • add method lowerSprite to stage
  • add method removeBackdrop to stage
  • update docs

v1.10.0

18 Oct 13:31

Choose a tag to compare

Simplify the usage of sprites by remove the usage of super.

You can now simply add a sprite to the stage by stage.addSprite(sprite). This means that the draw method of the sprite will be implicit called. To change the behavior of the sprite override the run-method.

Before (and still possible):

MySprite mySprite;

void setup() {
    ScratchStage.init(this);
    mySprite = new MySprite();
}

void draw() {
   mySprite.draw();
}

class MySprite extends ScratchSprite {
   void draw() {
       super.draw();
       this.move();
   }
}

After:

ScratchStage stage;

void setup() {
    ScratchStage.init(this);
    stage = ScratchStage.getInstance()
    stage.addSprite(new MySprite());
}

void draw() {}

class MySprite extends ScratchSprite {
   void run() {
       this.move();
   }
}

Changelog

  • Add method run to ScratchSprite
  • Add method whenKeyPressed to ScratchSprite
  • Add method whenMouseMoved to ScratchSprite
  • Add method addSprite to ScratchStage
  • Add methode removeSprite to ScratchStage

v1.9.0

11 Aug 17:25

Choose a tag to compare

  • Add custom hitboxes
  • Add more debug information

v1.8.0

11 Aug 10:58

Choose a tag to compare

  • Add more examples
  • Fix: Use the right renderer
  • Fix: Rotation can get negative