fix warnings

This commit is contained in:
Corwin 2023-04-25 21:00:26 +01:00
parent 4ea75bc064
commit d54560f362
No known key found for this signature in database

View file

@ -9,10 +9,10 @@ extern crate alloc;
use agb::{ use agb::{
display::{ display::{
self, self,
affine::{self, AffineMatrix}, affine::AffineMatrix,
object::{ object::{
AffineMatrixInstance, AffineMode, Graphics, OamIterator, ObjectUnmanaged, Sprite, AffineMatrixInstance, AffineMode, Graphics, OamIterator, ObjectUnmanaged, Sprite,
SpriteLoader, SpriteVram, Tag, TagMap, SpriteLoader, SpriteVram, Tag,
}, },
palette16::Palette16, palette16::Palette16,
}, },
@ -124,7 +124,6 @@ struct Game {
head_position: Vector2D<Number>, head_position: Vector2D<Number>,
phase_time: Number, phase_time: Number,
input: ButtonController, input: ButtonController,
energy: Number,
frame_since_last_saw: i32, frame_since_last_saw: i32,
alive_frames: u32, alive_frames: u32,
} }
@ -150,7 +149,6 @@ impl Game {
} }
Game { Game {
energy: 100.into(),
input: agb::input::ButtonController::new(), input: agb::input::ButtonController::new(),
settings: finalised, settings: finalised,
circles, circles,
@ -362,7 +360,7 @@ pub fn main(mut gba: agb::Gba) -> ! {
); );
game.render(oam_frame, &sprite_cache); game.render(oam_frame, &sprite_cache);
if let GameState::Loss(score) = state { if let GameState::Loss(_) = state {
for _ in 0..30 { for _ in 0..30 {
vblank.wait_for_vblank(); vblank.wait_for_vblank();
} }