diff --git a/Assets/sfx/maw.mp3 b/Assets/sfx/maw.mp3 new file mode 100644 index 0000000..1a2d348 --- /dev/null +++ b/Assets/sfx/maw.mp3 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fdb7e67f6a94c7c26ea85653574d1a9cef4b7f40a57899f163cdb4862e7cf8c8 +size 5631 diff --git a/src/Mono.cs b/src/Mono.cs index fe8e783..4768ac9 100644 --- a/src/Mono.cs +++ b/src/Mono.cs @@ -130,6 +130,10 @@ static class Mono } food_next.Step(!Mono.eaten_latch.state && (Mono.snake[0] + Mono.snake_dir) == Mono.food); + if (food_next.delta == +1) + { + SFX.maw.PlayBox(Mono.snake[0]); + } } public static void Step() diff --git a/src/SFX.cs b/src/SFX.cs index 79c27af..d25c569 100644 --- a/src/SFX.cs +++ b/src/SFX.cs @@ -10,6 +10,7 @@ static class SFX } public static Sound click = Sound.FromFile("sfx/click.mp3"); + public static Sound maw = Sound.FromFile("sfx/maw.mp3"); public static Sound crisp_nom = Sound.FromFile("sfx/crisp_nom.mp3"); public static Sound punch_through = Sound.FromFile("sfx/punch_through.mp3"); } \ No newline at end of file