diff --git a/samples/golf/buildnumber.h b/samples/golf/buildnumber.h index 6cd2c9d48..2cc5a6d91 100644 --- a/samples/golf/buildnumber.h +++ b/samples/golf/buildnumber.h @@ -3,7 +3,7 @@ #ifndef BUILD_NUMBER_H_ #define BUILD_NUMBER_H_ -#define BUILDNUMBER 5438 -#define BUILDNUMBER_STR "5438" +#define BUILDNUMBER 5448 +#define BUILDNUMBER_STR "5448" #endif /* BUILD_NUMBER_H_ */ diff --git a/samples/golf/src/golf/GolfState.cpp b/samples/golf/src/golf/GolfState.cpp index d99e4ed20..d0940540f 100644 --- a/samples/golf/src/golf/GolfState.cpp +++ b/samples/golf/src/golf/GolfState.cpp @@ -6254,7 +6254,8 @@ void GolfState::startFlyBy() data.speeds[2] *= 1.f / SpeedMultiplier; //play the transition music - if (m_sharedData.gameMode == GameMode::Tutorial) + if (m_sharedData.gameMode == GameMode::Tutorial + && cro::AudioMixer::getVolume(MixerChannel::UserMusic) < 0.01f) { m_cameras[CameraID::Player].getComponent().play(); } @@ -6277,7 +6278,11 @@ void GolfState::startFlyBy() { showScoreboard(true); m_newHole = true; - m_cameras[CameraID::Player].getComponent().play(); + + if (cro::AudioMixer::getVolume(MixerChannel::UserMusic) < 0.01f) + { + m_cameras[CameraID::Player].getComponent().play(); + } //delayed ent just to show the score board for a while auto de = m_gameScene.createEntity(); diff --git a/samples/golf/src/golf/GolfStateUI.cpp b/samples/golf/src/golf/GolfStateUI.cpp index a9341dcc9..d5716cf6e 100644 --- a/samples/golf/src/golf/GolfStateUI.cpp +++ b/samples/golf/src/golf/GolfStateUI.cpp @@ -835,7 +835,7 @@ void GolfState::buildUI() const auto BarWidth = bounds.width - 8.f; const auto BarHeight = bounds.height; entity = m_uiScene.createEntity(); - entity.addComponent().setPosition(glm::vec3(5.f, 0.f, 0.1f)); //TODO expell the magic number!! + entity.addComponent().setPosition(glm::vec3(5.f, 0.f, 0.3f)); //TODO expell the magic number!! entity.addComponent(); entity.addComponent() = m_sprites[SpriteID::PowerBarInner]; bounds = entity.getComponent().getTextureBounds(); @@ -851,7 +851,7 @@ void GolfState::buildUI() //hook/slice indicator entity = m_uiScene.createEntity(); - entity.addComponent().setPosition(glm::vec3(BarCentre, 8.f, 0.25f)); + entity.addComponent().setPosition(glm::vec3(BarCentre, 8.f, 0.55f)); entity.addComponent(); entity.addComponent() = m_sprites[SpriteID::HookBar]; bounds = entity.getComponent().getTextureBounds(); @@ -860,7 +860,7 @@ void GolfState::buildUI() entity.getComponent().function = [&, BarCentre](cro::Entity e, float) { - glm::vec3 pos(std::round(BarCentre + (BarCentre * m_inputParser.getHook())), 8.f, 0.25f); + glm::vec3 pos(std::round(BarCentre + (BarCentre * m_inputParser.getHook())), 8.f, 0.55f); e.getComponent().setPosition(pos); }; barEnt.getComponent().addChild(entity.getComponent()); diff --git a/samples/golf/src/golf/OptionsState.cpp b/samples/golf/src/golf/OptionsState.cpp index 0b67a3944..22b63a20c 100644 --- a/samples/golf/src/golf/OptionsState.cpp +++ b/samples/golf/src/golf/OptionsState.cpp @@ -116,10 +116,10 @@ namespace const std::array MixerLabels = { "Menu Music", - "Effects Volume", - "Menu Volume", - "Voice Volume", - "Vehicle Volume", + "Effects", + "Menu Sounds", + "Voice", + "Vehicles", "Environment", "Game Music" }; @@ -1313,7 +1313,7 @@ void OptionsState::buildAVMenu(cro::Entity parent, const cro::SpriteSheet& sprit }; //audio label - auto audioLabel = createLabel(glm::vec2((bgBounds.width / 2.f) - 101.f, 156.f), "Music Volume"); + auto audioLabel = createLabel(glm::vec2((bgBounds.width / 2.f) - 101.f, 156.f), MixerLabels[mixerChannelIndex]); centreText(audioLabel); audioLabel.addComponent().active = true; audioLabel.getComponent().function = diff --git a/samples/golf/src/golf/Weather.cpp b/samples/golf/src/golf/Weather.cpp index bf15f4202..f06153f99 100644 --- a/samples/golf/src/golf/Weather.cpp +++ b/samples/golf/src/golf/Weather.cpp @@ -220,7 +220,7 @@ void GolfState::createWeather(std::int32_t weatherType) else { m_resources.shaders.loadFromString(ShaderID::Weather, WeatherVertex, RainFragment); - weatherColour = cro::Colour(0.86f, 0.87f, 0.873f); + weatherColour = cro::Colour(0.86f, 0.87f, 0.873f, 0.6f); //blendMode = cro::Material::BlendMode::Custom; //create audio entity