mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +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 {
|
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 => {
|
||||||
|
|
Loading…
Reference in a new issue