maw sfx
This commit is contained in:
parent
f969d8382e
commit
7e63215827
3 changed files with 8 additions and 0 deletions
BIN
Assets/sfx/maw.mp3
(Stored with Git LFS)
Normal file
BIN
Assets/sfx/maw.mp3
(Stored with Git LFS)
Normal file
Binary file not shown.
|
@ -130,6 +130,10 @@ static class Mono
|
||||||
}
|
}
|
||||||
|
|
||||||
food_next.Step(!Mono.eaten_latch.state && (Mono.snake[0] + Mono.snake_dir) == Mono.food);
|
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()
|
public static void Step()
|
||||||
|
|
|
@ -10,6 +10,7 @@ static class SFX
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Sound click = Sound.FromFile("sfx/click.mp3");
|
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 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");
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue