Skip to content

Commit

Permalink
Ensure that the affine background example looks consistent (#523)
Browse files Browse the repository at this point in the history
Fixes #522

- [x] Changelog updated / no changelog update needed
  • Loading branch information
gwilymk authored Dec 5, 2023
2 parents 5e8e816 + 35c601d commit 904c702
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions agb/examples/affine_background.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ use agb::{
include_background_gfx,
};

include_background_gfx!(affine_tiles, water_tiles => 256 "examples/water_tiles.png");
include_background_gfx!(affine_tiles, "3f3f74", water_tiles => 256 "examples/water_tiles.png");

#[agb::entry]
fn main(mut gba: agb::Gba) -> ! {
let (gfx, mut vram) = gba.display.video.tiled2();
let (gfx, mut vram) = gba.display.video.tiled1();
let vblank = agb::interrupt::VBlank::get();

let tileset = affine_tiles::water_tiles.tiles;

vram.set_background_palettes(affine_tiles::PALETTES);

let mut bg = gfx.background(Priority::P0, AffineBackgroundSize::Background32x32);
let mut bg = gfx.affine(Priority::P0, AffineBackgroundSize::Background32x32);

for y in 0..32u16 {
for x in 0..32u16 {
Expand Down

0 comments on commit 904c702

Please sign in to comment.