mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
cargo fix in hat chooses wizard
This commit is contained in:
parent
c136a3669e
commit
8af673501d
|
@ -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),
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue