Update agb repo

This commit is contained in:
Gwilym Inzani 2023-08-29 14:13:40 +01:00
parent b5af3a3aff
commit 3d7d3f25a2
3 changed files with 4 additions and 4 deletions

View file

@ -93,7 +93,7 @@ pub(crate) fn generate_code(
let palette_assignment = assignments.get(data.new_index).unwrap_or(&0); let palette_assignment = assignments.get(data.new_index).unwrap_or(&0);
let vflipped = data.transformation.vflip; let vflipped = data.transformation.vflip;
let hflipped = data.transformation.hflip; let hflipped = data.transformation.hflip;
let index= data.new_index as u16; let index = data.new_index as u16;
quote! { quote! {
#crate_prefix::display::tiled::TileSetting::new(#index, #hflipped, #vflipped, #palette_assignment) #crate_prefix::display::tiled::TileSetting::new(#index, #hflipped, #vflipped, #palette_assignment)

View file

@ -3,7 +3,7 @@
use agb::{ use agb::{
display::{ display::{
tiled::{RegularBackgroundSize, TileFormat, TileSet, TileSetting, TiledMap}, tiled::{RegularBackgroundSize, TileFormat, TileSet, TiledMap},
Priority, Priority,
}, },
include_background_gfx, include_background_gfx,
@ -32,7 +32,7 @@ fn main(mut gba: agb::Gba) -> ! {
&mut vram, &mut vram,
(x, y).into(), (x, y).into(),
&tileset, &tileset,
TileSetting::new(0, false, false, 0), water_tiles::water_tiles.tile_settings[0],
); );
} }
} }

View file

@ -1,6 +1,6 @@
use super::tiled::{RegularMap, TileFormat, TileSet, TiledMap, VRamManager}; use super::tiled::{RegularMap, TileFormat, TileSet, TiledMap, VRamManager};
crate::include_background_gfx!(crate, agb_logo, test_logo => "gfx/test_logo.png"); crate::include_background_gfx!(crate, agb_logo, test_logo => deduplicate "gfx/test_logo.png");
pub fn display_logo(map: &mut RegularMap, vram: &mut VRamManager) { pub fn display_logo(map: &mut RegularMap, vram: &mut VRamManager) {
vram.set_background_palettes(agb_logo::PALETTES); vram.set_background_palettes(agb_logo::PALETTES);