Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Specification_Soundplayer

Kristian Aksland edited this page Apr 8, 2019 · 2 revisions

Sound

The Sound enum is declaring an enum value for each sound, it also contains a static variable for the backgroundMusic. The enum has a play() method which plays the corresponding sound.

Convention

When adding new sounds to the game, the files should be in a .wav format and saved in assets/sound the name of the file should be camelCase with no spaces, and the name of the enum value should be uppercase_with _ as spaces.