Skip to content

Commit

Permalink
Merge pull request #293 from SuperV1234/sound_update
Browse files Browse the repository at this point in the history
The Sound Update
  • Loading branch information
vittorioromeo authored Sep 19, 2020
2 parents cc0aea6 + 7173f69 commit a58375c
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 9 deletions.
9 changes: 9 additions & 0 deletions _RELEASE/Assets/Open Hexagon Assets License.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
OPEN HEXAGON SOUND LICENSE | © 2020 LukeMans (https://lukemans.carrd.co/)

The sound effects beep.ogg, death.ogg, error.ogg, increment.ogg, restart.ogg, select.ogg, and swap.ogg
are created by Luuk Zellenrath (known as LukeMans) and hereby grants irrevokable rights of the sounds
to be used for the game Open Hexagon. The sounds listed shall only be used by Open Hexagon, and cannot
be used in commercial content, including but not limited to, games, videos, music, etc. These sound
effects are allowed on video streaming sites, including but not limited to YouTube, Twitch, etc. under
17 U.S. Code § 107. Reuploads of the sound effects are prohibited and will be requested to be taken
down.
5 changes: 4 additions & 1 deletion _RELEASE/Assets/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@
[
"beep.ogg",
"death.ogg",
"error.ogg",
"gameOver.ogg",
"go.ogg",
"increment.ogg",
"levelUp.ogg",
"openHexagon.ogg",
"error.ogg",
"restart.ogg",
"select.ogg",
"swap.ogg"
]
}
Binary file modified _RELEASE/Assets/beep.ogg
Binary file not shown.
Binary file modified _RELEASE/Assets/death.ogg
Binary file not shown.
Binary file modified _RELEASE/Assets/error.ogg
Binary file not shown.
Binary file added _RELEASE/Assets/increment.ogg
Binary file not shown.
Binary file added _RELEASE/Assets/restart.ogg
Binary file not shown.
Binary file added _RELEASE/Assets/select.ogg
Binary file not shown.
Binary file modified _RELEASE/Assets/swap.ogg
Binary file not shown.
2 changes: 1 addition & 1 deletion src/SSVOpenHexagon/Core/HexagonDialogBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void HexagonDialogBox::drawDialogBox()

void HexagonDialogBox::clearDialogBox()
{
assets.playSound("beep.ogg");
assets.playSound("select.ogg");
dialogFrame.clear();
dialogText.clear();
}
Expand Down
4 changes: 4 additions & 0 deletions src/SSVOpenHexagon/Core/HexagonGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,9 @@ void HexagonGame::newGame(const std::string& mPackId, const std::string& mId,
if(!firstPlay)
{
runLuaFunction<void>("onUnload");
assets.playSound("restart.ogg");
} else {
assets.playSound("select.ogg");
}

runLuaFunction<void>("onInit");
Expand Down Expand Up @@ -449,6 +452,7 @@ void HexagonGame::sideChange(unsigned int mSideNumber)

mustChangeSides = false;

assets.playSound("increment.ogg");
runLuaFunction<void>("onIncrement");
}

Expand Down
10 changes: 3 additions & 7 deletions src/SSVOpenHexagon/Core/MenuGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ void MenuGame::downAction()
}
void MenuGame::okAction()
{
assets.playSound("beep.ogg");
assets.playSound("select.ogg");
touchDelay = 50.f;

if(state == States::EpilepsyWarning)
Expand Down Expand Up @@ -947,8 +947,6 @@ void MenuGame::createProfileAction()

void MenuGame::selectProfileAction()
{
assets.playSound("beep.ogg");

if(state != States::SMain)
{
return;
Expand All @@ -958,20 +956,18 @@ void MenuGame::selectProfileAction()
state = States::MWlcm;
return;
}
assets.playSound("beep.ogg");
assets.playSound("select.ogg");
enteredStr = "";
state = States::SLPSelect;
}

void MenuGame::openOptionsAction()
{
assets.playSound("beep.ogg");

if(state != States::SMain)
{
return;
}
assets.playSound("beep.ogg");
assets.playSound("select.ogg");
state = States::MOpts;
}

Expand Down

0 comments on commit a58375c

Please sign in to comment.