Move uses to the top and allow default features

This commit is contained in:
Gwilym Kuiper 2022-01-31 21:25:18 +00:00
parent 10c97f48d8
commit 5197f5b37d
2 changed files with 11 additions and 11 deletions

View file

@ -7,7 +7,7 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
agb = { version = "0.8.0", path = "../../agb", default-features = false }
agb = { version = "0.8.0", path = "../../agb" }
[build-dependencies]
serde = { version = "1.0", features = ["derive"] }

View file

@ -1,6 +1,16 @@
#![no_std]
#![no_main]
use agb::{
display::{
background::BackgroundRegular,
object::{ObjectControl, ObjectStandard, Size},
Priority, HEIGHT, WIDTH,
},
fixnum::{FixedNum, Vector2D},
input::{self, Button, ButtonController},
};
mod enemies;
mod level_display;
mod sfx;
@ -103,16 +113,6 @@ mod map_tiles {
agb::include_gfx!("gfx/tile_sheet.toml");
use agb::{
display::{
background::BackgroundRegular,
object::{ObjectControl, ObjectStandard, Size},
Priority, HEIGHT, WIDTH,
},
fixnum::{FixedNum, Vector2D},
input::{self, Button, ButtonController},
};
type FixedNumberType = FixedNum<10>;
pub struct Entity<'a> {