mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 08:41:34 +11:00
use public api
This commit is contained in:
parent
ecf31fa833
commit
6bafa3ebab
|
@ -248,60 +248,60 @@ static ChickenPalette: Palette16 =
|
||||||
Palette16::new([0x7C1E, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
|
Palette16::new([0x7C1E, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
|
||||||
|
|
||||||
static ChickenSprites: &[Sprite] = &[
|
static ChickenSprites: &[Sprite] = &[
|
||||||
Sprite {
|
Sprite::new(
|
||||||
palette: &ChickenPalette,
|
&ChickenPalette,
|
||||||
data: &[
|
&[
|
||||||
0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x10, 0x11, 0x10, 0x00, 0x10, 0x01, 0x10, 0x11,
|
0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x10, 0x11, 0x10, 0x00, 0x10, 0x01, 0x10, 0x11,
|
||||||
0x11, 0x01, 0x10, 0x11, 0x11, 0x01, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00,
|
0x11, 0x01, 0x10, 0x11, 0x11, 0x01, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00,
|
||||||
0x00, 0x10, 0x01, 0x00,
|
0x00, 0x10, 0x01, 0x00,
|
||||||
],
|
],
|
||||||
size: Size::S8x8,
|
Size::S8x8,
|
||||||
},
|
),
|
||||||
Sprite {
|
Sprite::new(
|
||||||
palette: &ChickenPalette,
|
&ChickenPalette,
|
||||||
data: &[
|
&[
|
||||||
0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x10, 0x11, 0x10, 0x00, 0x10, 0x01, 0x10, 0x11,
|
0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x10, 0x11, 0x10, 0x00, 0x10, 0x01, 0x10, 0x11,
|
||||||
0x11, 0x01, 0x10, 0x11, 0x11, 0x01, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x10, 0x00,
|
0x11, 0x01, 0x10, 0x11, 0x11, 0x01, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x10, 0x00,
|
||||||
0x10, 0x00, 0x00, 0x00,
|
0x10, 0x00, 0x00, 0x00,
|
||||||
],
|
],
|
||||||
size: Size::S8x8,
|
Size::S8x8,
|
||||||
},
|
),
|
||||||
Sprite {
|
Sprite::new(
|
||||||
palette: &ChickenPalette,
|
&ChickenPalette,
|
||||||
data: &[
|
&[
|
||||||
0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x10, 0x11, 0x10, 0x00, 0x10, 0x01, 0x10, 0x11,
|
0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x10, 0x11, 0x10, 0x00, 0x10, 0x01, 0x10, 0x11,
|
||||||
0x11, 0x01, 0x10, 0x11, 0x11, 0x01, 0x00, 0x10, 0x01, 0x00, 0x10, 0x01, 0x10, 0x00,
|
0x11, 0x01, 0x10, 0x11, 0x11, 0x01, 0x00, 0x10, 0x01, 0x00, 0x10, 0x01, 0x10, 0x00,
|
||||||
0x00, 0x00, 0x10, 0x00,
|
0x00, 0x00, 0x10, 0x00,
|
||||||
],
|
],
|
||||||
size: Size::S8x8,
|
Size::S8x8,
|
||||||
},
|
),
|
||||||
Sprite {
|
Sprite::new(
|
||||||
palette: &ChickenPalette,
|
&ChickenPalette,
|
||||||
data: &[
|
&[
|
||||||
0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x10, 0x11, 0x10, 0x00, 0x10, 0x01, 0x10, 0x11,
|
0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x10, 0x11, 0x10, 0x00, 0x10, 0x01, 0x10, 0x11,
|
||||||
0x11, 0x01, 0x10, 0x11, 0x11, 0x01, 0x00, 0x10, 0x01, 0x00, 0x00, 0x11, 0x01, 0x00,
|
0x11, 0x01, 0x10, 0x11, 0x11, 0x01, 0x00, 0x10, 0x01, 0x00, 0x00, 0x11, 0x01, 0x00,
|
||||||
0x00, 0x10, 0x00, 0x00,
|
0x00, 0x10, 0x00, 0x00,
|
||||||
],
|
],
|
||||||
size: Size::S8x8,
|
Size::S8x8,
|
||||||
},
|
),
|
||||||
Sprite {
|
Sprite::new(
|
||||||
palette: &ChickenPalette,
|
&ChickenPalette,
|
||||||
data: &[
|
&[
|
||||||
0x00, 0x00, 0x10, 0x01, 0x00, 0x11, 0x11, 0x11, 0x10, 0x10, 0x11, 0x01, 0x10, 0x11,
|
0x00, 0x00, 0x10, 0x01, 0x00, 0x11, 0x11, 0x11, 0x10, 0x10, 0x11, 0x01, 0x10, 0x11,
|
||||||
0x11, 0x01, 0x10, 0x11, 0x11, 0x01, 0x00, 0x10, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00,
|
0x11, 0x01, 0x10, 0x11, 0x11, 0x01, 0x00, 0x10, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00,
|
||||||
0x00, 0x00, 0x00, 0x00,
|
0x00, 0x00, 0x00, 0x00,
|
||||||
],
|
],
|
||||||
size: Size::S8x8,
|
Size::S8x8,
|
||||||
},
|
),
|
||||||
Sprite {
|
Sprite::new(
|
||||||
palette: &ChickenPalette,
|
&ChickenPalette,
|
||||||
data: &[
|
&[
|
||||||
0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x10, 0x11, 0x10, 0x11, 0x11, 0x01, 0x10, 0x11,
|
0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x10, 0x11, 0x10, 0x11, 0x11, 0x01, 0x10, 0x11,
|
||||||
0x11, 0x01, 0x10, 0x11, 0x11, 0x01, 0x00, 0x10, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00,
|
0x11, 0x01, 0x10, 0x11, 0x11, 0x01, 0x00, 0x10, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00,
|
||||||
0x00, 0x00, 0x00, 0x00,
|
0x00, 0x00, 0x00, 0x00,
|
||||||
],
|
],
|
||||||
size: Size::S8x8,
|
Size::S8x8,
|
||||||
},
|
),
|
||||||
];
|
];
|
||||||
|
|
||||||
static MAP_TILES: [u32; 8 * 17] = [
|
static MAP_TILES: [u32; 8 * 17] = [
|
||||||
|
|
Loading…
Reference in a new issue