Updates
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -1,6 +1,6 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>WinExe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net5.0</TargetFramework>
|
<TargetFramework>net5.0</TargetFramework>
|
||||||
<PublishReadyToRun>false</PublishReadyToRun>
|
<PublishReadyToRun>false</PublishReadyToRun>
|
||||||
<TieredCompilation>false</TieredCompilation>
|
<TieredCompilation>false</TieredCompilation>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace EvilSatellites
|
|||||||
public static bool PreferSAPI = true;
|
public static bool PreferSAPI = true;
|
||||||
public static bool UseForceFeedback = true;
|
public static bool UseForceFeedback = true;
|
||||||
public static bool EnableAI = true;
|
public static bool EnableAI = true;
|
||||||
|
public static float MusicVolume = 0.2f;
|
||||||
public static void SaveSettings()
|
public static void SaveSettings()
|
||||||
{
|
{
|
||||||
if (!Directory.Exists(SettingsDirectory))
|
if (!Directory.Exists(SettingsDirectory))
|
||||||
@@ -27,6 +27,7 @@ namespace EvilSatellites
|
|||||||
file.Write(PreferSAPI);
|
file.Write(PreferSAPI);
|
||||||
file.Write(UseForceFeedback);
|
file.Write(UseForceFeedback);
|
||||||
file.Write(EnableAI);
|
file.Write(EnableAI);
|
||||||
|
file.Write(MusicVolume);
|
||||||
file.Close();
|
file.Close();
|
||||||
} catch (Exception e)
|
} catch (Exception e)
|
||||||
{
|
{
|
||||||
@@ -51,6 +52,7 @@ namespace EvilSatellites
|
|||||||
PreferSAPI = file.ReadBoolean();
|
PreferSAPI = file.ReadBoolean();
|
||||||
UseForceFeedback = file.ReadBoolean();
|
UseForceFeedback = file.ReadBoolean();
|
||||||
EnableAI = file.ReadBoolean();
|
EnableAI = file.ReadBoolean();
|
||||||
|
MusicVolume = (float)file.ReadSingle();
|
||||||
file.Close();
|
file.Close();
|
||||||
} catch (Exception e)
|
} catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ namespace EvilSatellites
|
|||||||
public MusicManager(Synthy engine)
|
public MusicManager(Synthy engine)
|
||||||
{
|
{
|
||||||
Engine = engine;
|
Engine = engine;
|
||||||
_Volume = 0.2f;
|
_Volume = GameSettings.MusicVolume;
|
||||||
IsPlaying = false;
|
IsPlaying = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -82,5 +82,9 @@
|
|||||||
<li>Writing, testing: <a href="mailto:mayana@protonmail.com">Mayana</a></li>
|
<li>Writing, testing: <a href="mailto:mayana@protonmail.com">Mayana</a></li>
|
||||||
<li>Voice acting (AI): <a href="mailto:raven.oska@gmail.com">Raven Oska</a></li>
|
<li>Voice acting (AI): <a href="mailto:raven.oska@gmail.com">Raven Oska</a></li>
|
||||||
<li>Testing: Defender AKA Superfreq</li>
|
<li>Testing: Defender AKA Superfreq</li>
|
||||||
|
<li><a href="https://github.com/dkager/tolk">Tolk</a></li>
|
||||||
|
<li><a href="https://github.com/nvaccess/nvda/tree/master/extras/controllerClient">NVDA Controller client</a></li>
|
||||||
|
<li><a href="https://www.monogame.net">MonoGame</a></li>
|
||||||
|
<li><a href="https://github.com/synthizer/synthizer">Synthizer</a></li>
|
||||||
<li><a href="https://shiftbacktick.io">Shift Backtick</a> and <a href="https://discord.com/invite/565Dgaw">the AudioGameDev discord server</a> for the game jam, the server, many fun conversations and a fantastic time!</li>
|
<li><a href="https://shiftbacktick.io">Shift Backtick</a> and <a href="https://discord.com/invite/565Dgaw">the AudioGameDev discord server</a> for the game jam, the server, many fun conversations and a fantastic time!</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user