diff --git a/examples/the-purple-night/src/main.rs b/examples/the-purple-night/src/main.rs index 08b8514..ecb50f7 100644 --- a/examples/the-purple-night/src/main.rs +++ b/examples/the-purple-night/src/main.rs @@ -7,8 +7,6 @@ extern crate alloc; mod rng; mod sfx; -use core::borrow::Borrow; - use alloc::vec::Vec; use rng::get_random; @@ -1501,7 +1499,6 @@ impl<'a> Particle<'a> { enum GameStatus { Continue, Lost, - Won, RespawnAtBoss, } @@ -2192,7 +2189,7 @@ fn game_with_level(gba: &mut agb::Gba) { sfx.vblank(); match game.advance_frame(&object, &mut sfx) { GameStatus::Continue => {} - GameStatus::Lost | GameStatus::Won => { + GameStatus::Lost => { break false; } GameStatus::RespawnAtBoss => { diff --git a/examples/the-purple-night/src/sfx.rs b/examples/the-purple-night/src/sfx.rs index 2bad5aa..5125795 100644 --- a/examples/the-purple-night/src/sfx.rs +++ b/examples/the-purple-night/src/sfx.rs @@ -22,9 +22,7 @@ const EMU_STEP: &[u8] = agb::include_wav!("sfx/EmuStep.wav"); const EMU_DEATH: &[u8] = agb::include_wav!("sfx/EmuDeath.wav"); const PURPLE_NIGHT: &[u8] = agb::include_wav!("sfx/01 - The Purple Night (Main Loop).wav"); -const PURPLE_NIGHT_INTRO: &[u8] = agb::include_wav!("sfx/01 - The Purple Night (Intro).wav"); const SUNRISE: &[u8] = agb::include_wav!("sfx/02 - Sunrise (Main Loop).wav"); -const BLANK_INTRO: &[u8] = agb::include_wav!("sfx/02 - Sunrise (Intro).wav"); const BLUE_SPIRIT: &[u8] = agb::include_wav!("sfx/03 - Blue Spirit (Main Loop).wav"); pub struct Sfx<'a> {