cargo fix in hat chooses wizard

This commit is contained in:
Gwilym Kuiper 2022-03-23 20:56:05 +00:00
parent c136a3669e
commit 8af673501d
2 changed files with 5 additions and 5 deletions

View file

@ -2,7 +2,7 @@ use crate::TAG_MAP;
use super::{sfx::SfxPlayer, Entity, FixedNumberType, HatState, Level};
use agb::{
display::object::{ObjectController, Size, Tag},
display::object::{ObjectController, Tag},
fixnum::Vector2D,
};
@ -140,7 +140,7 @@ pub struct Slime<'a> {
impl<'a> Slime<'a> {
fn new(object: &'a ObjectController, start_pos: Vector2D<FixedNumberType>) -> Self {
let mut slime = Slime {
let slime = Slime {
enemy_info: EnemyInfo::new(object, start_pos, (14u16, 14u16).into()),
state: SlimeState::Idle,
};
@ -262,7 +262,7 @@ pub struct Snail<'a> {
impl<'a> Snail<'a> {
fn new(object: &'a ObjectController, start_pos: Vector2D<FixedNumberType>) -> Self {
let mut snail = Snail {
let snail = Snail {
enemy_info: EnemyInfo::new(object, start_pos, (16u16, 16u16).into()),
state: SnailState::Idle(0),
};

View file

@ -5,7 +5,7 @@ extern crate alloc;
use agb::{
display::{
object::{Graphics, Object, ObjectController, Sprite, Tag, TagMap},
object::{Graphics, Object, ObjectController, Tag, TagMap},
tiled::{
InfiniteScrolledMap, PartialUpdateStatus, TileFormat, TileSet, TileSetting, VRamManager,
},
@ -813,7 +813,7 @@ fn main(mut agb: agb::Gba) -> ! {
loop {
vram.set_background_palettes(tile_sheet::background.palettes);
let mut object = agb.display.object.get();
let object = agb.display.object.get();
let mut timer_controller = agb.timers.timers();
let mut mixer = agb.mixer.mixer(&mut timer_controller.timer0);