diff --git a/examples/the-purple-night/src/lib.rs b/examples/the-purple-night/src/lib.rs index a116061d..5c370ab8 100644 --- a/examples/the-purple-night/src/lib.rs +++ b/examples/the-purple-night/src/lib.rs @@ -2266,8 +2266,8 @@ fn game_with_level(gba: &mut agb::Gba) { ); start_at_boss = loop { - vblank.wait_for_vblank(); sfx.frame(); + vblank.wait_for_vblank(); game.level.background.commit(&mut vram); game.level.foreground.commit(&mut vram); game.level.clouds.commit(&mut vram);