mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
Hide backgrounds after each level
This commit is contained in:
parent
f655e08665
commit
7d870163c3
|
@ -650,6 +650,11 @@ impl<'a, 'b, 'c> PlayingLevel<'a, 'b> {
|
||||||
self.background.foreground.show();
|
self.background.foreground.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn hide_backgrounds(&mut self) {
|
||||||
|
self.background.background.hide();
|
||||||
|
self.background.background.hide();
|
||||||
|
}
|
||||||
|
|
||||||
fn dead_start(&mut self) {
|
fn dead_start(&mut self) {
|
||||||
self.player.wizard.velocity = (0, -1).into();
|
self.player.wizard.velocity = (0, -1).into();
|
||||||
self.player.wizard.sprite.set_priority(Priority::P0);
|
self.player.wizard.sprite.set_priority(Priority::P0);
|
||||||
|
@ -908,6 +913,8 @@ fn main(mut agb: agb::Gba) -> ! {
|
||||||
vblank.wait_for_vblank();
|
vblank.wait_for_vblank();
|
||||||
mixer.after_vblank();
|
mixer.after_vblank();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
level.hide_backgrounds();
|
||||||
}
|
}
|
||||||
|
|
||||||
splash_screen::show_splash_screen(
|
splash_screen::show_splash_screen(
|
||||||
|
|
Loading…
Reference in a new issue