mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 09:31:34 +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
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
agb = { version = "0.8.0", path = "../../agb", default-features = false }
|
agb = { version = "0.8.0", path = "../../agb" }
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
|
|
|
@ -1,6 +1,16 @@
|
||||||
#![no_std]
|
#![no_std]
|
||||||
#![no_main]
|
#![no_main]
|
||||||
|
|
||||||
|
use agb::{
|
||||||
|
display::{
|
||||||
|
background::BackgroundRegular,
|
||||||
|
object::{ObjectControl, ObjectStandard, Size},
|
||||||
|
Priority, HEIGHT, WIDTH,
|
||||||
|
},
|
||||||
|
fixnum::{FixedNum, Vector2D},
|
||||||
|
input::{self, Button, ButtonController},
|
||||||
|
};
|
||||||
|
|
||||||
mod enemies;
|
mod enemies;
|
||||||
mod level_display;
|
mod level_display;
|
||||||
mod sfx;
|
mod sfx;
|
||||||
|
@ -103,16 +113,6 @@ mod map_tiles {
|
||||||
|
|
||||||
agb::include_gfx!("gfx/tile_sheet.toml");
|
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>;
|
type FixedNumberType = FixedNum<10>;
|
||||||
|
|
||||||
pub struct Entity<'a> {
|
pub struct Entity<'a> {
|
||||||
|
|
Loading…
Reference in a new issue