Skip to content

Commit 0c31a5d

Browse files
committed
renamed sound files w/@samanthalangit
1 parent 7847fce commit 0c31a5d

29 files changed

Lines changed: 7 additions & 6 deletions

build.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
<copy todir="${build}">
5050
<fileset dir="${rsrc}" includes="*.png" />
5151
<fileset dir="${rsrc}" includes="*.rtf" />
52-
<fileset dir="${rsrc}" includes="*.wav" />
52+
<!--need to fix to add .wav files at /soundFiles <fileset dir="${rsrc}" includes="*.wav" />-->
53+
<!--need to fix to add .png files at /icons /> -->
5354
</copy>
5455
<copy todir="${build}/src/org/teachingextensions/logo">
5556
<fileset dir="${rsrc}" includes="*.png" />

src/main/java/org/teachingextensions/logo/Sound.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ public static void playBeep()
2323
Toolkit.getDefaultToolkit().beep();
2424
}
2525
/**
26-
* Current types are: CatMeow, Crickets
26+
* Check out our cool sounds - thanks to http://www.wavsource.com/
2727
*/
2828
public enum TKPSound {
29-
CatMeow, Crickets
29+
Ahem, Applause, BrainIsGone, CatMeow, Cheering, Crickets, DoctorMccoy, Fanfare, FargoYah, Gong, LLCoolJYaKnow,
30+
LosingPower, Malfunction, Pizza, RunAway, SheerIgnorance, SoBeIt, StrangePerson, Stubborn, Yahoo, Yay
3031
}
3132
private String soundFilename = null;
3233
public synchronized void setSound(TKPSound mySound)
3334
{
34-
//String sound = "soundFiles/" + mySound + ".wav";
35-
String sound = mySound + ".wav";
35+
String sound = "soundFiles/" + mySound + ".wav";
3636
URL resource = this.getClass().getResource(sound);
3737
if (resource == null)
3838
{

src/main/java/org/teachingkidsprogramming/recipes/completed/section00demos/RecipeForTestingVirtualProctor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static void main(String[] args) throws Exception
2222
Tortoise.move(75);
2323
Tortoise.turn(360 / sides);
2424
Sound s = new Sound();
25-
s.setSound(Sound.TKPSound.CatMeow);
25+
s.setSound(Sound.TKPSound.SoBeIt);
2626
s.playSound();
2727
}
2828
VirtualProctor.setClassName("TKPHouseAtHome");

src/main/resources/CatMeow.wav

-8.76 KB
Binary file not shown.

src/main/resources/Crickets.wav

-221 KB
Binary file not shown.

src/main/resources/arrow-down.png

-2.15 KB
Binary file not shown.

src/main/resources/arrow-left.png

-2.09 KB
Binary file not shown.

src/main/resources/arrow-right.png

-1.97 KB
Binary file not shown.

src/main/resources/arrow-up.png

-2.04 KB
Binary file not shown.
-7.43 KB
Binary file not shown.

0 commit comments

Comments
 (0)