mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 12:05:11 +00:00
663e4549d8
* Proof of concept for loading rom assets at runtime * Added skybox textures * Adjusted format * Load all texture assets from rom * Adjusted rom asset loading * Load all Vtx lists from rom * clean up toad, wario and his cap conflicts * Load sound samples from rom * fix toad sounds * Loaded sequences from rom * Load collisions from rom * Object animations are now loaded from the rom * Load player animations from rom * Load goddard anims from rom * whoops * fix some compile errors * drag and drop rom checker, everything works now. * fix errors due to merge conflicts * fix compile errors on windows, switch to md5 * fix vertex colors during load Co-Authored-By: Agent X <44549182+agent-11@users.noreply.github.com> * Load dialogs from rom * Loaded course/act names from rom * Loaded ingame text from rom * rerun autogen & blacklist smlua_text_utils_init * fix ttc_seg7_vertex_0700B238 colors --------- Co-authored-by: MysterD <myster@d> Co-authored-by: Agent X <44549182+agent-11@users.noreply.github.com>
217 lines
8.1 KiB
C
217 lines
8.1 KiB
C
#include "pc/rom_assets.h"
|
|
// Koopa Flag
|
|
|
|
// 0x06000000
|
|
static const Lights1 koopa_flag_seg6_lights_06000000 = gdSPDefLights1(
|
|
0x00, 0x1b, 0x00,
|
|
0x00, 0x6e, 0x00, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x06000018
|
|
static const Lights1 koopa_flag_seg6_lights_06000018 = gdSPDefLights1(
|
|
0x3f, 0x39, 0x15,
|
|
0xff, 0xe6, 0x57, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x06000030
|
|
static const Lights1 koopa_flag_seg6_lights_06000030 = gdSPDefLights1(
|
|
0x2b, 0x15, 0x01,
|
|
0xac, 0x54, 0x05, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x06000048
|
|
ROM_ASSET_LOAD_TEXTURE(koopa_flag_seg6_texture_06000048, "actors/koopa_flag/koopa_flag_banner.rgba16.inc.c", 0x001c4230, 80474, 0x00000048, 2048);
|
|
|
|
// 0x06000848
|
|
static const Lights1 koopa_flag_seg6_lights_06000848 = gdSPDefLights1(
|
|
0x37, 0x27, 0x07,
|
|
0xdf, 0x9f, 0x1f, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x06000860
|
|
static const Lights1 koopa_flag_seg6_lights_06000860 = gdSPDefLights1(
|
|
0x14, 0x0a, 0x00,
|
|
0x50, 0x28, 0x00, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x06000878
|
|
ROM_ASSET_LOAD_VTX(koopa_flag_seg6_vertex_06000878, 0x001c4230, 80474, 0x00000878, 80);
|
|
|
|
// 0x060008C8
|
|
ROM_ASSET_LOAD_VTX(koopa_flag_seg6_vertex_060008C8, 0x001c4230, 80474, 0x000008c8, 160);
|
|
|
|
// 0x06000968 - 0x06000A08
|
|
const Gfx koopa_flag_seg6_dl_06000968[] = {
|
|
gsSPLight(&koopa_flag_seg6_lights_06000848.l, 1),
|
|
gsSPLight(&koopa_flag_seg6_lights_06000848.a, 2),
|
|
gsSPVertex(koopa_flag_seg6_vertex_06000878, 5, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 0, 0x0),
|
|
gsSP1Triangle( 3, 0, 2, 0x0),
|
|
gsSPLight(&koopa_flag_seg6_lights_06000860.l, 1),
|
|
gsSPLight(&koopa_flag_seg6_lights_06000860.a, 2),
|
|
gsSPVertex(koopa_flag_seg6_vertex_060008C8, 10, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 2, 3, 0, 0x0),
|
|
gsSP2Triangles( 4, 2, 1, 0x0, 5, 0, 3, 0x0),
|
|
gsSP2Triangles( 3, 6, 5, 0x0, 7, 5, 6, 0x0),
|
|
gsSP2Triangles( 6, 8, 7, 0x0, 9, 7, 8, 0x0),
|
|
gsSP2Triangles( 8, 4, 9, 0x0, 1, 9, 4, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06000A08 - 0x06000A38
|
|
const Gfx koopa_flag_seg6_dl_06000A08[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPDisplayList(koopa_flag_seg6_dl_06000968),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06000A38
|
|
ROM_ASSET_LOAD_VTX(koopa_flag_seg6_vertex_06000A38, 0x001c4230, 80474, 0x00000a38, 48);
|
|
|
|
// 0x06000A68
|
|
ROM_ASSET_LOAD_VTX(koopa_flag_seg6_vertex_06000A68, 0x001c4230, 80474, 0x00000a68, 80);
|
|
|
|
// 0x06000AB8 - 0x06000AE8
|
|
const Gfx koopa_flag_seg6_dl_06000AB8[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, koopa_flag_seg6_texture_06000048),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(koopa_flag_seg6_vertex_06000A38, 3, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06000AE8 - 0x06000B08
|
|
const Gfx koopa_flag_seg6_dl_06000AE8[] = {
|
|
gsSPVertex(koopa_flag_seg6_vertex_06000A68, 5, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 2, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06000B08 - 0x06000B80
|
|
const Gfx koopa_flag_seg6_dl_06000B08[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_DECALRGB, G_CC_DECALRGB),
|
|
gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK),
|
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
gsDPTileSync(),
|
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
|
|
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
|
|
gsSPDisplayList(koopa_flag_seg6_dl_06000AB8),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPDisplayList(koopa_flag_seg6_dl_06000AE8),
|
|
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06000B80
|
|
ROM_ASSET_LOAD_VTX(koopa_flag_seg6_vertex_06000B80, 0x001c4230, 80474, 0x00000b80, 64);
|
|
|
|
// 0x06000BC0 - 0x06000BF8
|
|
const Gfx koopa_flag_seg6_dl_06000BC0[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, koopa_flag_seg6_texture_06000048),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(koopa_flag_seg6_vertex_06000B80, 4, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06000BF8 - 0x06000C68
|
|
const Gfx koopa_flag_seg6_dl_06000BF8[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_DECALRGB, G_CC_DECALRGB),
|
|
gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK),
|
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
gsDPTileSync(),
|
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
|
|
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
|
|
gsSPDisplayList(koopa_flag_seg6_dl_06000BC0),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06000C68
|
|
ROM_ASSET_LOAD_VTX(koopa_flag_seg6_vertex_06000C68, 0x001c4230, 80474, 0x00000c68, 64);
|
|
|
|
// 0x06000CA8 - 0x06000CE0
|
|
const Gfx koopa_flag_seg6_dl_06000CA8[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, koopa_flag_seg6_texture_06000048),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(koopa_flag_seg6_vertex_06000C68, 4, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06000CE0 - 0x06000D50
|
|
const Gfx koopa_flag_seg6_dl_06000CE0[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_DECALRGB, G_CC_DECALRGB),
|
|
gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK),
|
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
gsDPTileSync(),
|
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
|
|
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
|
|
gsSPDisplayList(koopa_flag_seg6_dl_06000CA8),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06000D50
|
|
ROM_ASSET_LOAD_VTX(koopa_flag_seg6_vertex_06000D50, 0x001c4230, 80474, 0x00000d50, 64);
|
|
|
|
// 0x06000D90 - 0x06000DB0
|
|
const Gfx koopa_flag_seg6_dl_06000D90[] = {
|
|
gsSPVertex(koopa_flag_seg6_vertex_06000D50, 4, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06000DB0 - 0x06000DF0
|
|
const Gfx koopa_flag_seg6_dl_06000DB0[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPDisplayList(koopa_flag_seg6_dl_06000D90),
|
|
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06000DF0
|
|
ROM_ASSET_LOAD_VTX(koopa_flag_seg6_vertex_06000DF0, 0x001c4230, 80474, 0x00000df0, 48);
|
|
|
|
// 0x06000E20 - 0x06000E38
|
|
const Gfx koopa_flag_seg6_dl_06000E20[] = {
|
|
gsSPVertex(koopa_flag_seg6_vertex_06000DF0, 3, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06000E38 - 0x06000E78
|
|
const Gfx koopa_flag_seg6_dl_06000E38[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPDisplayList(koopa_flag_seg6_dl_06000E20),
|
|
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK),
|
|
gsSPEndDisplayList(),
|
|
};
|