click sfx

This commit is contained in:
ethan merchant 2024-11-04 06:20:38 -05:00
parent bd00529811
commit e9a317bfec
4 changed files with 8 additions and 2 deletions

BIN
Assets/sfx/click.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -2,8 +2,8 @@
<manifest <manifest
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
package="com.dofdev.snake" package="com.dofdev.snake"
android:versionCode="6" android:versionCode="7"
android:versionName="1.06" android:versionName="1.07"
android:installLocation="auto" android:installLocation="auto"
> >
<uses-sdk android:minSdkVersion="29" android:targetSdkVersion="32" /> <uses-sdk android:minSdkVersion="29" android:targetSdkVersion="32" />

View file

@ -45,6 +45,7 @@ static class Mono
if (Rig.btn_trigger.delta == +1) if (Rig.btn_trigger.delta == +1)
{ {
menu = !menu; menu = !menu;
SFX.click.PlayBox(new XYZi(0, 0, Mono.SD_Z + 1));
} }
// flatscreen dev controls // flatscreen dev controls

View file

@ -8,6 +8,8 @@ static class SFX
{ {
sound.Play(Mono.box_pose.ToMatrix(Mono.box_scale) * pos.ToVec3); sound.Play(Mono.box_pose.ToMatrix(Mono.box_scale) * pos.ToVec3);
} }
public static Sound click = Sound.FromFile("sfx/click.mp3");
public static Sound crisp_nom = Sound.FromFile("sfx/crisp_nom.mp3"); public static Sound crisp_nom = Sound.FromFile("sfx/crisp_nom.mp3");
public static Sound punch_through = Sound.FromFile("sfx/punch_through.mp3"); public static Sound punch_through = Sound.FromFile("sfx/punch_through.mp3");
} }