Integrate new Jaby sprite

This commit is contained in:
Jaby
2024-04-05 19:57:02 -05:00
parent d68fea41ed
commit 1eba386663
9 changed files with 52 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
#include "../../../include/asset_mgr.hpp"
#include "../../../include/shared.hpp"
#include "include/GTE_Sprite.hpp"
#include "include/gte_test_assets.hpp"
#include <PSX/Periphery/periphery.hpp>
#include <stdio.h>
@@ -8,6 +9,12 @@ namespace GTETest {
using namespace JabyEngine;
using namespace GTETest;
static auto jaby_star_base = Make::SPRT(
// TODO: improve magic numbers
Make::AreaI16(GPU::Display::Width - 64, GPU::Display::Height - 64, 64, 64),
Make::OffsetPageWithClut(JabySTARTim.get_page_offset_clut4(), Make::PageClut(JabySTARTim.get_clut_position()))
);
static auto doener_fish = GTE_Sprite::create(Make::POLY_FT4(
Make::AreaI16(Make::PositionI16(0, 0), Assets::Main::DoenerFishInfo.size),
Assets::Main::DoenerFishInfo.tim.get_page_offset_clut4(),
@@ -15,6 +22,7 @@ namespace GTETest {
Make::PageClut(Assets::Main::DoenerFishInfo.tim.get_clut_position()),
GPU::Color24::Grey()
));
static auto rotation = 0.0_deg;
static void setup() {
@@ -41,6 +49,7 @@ namespace GTETest {
static void render() {
doener_fish.render();
GPU::render(jaby_star_base);
Shared::back_menu.render();
}