mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
Fix warnings
This commit is contained in:
parent
a8ba0c4d7d
commit
2e181ad0ea
|
@ -7,8 +7,6 @@ extern crate alloc;
|
||||||
mod rng;
|
mod rng;
|
||||||
mod sfx;
|
mod sfx;
|
||||||
|
|
||||||
use core::borrow::Borrow;
|
|
||||||
|
|
||||||
use alloc::vec::Vec;
|
use alloc::vec::Vec;
|
||||||
|
|
||||||
use rng::get_random;
|
use rng::get_random;
|
||||||
|
@ -1501,7 +1499,6 @@ impl<'a> Particle<'a> {
|
||||||
enum GameStatus {
|
enum GameStatus {
|
||||||
Continue,
|
Continue,
|
||||||
Lost,
|
Lost,
|
||||||
Won,
|
|
||||||
RespawnAtBoss,
|
RespawnAtBoss,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2192,7 +2189,7 @@ fn game_with_level(gba: &mut agb::Gba) {
|
||||||
sfx.vblank();
|
sfx.vblank();
|
||||||
match game.advance_frame(&object, &mut sfx) {
|
match game.advance_frame(&object, &mut sfx) {
|
||||||
GameStatus::Continue => {}
|
GameStatus::Continue => {}
|
||||||
GameStatus::Lost | GameStatus::Won => {
|
GameStatus::Lost => {
|
||||||
break false;
|
break false;
|
||||||
}
|
}
|
||||||
GameStatus::RespawnAtBoss => {
|
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 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: &[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 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");
|
const BLUE_SPIRIT: &[u8] = agb::include_wav!("sfx/03 - Blue Spirit (Main Loop).wav");
|
||||||
|
|
||||||
pub struct Sfx<'a> {
|
pub struct Sfx<'a> {
|
||||||
|
|
Loading…
Reference in a new issue