mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
Move uses to the top and allow default features
This commit is contained in:
parent
10c97f48d8
commit
5197f5b37d
|
@ -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"] }
|
||||
|
|
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue