Releases: openpatch/scratch-for-java
Releases · openpatch/scratch-for-java
v1.13.1
- Optimize image loading
v1.13.0
- add stage.removeSprites
- add stage.findSprites
- use CopyOnWriteArrayList instead of ArrayList
v1.12.0
v1.11.0
Changelog
- add method
raiseSprite
to stage - add method
lowerSprite
to stage - add method
removeBackdrop
to stage - update docs
v1.10.0
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
- Add custom hitboxes
- Add more debug information
v1.8.0
- Add more examples
- Fix: Use the right renderer
- Fix: Rotation can get negative
v1.7.1
Fix missing methods
v1.7.0
Add sensing blocks to Stage and Sprite
v1.6.0
Add getter for pixels to sprite and stage