prioritise audio and deprioritise objects

This commit is contained in:
Corwin 2023-04-17 23:48:48 +01:00
parent a5c1d62cad
commit f67ffac227
No known key found for this signature in database

View file

@ -2269,12 +2269,12 @@ fn game_with_level(gba: &mut agb::Gba) {
); );
start_at_boss = loop { start_at_boss = loop {
sfx.frame();
vblank.wait_for_vblank(); vblank.wait_for_vblank();
object.commit(); sfx.frame();
game.level.background.commit(&mut vram); game.level.background.commit(&mut vram);
game.level.foreground.commit(&mut vram); game.level.foreground.commit(&mut vram);
game.level.clouds.commit(&mut vram); game.level.clouds.commit(&mut vram);
object.commit();
match game.advance_frame(&object, &mut vram, &mut sfx) { match game.advance_frame(&object, &mut vram, &mut sfx) {
GameStatus::Continue => {} GameStatus::Continue => {}
GameStatus::Lost => { GameStatus::Lost => {