File tree Expand file tree Collapse file tree 4 files changed +16
-7
lines changed
src/org/openpatch/scratch Expand file tree Collapse file tree 4 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ name: Changelog
33index : 4
44---
55
6+ ## 3.3.0
7+
8+ - 🚀 Feat: Added ` isSoundPlaying ` and ` stopSound ` to the Sprite and Stage Class.
9+
610## 3.2.2
711
812- 🎨 Visual: Improve Pen rendering
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ source.repository=https://github.com/openpatch/scratch-for-java.git
7272
7373# The version as the user will see it.
7474
75- library.prettyVersion =3.2.2
75+ library.prettyVersion =3.3.0
7676
7777# Additional information for the generated webpage.
7878
Original file line number Diff line number Diff line change @@ -237,14 +237,16 @@ public void stopSound(String name) {
237237
238238 /**
239239 * Returns true if the sound if playing
240+ *
240241 * @return playing
241242 */
242243 public boolean isSoundPlaying (String name ) {
243- for (Sound sound : sounds ) {
244- if (sound .getName ().equals (name )) {
245- return sound .isPlaying ()
246- }
244+ for (Sound sound : sounds ) {
245+ if (sound .getName ().equals (name )) {
246+ return sound .isPlaying ();
247247 }
248+ }
249+ return false ;
248250 }
249251
250252 public void setTint (int r , int g , int b ) {
Original file line number Diff line number Diff line change @@ -351,14 +351,17 @@ public void stopSound(String name) {
351351
352352 /**
353353 * Returns true if the sound if playing
354+ *
354355 * @return playing
355356 */
356357 public boolean isSoundPlaying (String name ) {
357- for (Sound sound : sounds ) {
358+ for (Sound sound : sounds ) {
358359 if (sound .getName ().equals (name )) {
359- return sound .isPlaying ()
360+ return sound .isPlaying ();
360361 }
361362 }
363+
364+ return false ;
362365 }
363366
364367 /**
You can’t perform that action at this time.
0 commit comments