mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
prioritise audio and deprioritise objects
This commit is contained in:
parent
a5c1d62cad
commit
f67ffac227
|
@ -2269,12 +2269,12 @@ fn game_with_level(gba: &mut agb::Gba) {
|
|||
);
|
||||
|
||||
start_at_boss = loop {
|
||||
sfx.frame();
|
||||
vblank.wait_for_vblank();
|
||||
object.commit();
|
||||
sfx.frame();
|
||||
game.level.background.commit(&mut vram);
|
||||
game.level.foreground.commit(&mut vram);
|
||||
game.level.clouds.commit(&mut vram);
|
||||
object.commit();
|
||||
match game.advance_frame(&object, &mut vram, &mut sfx) {
|
||||
GameStatus::Continue => {}
|
||||
GameStatus::Lost => {
|
||||
|
|
Loading…
Reference in a new issue