Add sfx use, minor formatting change
This commit is contained in:
parent
b7ee7d93ec
commit
5bdce23b8e
1 changed files with 11 additions and 1 deletions
12
src/main.rs
12
src/main.rs
|
@ -147,7 +147,13 @@ impl Menu {
|
||||||
Menu {
|
Menu {
|
||||||
items: vec![
|
items: vec![
|
||||||
item,
|
item,
|
||||||
Menu::instant_text(70.0, 50.0, 55.0, true, "One And All - A Ludum Dare 45 Entry"),
|
Menu::instant_text(
|
||||||
|
70.0,
|
||||||
|
50.0,
|
||||||
|
55.0,
|
||||||
|
true,
|
||||||
|
"One And All - A Ludum Dare 45 Entry",
|
||||||
|
),
|
||||||
Menu::instant_text(
|
Menu::instant_text(
|
||||||
25.0,
|
25.0,
|
||||||
HEIGHT_F - 100.0,
|
HEIGHT_F - 100.0,
|
||||||
|
@ -1113,6 +1119,10 @@ impl State for GameState {
|
||||||
self.joining_particles.particle_system.color =
|
self.joining_particles.particle_system.color =
|
||||||
Color::from_rgba(0xFF, 0xAA, 0xAA, 1.0);
|
Color::from_rgba(0xFF, 0xAA, 0xAA, 1.0);
|
||||||
}
|
}
|
||||||
|
self.s_get.execute(|s| {
|
||||||
|
s.set_volume(0.7);
|
||||||
|
s.play()
|
||||||
|
})?;
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
self.state = 0;
|
self.state = 0;
|
||||||
|
|
Loading…
Reference in a new issue