Support DönerFisch again

This commit is contained in:
Jaby 2024-03-01 12:25:14 -05:00
parent 00b2c351db
commit 4ee873b02c
3 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,7 @@
#include <PSX/Periphery/periphery.hpp> #include <PSX/Periphery/periphery.hpp>
#include <stdio.h> #include <stdio.h>
// TODO: All the Jabys are broken
namespace GPUTest { namespace GPUTest {
using namespace JabyEngine; using namespace JabyEngine;

View File

@ -6,6 +6,7 @@
#include <PSX/Timer/frame_timer.hpp> #include <PSX/Timer/frame_timer.hpp>
#include <stdio.h> #include <stdio.h>
// TODO: The border is missing
namespace ScreenCenter { namespace ScreenCenter {
using namespace JabyEngine; using namespace JabyEngine;
using GenericButton = Periphery::GenericController::Button; using GenericButton = Periphery::GenericController::Button;

View File

@ -38,11 +38,12 @@ static const Menu::SimpleMenu::Entry MenuEntries[] = {
{"Screen Center"}, {"Screen Center"},
}; };
// TODO: All elements seem to have to be Linked? Make this a rule?
static const auto doener_fish = Make::SPRT( static const auto doener_fish = Make::SPRT(
Make::AreaI16(Make::PositionI16(8, GPU::Display::Height - Assets::Main::DoenerFishInfo.size.height), Assets::Main::DoenerFishInfo.size), // v this needs to be nicer! Has to be Make::AreaI16(Make::PositionI16(8, GPU::Display::Height - Assets::Main::DoenerFishInfo.size.height), Assets::Main::DoenerFishInfo.size), // v this needs to be nicer! Has to be
Make::OffsetPageWithClut(Assets::Main::DoenerFishInfo.tim.get_page_offset_clut4(), Make::PageClut(Assets::Main::DoenerFishInfo.tim.get_clut_position())), Make::OffsetPageWithClut(Assets::Main::DoenerFishInfo.tim.get_page_offset_clut4(), Make::PageClut(Assets::Main::DoenerFishInfo.tim.get_clut_position())),
GPU::Color24::Grey() GPU::Color24::Grey()
); ).linked();
// Do we want this namespace? // Do we want this namespace?
// Do we want Paco to be HERE?! // Do we want Paco to be HERE?!