mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
Fix warnings
This commit is contained in:
parent
a8ba0c4d7d
commit
2e181ad0ea
|
@ -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 => {
|
||||
|
|
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue