mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-10 00:51:34 +11:00
Update the big examples too
This commit is contained in:
parent
cf9ea504f6
commit
9feab2b689
|
@ -33,9 +33,7 @@ mod gfx {
|
||||||
// ensures that everything is in order. `agb` will call this after setting up the stack
|
// ensures that everything is in order. `agb` will call this after setting up the stack
|
||||||
// and interrupt handlers correctly.
|
// and interrupt handlers correctly.
|
||||||
#[agb::entry]
|
#[agb::entry]
|
||||||
fn main() -> ! {
|
fn main(mut gba: Gba) -> ! {
|
||||||
let mut gba = Gba::new();
|
|
||||||
|
|
||||||
let _tiled = gba.display.video.tiled0();
|
let _tiled = gba.display.video.tiled0();
|
||||||
let mut object = gba.display.object.get();
|
let mut object = gba.display.object.get();
|
||||||
gfx::load_sprite_data(&mut object);
|
gfx::load_sprite_data(&mut object);
|
||||||
|
|
|
@ -772,10 +772,8 @@ impl<'a, 'b, 'c> PlayingLevel<'a, 'b> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[agb::entry]
|
||||||
pub fn main() -> ! {
|
fn main(mut agb: agb::Gba) -> ! {
|
||||||
let mut agb = agb::Gba::new();
|
|
||||||
|
|
||||||
splash_screen::show_splash_screen(&mut agb, splash_screen::SplashScreen::Start, None, None);
|
splash_screen::show_splash_screen(&mut agb, splash_screen::SplashScreen::Start, None, None);
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
|
|
|
@ -2207,9 +2207,7 @@ mod tilemap {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[agb::entry]
|
#[agb::entry]
|
||||||
fn main() -> ! {
|
fn main(mut gba: agb::Gba) -> ! {
|
||||||
let mut gba = agb::Gba::new();
|
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
game_with_level(&mut gba);
|
game_with_level(&mut gba);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue