mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 01:21:34 +11:00
satisfy linter
This commit is contained in:
parent
fbdb91e9e0
commit
1afb3cc08b
|
@ -2,11 +2,10 @@
|
||||||
#![feature(start)]
|
#![feature(start)]
|
||||||
|
|
||||||
extern crate gba;
|
extern crate gba;
|
||||||
use core::convert::{Into, TryInto};
|
use core::convert::TryInto;
|
||||||
use gba::{
|
use gba::{
|
||||||
display::{object::ObjectStandard, tiled0, HEIGHT, WIDTH},
|
display::{object::ObjectStandard, tiled0, HEIGHT, WIDTH},
|
||||||
input::Button,
|
input::Button,
|
||||||
number::Num,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#[derive(PartialEq, Eq)]
|
#[derive(PartialEq, Eq)]
|
||||||
|
@ -134,7 +133,7 @@ fn update_chicken_object(chicken: &mut Character, state: State, frame_count: u32
|
||||||
} else if chicken.velocity.x < -1 {
|
} else if chicken.velocity.x < -1 {
|
||||||
chicken.object.set_hflip(true);
|
chicken.object.set_hflip(true);
|
||||||
}
|
}
|
||||||
match (state) {
|
match state {
|
||||||
State::Ground => {
|
State::Ground => {
|
||||||
if chicken.velocity.x.abs() > 1 << 4 {
|
if chicken.velocity.x.abs() > 1 << 4 {
|
||||||
chicken
|
chicken
|
||||||
|
|
Loading…
Reference in a new issue