[nostalgia/core] Get TileSheetSet working with 8bpp setting

This commit is contained in:
2023-12-23 01:23:31 -06:00
parent fcf6f00797
commit 46d1313797
3 changed files with 57 additions and 46 deletions
+6 -4
View File
@@ -105,16 +105,18 @@ static ox::Error runTileSheetSetTest(turbine::Context &tctx) {
core::setBgTile(*cctx, 0, 11, 9, 2);
core::setBgTile(*cctx, 0, 13, 9, 4);
core::setSprite(*cctx, 16, {
.enabled = true,
.x = 12 * 8,
.y = 9 * 8,
.tileIdx = 3,
.enabled = true,
.x = 12 * 8,
.y = 9 * 8,
.tileIdx = 3,
.bpp = static_cast<unsigned>(set.bpp),
});
core::setSprite(*cctx, 17, {
.enabled = true,
.x = 14 * 8,
.y = 9 * 8,
.tileIdx = 5,
.bpp = static_cast<unsigned>(set.bpp),
});
turbine::setKeyEventHandler(tctx, testKeyEventHandler);
return turbine::run(tctx);