mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 00:01:34 +11:00
Update agb repo
This commit is contained in:
parent
b5af3a3aff
commit
3d7d3f25a2
|
@ -93,7 +93,7 @@ pub(crate) fn generate_code(
|
|||
let palette_assignment = assignments.get(data.new_index).unwrap_or(&0);
|
||||
let vflipped = data.transformation.vflip;
|
||||
let hflipped = data.transformation.hflip;
|
||||
let index= data.new_index as u16;
|
||||
let index = data.new_index as u16;
|
||||
|
||||
quote! {
|
||||
#crate_prefix::display::tiled::TileSetting::new(#index, #hflipped, #vflipped, #palette_assignment)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
use agb::{
|
||||
display::{
|
||||
tiled::{RegularBackgroundSize, TileFormat, TileSet, TileSetting, TiledMap},
|
||||
tiled::{RegularBackgroundSize, TileFormat, TileSet, TiledMap},
|
||||
Priority,
|
||||
},
|
||||
include_background_gfx,
|
||||
|
@ -32,7 +32,7 @@ fn main(mut gba: agb::Gba) -> ! {
|
|||
&mut vram,
|
||||
(x, y).into(),
|
||||
&tileset,
|
||||
TileSetting::new(0, false, false, 0),
|
||||
water_tiles::water_tiles.tile_settings[0],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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) {
|
||||
vram.set_background_palettes(agb_logo::PALETTES);
|
||||
|
|
Loading…
Reference in a new issue