Add Dönerfisch

This commit is contained in:
2024-01-23 11:10:04 -05:00
parent 91b0e63451
commit 31bdf854a7
6 changed files with 26 additions and 6 deletions

View File

@@ -5,7 +5,8 @@ namespace Assets {
using namespace JabyEngine;
namespace Main {
static constexpr auto PacoTIM = SimpleTIM(896, 0, 960, 510);
static constexpr auto PacoTIM = SimpleTIM(896, 0, 960, 510);
static constexpr auto DoenerFishTIM = SimpleTIM(896 + 30, 0, 960 + 16, 510);
void load();
}

View File

@@ -38,6 +38,12 @@ static const Menu::SimpleMenu::Entry MenuEntries[] = {
{"Menu 5"}
};
static const auto doener_fish = Make::SPRT(
Make::AreaI16(16, GPU::Display::Height - 64, 128, 64), // v this needs to be nicer! Has to be
Make::OffsetPageWithClut(Make::PageOffset(120, 0), Make::PageClut(Assets::Main::DoenerFishTIM.get_clut_position())),
GPU::Color24::Grey()
);
// Do we want this namespace?
// Do we want Paco to be HERE?!
static object::Paco paco;
@@ -54,6 +60,9 @@ namespace Shared {
}
static void setup() {
// Use this size for the doener fish state?
// doener_fish.set_rect_size_fast(Make::SizeI16(64, 32));
Assets::Main::load();
FontWriter::setup();
paco.setup();
@@ -86,8 +95,8 @@ static void setup() {
namespace NormalScene {
static void update() {
static const char Title[] = "Pool Box";
static const char Version[] = "Ver. 0.8";
static const char Title[] = ">> Pool Box <<";
static const char Version[] = "Ver. 0.8.1";
static constexpr auto TitleLength = DefaultFont::Info.estimate_str_render_length(Title);
static constexpr auto VersionLength = DefaultFont::Info.estimate_str_render_length(Version);
@@ -105,6 +114,7 @@ namespace NormalScene {
FontWriter::new_font_writer.render();
FontWriter::bios_font_writer.render();
paco.render();
GPU::render(doener_fish);
}
static void run() {

View File

@@ -13,6 +13,7 @@ namespace Assets {
enum LBA {
__jabyengine_start_lba_request
__jabyengine_request_lba_for(PACO, "ASSETS/MAIN/PACO.BIN"),
__jabyengine_request_lba_for(DFISH, "ASSETS/MAIN/DFISH.BIN"),
__jabyengine_request_lba_for(GPU_TEST_OVL, "GTO.BIN"),
__jabyengine_request_lba_for(CONT_TEST_OVL, "CTO.BIN"),
__jabyengine_request_lba_for(FONT_CYC_OVL, "FCO.BIN"),
@@ -51,7 +52,8 @@ namespace Assets {
namespace Main {
static const CDFile Files[] = {
CDFileBuilder::simple_tim(LBA::PACO, PacoTIM)
CDFileBuilder::simple_tim(LBA::PACO, PacoTIM),
CDFileBuilder::simple_tim(LBA::DFISH, DoenerFishTIM)
};
void load() {