mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
Get the priorities correct (and start at level 8)
This commit is contained in:
parent
66a61e33e6
commit
aad5399240
|
@ -836,7 +836,7 @@ fn main(mut agb: agb::Gba) -> ! {
|
||||||
vram.set_background_palettes(tile_sheet::background.palettes);
|
vram.set_background_palettes(tile_sheet::background.palettes);
|
||||||
|
|
||||||
let mut background = InfiniteScrolledMap::new(
|
let mut background = InfiniteScrolledMap::new(
|
||||||
tiled.background(Priority::P1),
|
tiled.background(Priority::P2),
|
||||||
Box::new(move |pos: Vector2D<i32>| {
|
Box::new(move |pos: Vector2D<i32>| {
|
||||||
let level = &map_tiles::LEVELS[current_level as usize];
|
let level = &map_tiles::LEVELS[current_level as usize];
|
||||||
(
|
(
|
||||||
|
@ -851,7 +851,7 @@ fn main(mut agb: agb::Gba) -> ! {
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
let mut foreground = InfiniteScrolledMap::new(
|
let mut foreground = InfiniteScrolledMap::new(
|
||||||
tiled.background(Priority::P2),
|
tiled.background(Priority::P0),
|
||||||
Box::new(move |pos: Vector2D<i32>| {
|
Box::new(move |pos: Vector2D<i32>| {
|
||||||
let level = &map_tiles::LEVELS[current_level as usize];
|
let level = &map_tiles::LEVELS[current_level as usize];
|
||||||
(
|
(
|
||||||
|
|
Loading…
Reference in a new issue