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>
99 lines
3.2 KiB
C
99 lines
3.2 KiB
C
#include "pc/rom_assets.h"
|
|
// Spindrift
|
|
|
|
// Unreferenced light group
|
|
UNUSED static const Lights1 spindrift_lights_unused1 = gdSPDefLights1(
|
|
0x3f, 0x08, 0x1b,
|
|
0xff, 0x22, 0x6d, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// Unreferenced light group
|
|
UNUSED static const Lights1 spindrift_lights_unused2 = gdSPDefLights1(
|
|
0x3f, 0x3f, 0x3f,
|
|
0xfd, 0xff, 0xff, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x05000030
|
|
static const Lights1 spindrift_seg5_lights_05000030 = gdSPDefLights1(
|
|
0x12, 0x2c, 0x00,
|
|
0x49, 0xb2, 0x00, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x05000048
|
|
static const Lights1 spindrift_seg5_lights_05000048 = gdSPDefLights1(
|
|
0x37, 0x3f, 0x00,
|
|
0xdd, 0xff, 0x01, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// Unreferenced light group
|
|
UNUSED static const Lights1 spindrift_lights_unused3 = gdSPDefLights1(
|
|
0x00, 0x15, 0x00,
|
|
0x00, 0x56, 0x00, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x05000078
|
|
static const Lights1 spindrift_seg5_lights_05000078 = gdSPDefLights1(
|
|
0x3f, 0x38, 0x00,
|
|
0xff, 0xe2, 0x00, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x05000090
|
|
static const Lights1 spindrift_seg5_lights_05000090 = gdSPDefLights1(
|
|
0x00, 0x0f, 0x00,
|
|
0x00, 0x3f, 0x00, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// Unreferenced light group
|
|
UNUSED static const Lights1 spindrift_lights_unused4 = gdSPDefLights1(
|
|
0x3f, 0x00, 0x00,
|
|
0xff, 0x00, 0x00, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x050000C0
|
|
ROM_ASSET_LOAD_VTX(spindrift_seg5_vertex_050000C0, 0x00160670, 20585, 0x000000c0, 96);
|
|
|
|
// 0x05000120
|
|
ROM_ASSET_LOAD_VTX(spindrift_seg5_vertex_05000120, 0x00160670, 20585, 0x00000120, 96);
|
|
|
|
// 0x05000180
|
|
ROM_ASSET_LOAD_VTX(spindrift_seg5_vertex_05000180, 0x00160670, 20585, 0x00000180, 144);
|
|
|
|
// 0x05000210
|
|
ROM_ASSET_LOAD_VTX(spindrift_seg5_vertex_05000210, 0x00160670, 20585, 0x00000210, 144);
|
|
|
|
// 0x050002A0 - 0x05000328
|
|
const Gfx spindrift_seg5_dl_050002A0[] = {
|
|
gsSPLight(&spindrift_seg5_lights_05000048.l, 1),
|
|
gsSPLight(&spindrift_seg5_lights_05000048.a, 2),
|
|
gsSPVertex(spindrift_seg5_vertex_050000C0, 6, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 2, 0x0),
|
|
gsSP2Triangles( 1, 3, 2, 0x0, 4, 5, 2, 0x0),
|
|
gsSP1Triangle( 5, 0, 2, 0x0),
|
|
gsSPLight(&spindrift_seg5_lights_05000030.l, 1),
|
|
gsSPLight(&spindrift_seg5_lights_05000030.a, 2),
|
|
gsSPVertex(spindrift_seg5_vertex_05000120, 6, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSP2Triangles( 1, 0, 4, 0x0, 4, 0, 5, 0x0),
|
|
gsSP1Triangle( 5, 0, 3, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x05000328 - 0x050003D8
|
|
const Gfx spindrift_seg5_dl_05000328[] = {
|
|
gsSPClearGeometryMode(G_CULL_BACK),
|
|
gsSPLight(&spindrift_seg5_lights_05000090.l, 1),
|
|
gsSPLight(&spindrift_seg5_lights_05000090.a, 2),
|
|
gsSPVertex(spindrift_seg5_vertex_05000180, 9, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 1, 0, 3, 0x0),
|
|
gsSP2Triangles( 0, 4, 3, 0x0, 1, 5, 6, 0x0),
|
|
gsSP2Triangles( 7, 4, 0, 0x0, 5, 4, 8, 0x0),
|
|
gsSP2Triangles( 5, 1, 3, 0x0, 4, 5, 3, 0x0),
|
|
gsSPLight(&spindrift_seg5_lights_05000078.l, 1),
|
|
gsSPLight(&spindrift_seg5_lights_05000078.a, 2),
|
|
gsSPVertex(spindrift_seg5_vertex_05000210, 9, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 4, 0x0),
|
|
gsSP2Triangles( 1, 5, 6, 0x0, 5, 7, 8, 0x0),
|
|
gsSP1Triangle( 8, 7, 3, 0x0),
|
|
gsSPSetGeometryMode(G_CULL_BACK),
|
|
gsSPEndDisplayList(),
|
|
};
|