Skip to content

Commit 4a249c2

Browse files
committed
more methods
1 parent a14736e commit 4a249c2

File tree

5 files changed

+1082
-978
lines changed

5 files changed

+1082
-978
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 3.1.0
2+
3+
- 🚀 Feat: The debug modus now shows the current FPS.
4+
- 🚀 Feat: `isTouchingSprite(Class)`. IsTouchingSprite accepts also a Class. So you can check the collision with all objects of this class.
5+
16
## 3.0.0
27

38
Scratch for Java will from now on focus on being a standalone library. Even though it can be used in processing.

docs/en/book/reference/sprite/sensing/setHitbox.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "setHitbox()",
66
"class": "Sprite",
77
"description": "Sets the hitbox of the sprite.",
8-
"syntax": [".setHitbox(xcoordinates, ycoordinates)", ".setHitbox(hitbox)"],
8+
"syntax": [".setHitbox(xcoordinates, ycoordinates)", ".setHitbox(hitbox)", ".setHitbox(...coordinates)"],
99
"returns": "boolean",
1010
"examples": [
1111
{ "src": "SpriteSetHitbox.java", "preview": "SpriteSetHitbox.gif", "lines": "reg:[Rr]ecorder" }
@@ -25,6 +25,10 @@
2525
"name": "hitbox",
2626
"description": "A hitbox",
2727
"type": "Hitbox"
28+
}, {
29+
"name": "...coordinates",
30+
"description": "A variable argument list, which has the following structure: x1, y1, x2, y2, x3, y3 ...",
31+
"type": "int"
2832
}
2933
]
3034
}

resources/build.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ source.repository=https://github.com/openpatch/scratch-for-java.git
131131
# This is used to compare different versions of the same Library, and check if
132132
# an update is available.
133133

134-
library.version=24
134+
library.version=25
135135

136136

137137
# The version as the user will see it.
138138

139-
library.prettyVersion=3.0
139+
library.prettyVersion=3.1.0
140140

141141

142142
# The min and max revision of Processing compatible with your Library.

0 commit comments

Comments
 (0)