Skip to content

Tate Patch-2#24

Open
sontate72 wants to merge 1 commit intomasterfrom
tate-patch-2
Open

Tate Patch-2#24
sontate72 wants to merge 1 commit intomasterfrom
tate-patch-2

Conversation

@sontate72
Copy link

Adds music to the project.

Changes to project folder:
-Added files "song1.wav" and "song2.wav" to the src/sounds folder
-Modified file "victory.wav" to match the music

Changes to ArcadeDemo.java:
-Modified renderFrame() to handle music
-Modified initMusic() to include songs
-Added methods startMusic() and stopMusic()

Changes to Room.java:
-Added method getSong(), which controls which song should play in the room (defaults to 1)

By default, every room will play song 1, but you can change that by overriding the getSong() method. Song 2 is a remix of song 1, so maybe it should be used for longer/more difficult rooms. Or maybe song 1 plays during the first half of the game, and song 2 plays during the second half. Since Mr. Spock may alter the room order in the final project, I'm leaving this part up to him.

-Tate

Adds music to the project.

Changes to project folder:
-Added files "song1.wav" and "song2.wav" to the src/sounds folder
-Modified file "victory.wav" to match the music

Changes to ArcadeDemo.java:
-Modified renderFrame() to handle music
-Modified initMusic() to include songs
-Added methods startMusic() and stopMusic()

Changes to Room.java:
-Added method getSong(), which controls which song should play in the room (defaults to 1)

By default, every room will play song 1, but you can change that by overriding the getSong() method. Song 2 is a remix of song 1, so maybe it should be used for longer/more difficult rooms. Or maybe song 1 plays during the first half of the game, and song 2 plays during the second half. Since Mr. Spock may alter the room order in the final project, I'm leaving this part up to him.

-Tate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant