Skip to content

Commit b1b6ace

Browse files
committed
update description
1 parent 40c44f9 commit b1b6ace

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/main/java/org/openpatch/scratch/extensions/package-info.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
/**
2+
* This package contains extensions for Scratch for Java.
3+
*
4+
* For example, it includes extensions for animations:
5+
*
6+
* <pre>{@code
7+
* import org.openpatch.scratch.extensions.animation.AnimatedSprite;
8+
*
9+
* AnimatedSprite sprite = new AnimatedSprite();
10+
* sprite.addAnimation("walk", "assets/walk_%d.png", 4);
11+
* sprite.playAnimation("walk");
12+
* }</pre>
13+
*
214
* @name-in-docs Extensions
315
* @index-in-docs 4
416
*/

0 commit comments

Comments
 (0)