diff --git a/examples/combo/gfx/games.toml b/examples/combo/gfx/games.toml deleted file mode 100644 index 6fa1825..0000000 --- a/examples/combo/gfx/games.toml +++ /dev/null @@ -1,16 +0,0 @@ -version = "1.0" - -[image.hat] -filename = "hat.png" -tile_size = "8x8" -transparent_colour = "121105" - -[image.purple] -filename = "purple.png" -tile_size = "8x8" -transparent_colour = "121105" - -[image.hyperspace] -filename = "hyperspace.png" -tile_size = "8x8" -transparent_colour = "121105" diff --git a/examples/combo/src/lib.rs b/examples/combo/src/lib.rs index 9d341eb..0092078 100644 --- a/examples/combo/src/lib.rs +++ b/examples/combo/src/lib.rs @@ -12,7 +12,7 @@ use agb::{ Priority, }, fixnum::{Num, Vector2D}, - include_gfx, + include_background_gfx, input::Button, }; @@ -42,7 +42,12 @@ impl Game { } } -include_gfx!("gfx/games.toml"); +include_background_gfx!( + games, "121105", + hat => "gfx/hat.png", + purple => "gfx/purple.png", + hyperspace => "gfx/hyperspace.png" +); fn get_game(gba: &mut agb::Gba) -> Game { let mut input = agb::input::ButtonController::new();