Update the big examples too

This commit is contained in:
Gwilym Kuiper 2022-01-16 21:44:17 +00:00
parent cf9ea504f6
commit 9feab2b689
3 changed files with 4 additions and 10 deletions

View file

@ -33,9 +33,7 @@ mod gfx {
// ensures that everything is in order. `agb` will call this after setting up the stack
// and interrupt handlers correctly.
#[agb::entry]
fn main() -> ! {
let mut gba = Gba::new();
fn main(mut gba: Gba) -> ! {
let _tiled = gba.display.video.tiled0();
let mut object = gba.display.object.get();
gfx::load_sprite_data(&mut object);

View file

@ -772,10 +772,8 @@ impl<'a, 'b, 'c> PlayingLevel<'a, 'b> {
}
}
#[no_mangle]
pub fn main() -> ! {
let mut agb = agb::Gba::new();
#[agb::entry]
fn main(mut agb: agb::Gba) -> ! {
splash_screen::show_splash_screen(&mut agb, splash_screen::SplashScreen::Start, None, None);
loop {

View file

@ -2207,9 +2207,7 @@ mod tilemap {
}
#[agb::entry]
fn main() -> ! {
let mut gba = agb::Gba::new();
fn main(mut gba: agb::Gba) -> ! {
loop {
game_with_level(&mut gba);
}