Get the priorities correct (and start at level 8)

This commit is contained in:
Gwilym Kuiper 2022-02-07 20:47:55 +00:00
parent 66a61e33e6
commit aad5399240

View file

@ -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];
( (