mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +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);
|
||||
|
||||
let mut background = InfiniteScrolledMap::new(
|
||||
tiled.background(Priority::P1),
|
||||
tiled.background(Priority::P2),
|
||||
Box::new(move |pos: Vector2D<i32>| {
|
||||
let level = &map_tiles::LEVELS[current_level as usize];
|
||||
(
|
||||
|
@ -851,7 +851,7 @@ fn main(mut agb: agb::Gba) -> ! {
|
|||
}),
|
||||
);
|
||||
let mut foreground = InfiniteScrolledMap::new(
|
||||
tiled.background(Priority::P2),
|
||||
tiled.background(Priority::P0),
|
||||
Box::new(move |pos: Vector2D<i32>| {
|
||||
let level = &map_tiles::LEVELS[current_level as usize];
|
||||
(
|
||||
|
|
Loading…
Reference in a new issue