84 lines
11 KiB
Plaintext
84 lines
11 KiB
Plaintext
/********************************************************************************
|
|
RCP_HmsYellowBall
|
|
[ Dec 6, 1995 ]
|
|
*********************************************************************************/
|
|
|
|
/********************************************************************************/
|
|
/* Vtx data. */
|
|
/********************************************************************************/
|
|
static Vtx vtx_spriteball[] = {
|
|
{ -49, -49, 0, 0, 0, 992, 181, 32, 64, 255},
|
|
{ 50, -49, 0, 0, 992, 992, 181, 32, 64, 255},
|
|
{ 50, 50, 0, 0, 992, 0, 181, 32, 64, 255},
|
|
{ -49, 50, 0, 0, 0, 0, 181, 32, 64, 255},
|
|
};
|
|
|
|
/********************************************************************************/
|
|
/* Texture data. */
|
|
/********************************************************************************/
|
|
static unsigned short yellowball_txt[] = {
|
|
0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0xf4c7, 0xfd07, 0xfd47, 0xfd87, 0xfdc9, 0xfdc9, 0xfdc7, 0xfdc7, 0xfd87, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0xf487, 0xfd07, 0xfd87, 0xfdc9, 0xfe09, 0xfe09, 0xfe49, 0xfe49, 0xfe49, 0xfe49, 0xfe49, 0xfe49, 0xfdc9, 0xfd87, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0xe445, 0xf4c7, 0xfd47, 0xfd87, 0xfdc9, 0xfe09, 0xfe49, 0xfe89, 0xfe89, 0xfe89, 0xfec9, 0xfec9, 0xfe89, 0xfe89, 0xfe89, 0xfe49, 0xfdc7, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0xd405, 0xf487, 0xfd47, 0xfd87, 0xfdc9, 0xfe09, 0xfe49, 0xfe89, 0xfe89, 0xfec9, 0xfec9, 0xfec9, 0xfec9, 0xfec9, 0xfec9, 0xfec9, 0xfe89, 0xfe49, 0xfe09, 0xfd47, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0xcbc5, 0xec87, 0xfd07, 0xfd47, 0xfdc7, 0xfe09, 0xfe49, 0xfe89, 0xfe89, 0xfec9, 0xfec9, 0xff0b, 0xff0b, 0xff0b, 0xff0b, 0xff09, 0xfec9, 0xfec9, 0xfe89, 0xfe49, 0xfdc9, 0xfd07, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x5182, 0x5182, 0xb345, 0xe405, 0xfcc7, 0xfd07, 0xfd87, 0xfdc9, 0xfe09, 0xfe49, 0xfe89, 0xfec9, 0xff0b, 0xff4d, 0xff8d, 0xff8f, 0xff8d, 0xff4d, 0xff0b, 0xff09, 0xfec9, 0xfec9, 0xfe89, 0xfe49, 0xfdc7, 0xfd07, 0x5182, 0x5182, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x5182, 0x9ac5, 0xcbc5, 0xec47, 0xfcc7, 0xfd47, 0xfd87, 0xfdc9, 0xfe09, 0xfe49, 0xfe89, 0xfecb, 0xff4d, 0xffd1, 0xffd5, 0xffd9, 0xffd7, 0xffd3, 0xff8f, 0xff4b, 0xfec9, 0xfec9, 0xfe89, 0xfe49, 0xfe09, 0xfd87, 0x5182, 0x5182, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x5182, 0xab05, 0xd3c5, 0xec87, 0xfcc7, 0xfd47, 0xfd87, 0xfdc9, 0xfe09, 0xfe49, 0xfe89, 0xff0b, 0xff91, 0xffd7, 0xffe1, 0xffe5, 0xffe3, 0xffdd, 0xffd5, 0xff8f, 0xff0b, 0xfec9, 0xfe89, 0xfe49, 0xfe09, 0xfdc7, 0xfd07, 0x5182, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x7a43, 0xb345, 0xd405, 0xec87, 0xfcc7, 0xfd47, 0xfd87, 0xfdc9, 0xfe09, 0xfe49, 0xfe89, 0xff0d, 0xff93, 0xffdb, 0xffe7, 0xffed, 0xffed, 0xffe5, 0xffdb, 0xffd1, 0xff0b, 0xfec9, 0xfe89, 0xfe49, 0xfe09, 0xfdc7, 0xfd47, 0xec87, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x8a83, 0xb345, 0xd405, 0xec47, 0xfcc7, 0xfd07, 0xfd87, 0xfdc7, 0xfe09, 0xfe09, 0xfe49, 0xfecb, 0xff91, 0xffdb, 0xffe5, 0xffeb, 0xffed, 0xffe7, 0xffdb, 0xffd1, 0xff0d, 0xfec9, 0xfe89, 0xfe49, 0xfe09, 0xfdc7, 0xfd47, 0xf487, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x9283, 0xb345, 0xd405, 0xec47, 0xfcc7, 0xfd07, 0xfd47, 0xfd87, 0xfdc9, 0xfe09, 0xfe49, 0xfe8b, 0xff0f, 0xffd5, 0xffdd, 0xffe3, 0xffe3, 0xffdf, 0xffd7, 0xff8f, 0xfecb, 0xfe89, 0xfe49, 0xfe49, 0xfe09, 0xfdc7, 0xfd47, 0xfcc7, 0x5182, 0x5182,
|
|
0x5182, 0x59c3, 0x92c3, 0xb345, 0xcbc5, 0xe445, 0xf487, 0xfd07, 0xfd47, 0xfd87, 0xfd87, 0xfdc9, 0xfe09, 0xfe49, 0xfe8b, 0xff0f, 0xff93, 0xffd5, 0xffd7, 0xffd5, 0xff91, 0xff0d, 0xfe8b, 0xfe89, 0xfe49, 0xfe09, 0xfdc9, 0xfd87, 0xfd47, 0xfcc7, 0xd3c5, 0x5182,
|
|
0x5182, 0x61c3, 0x8a83, 0xab45, 0xc3c5, 0xdc05, 0xf487, 0xfcc7, 0xfd07, 0xfd47, 0xfd87, 0xfdc7, 0xfdc9, 0xfe09, 0xfe49, 0xfe8b, 0xfecd, 0xff0d, 0xff0f, 0xff0d, 0xfecb, 0xfe8b, 0xfe49, 0xfe49, 0xfe09, 0xfe09, 0xfdc7, 0xfd87, 0xfd07, 0xfcc7, 0xcbc5, 0x5182,
|
|
0x5182, 0x5983, 0x8243, 0xa305, 0xbb85, 0xd405, 0xe445, 0xf487, 0xfcc7, 0xfd07, 0xfd47, 0xfd87, 0xfd87, 0xfdc9, 0xfe09, 0xfe09, 0xfe49, 0xfe49, 0xfe4b, 0xfe49, 0xfe49, 0xfe49, 0xfe09, 0xfe09, 0xfe09, 0xfdc9, 0xfd87, 0xfd47, 0xfd07, 0xf487, 0xc385, 0x5182,
|
|
0x5182, 0x5983, 0x7a43, 0x9ac5, 0xb345, 0xcbc5, 0xdc05, 0xec47, 0xfc87, 0xfcc7, 0xfd07, 0xfd47, 0xfd87, 0xfd87, 0xfdc7, 0xfdc9, 0xfe09, 0xfe09, 0xfe09, 0xfe09, 0xfe09, 0xfe09, 0xfdc9, 0xfdc9, 0xfdc7, 0xfd87, 0xfd47, 0xfd07, 0xfcc7, 0xec47, 0xbb85, 0x5182,
|
|
0x5182, 0x5183, 0x6a03, 0x8a83, 0xa305, 0xbb85, 0xcbc5, 0xe405, 0xec87, 0xfc87, 0xfcc7, 0xfd07, 0xfd47, 0xfd47, 0xfd87, 0xfd87, 0xfd87, 0xfdc7, 0xfdc9, 0xfdc9, 0xfdc9, 0xfdc7, 0xfdc7, 0xfd87, 0xfd87, 0xfd47, 0xfd07, 0xfcc7, 0xf487, 0xdc05, 0xb345, 0x5182,
|
|
0x5182, 0x5183, 0x61c3, 0x7a43, 0x92c3, 0xab45, 0xc385, 0xd3c5, 0xe405, 0xec47, 0xfc87, 0xfcc7, 0xfd07, 0xfd07, 0xfd47, 0xfd47, 0xfd47, 0xfd87, 0xfd87, 0xfd87, 0xfd87, 0xfd87, 0xfd47, 0xfd47, 0xfd47, 0xfd07, 0xfcc7, 0xf487, 0xe445, 0xcbc5, 0x9b05, 0x5182,
|
|
0x5182, 0x5183, 0x61c3, 0x7203, 0x8283, 0x9b05, 0xb345, 0xc385, 0xd3c5, 0xdc05, 0xec47, 0xf487, 0xfcc7, 0xfcc7, 0xfd07, 0xfd07, 0xfd07, 0xfd47, 0xfd47, 0xfd47, 0xfd47, 0xfd47, 0xfd07, 0xfd07, 0xfd07, 0xfcc7, 0xf487, 0xe445, 0xd405, 0xbb85, 0x8a83, 0x5182,
|
|
0x5182, 0x5183, 0x59c3, 0x69c3, 0x7a43, 0x8a83, 0xa305, 0xb345, 0xc385, 0xcbc5, 0xdc05, 0xe445, 0xec47, 0xf487, 0xfc87, 0xfcc7, 0xfcc7, 0xfcc7, 0xfcc7, 0xfd07, 0xfd07, 0xfcc7, 0xfcc7, 0xfcc7, 0xfc87, 0xec87, 0xe445, 0xd405, 0xc385, 0xa305, 0x7a43, 0x5182,
|
|
0x5182, 0x4943, 0x5983, 0x61c3, 0x6a03, 0x7a43, 0x8a83, 0xa305, 0xb345, 0xbb85, 0xcbc5, 0xd3c5, 0xdc05, 0xe445, 0xec47, 0xec87, 0xf487, 0xf487, 0xf487, 0xf487, 0xfc87, 0xf487, 0xf487, 0xec87, 0xe445, 0xdc05, 0xd3c5, 0xc385, 0xab45, 0x8a83, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x5183, 0x61c3, 0x6a03, 0x7203, 0x7a43, 0x8a83, 0x9ac5, 0xab05, 0xb345, 0xc385, 0xcbc5, 0xd3c5, 0xd405, 0xdc05, 0xe445, 0xe445, 0xe445, 0xe445, 0xe445, 0xe445, 0xe405, 0xdc05, 0xd405, 0xcbc5, 0xbb85, 0xab05, 0x92c3, 0x6a03, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x4983, 0x5983, 0x61c3, 0x6a03, 0x7203, 0x7a43, 0x8a83, 0x92c3, 0xa305, 0xab45, 0xb345, 0xbb85, 0xc385, 0xcbc5, 0xcbc5, 0xd3c5, 0xd3c5, 0xd3c5, 0xd3c5, 0xcbc5, 0xcbc5, 0xc385, 0xbb85, 0xb345, 0xa305, 0x92c3, 0x7203, 0x5183, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x5182, 0x5183, 0x61c3, 0x69c3, 0x6a03, 0x7203, 0x7a43, 0x8243, 0x8a83, 0x9ac3, 0xa305, 0xab05, 0xb345, 0xb345, 0xbb85, 0xbb85, 0xbb85, 0xbb85, 0xbb85, 0xbb85, 0xb345, 0xab45, 0xa305, 0x9ac3, 0x8a83, 0x7203, 0x5183, 0x5182, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x5182, 0x4983, 0x5983, 0x61c3, 0x6a03, 0x7203, 0x7203, 0x7a43, 0x7a43, 0x8243, 0x8a83, 0x92c3, 0x9ac3, 0x9b05, 0xa305, 0xa305, 0xa305, 0xa305, 0xa305, 0xa305, 0x9ac5, 0x92c3, 0x8a83, 0x7a43, 0x6a03, 0x5983, 0x5182, 0x5182, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x5182, 0x5182, 0x5183, 0x5983, 0x61c3, 0x6a03, 0x6a03, 0x7203, 0x7203, 0x7a43, 0x7a43, 0x7a43, 0x8243, 0x8283, 0x8a83, 0x8a83, 0x8a83, 0x8a83, 0x8a83, 0x8283, 0x8243, 0x7a43, 0x6a03, 0x61c3, 0x5983, 0x4943, 0x5182, 0x5182, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5183, 0x5983, 0x61c3, 0x69c3, 0x6a03, 0x7203, 0x7203, 0x7203, 0x7243, 0x7a43, 0x7a43, 0x7a43, 0x7a43, 0x7a43, 0x7243, 0x7203, 0x7203, 0x6a03, 0x69c3, 0x61c3, 0x5983, 0x5183, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5183, 0x5983, 0x61c3, 0x61c3, 0x6a03, 0x6a03, 0x6a03, 0x7203, 0x7203, 0x7203, 0x7203, 0x7203, 0x7203, 0x6a03, 0x6a03, 0x6a03, 0x61c3, 0x61c3, 0x5183, 0x4943, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x4943, 0x5183, 0x5983, 0x61c3, 0x61c3, 0x61c3, 0x6a03, 0x6a03, 0x6a03, 0x6a03, 0x6a03, 0x6a03, 0x61c3, 0x61c3, 0x61c3, 0x5983, 0x5183, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x4983, 0x5183, 0x5983, 0x59c3, 0x61c3, 0x61c3, 0x61c3, 0x61c3, 0x61c3, 0x61c3, 0x59c3, 0x5983, 0x5183, 0x4943, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5183, 0x5183, 0x5183, 0x5183, 0x5183, 0x5183, 0x5183, 0x4943, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182,
|
|
0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182, 0x5182,
|
|
};
|
|
|
|
/********************************************************************************/
|
|
/* Graphic display List. */
|
|
/********************************************************************************/
|
|
static Gfx gfx_spriteball_common_init[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
|
|
gsSPClearGeometryMode(G_LIGHTING),
|
|
gsDPSetTile(G_IM_FMT_RGBA,G_IM_SIZ_16b, 0, 0, 7, 0, 0,0,0, 0,0,0),
|
|
gsSPTexture(0xffff,0xffff, 0, 0, G_ON),
|
|
gs_Tani_SetUpTileDescrip(G_IM_FMT_RGBA,G_IM_SIZ_16b, 32, 32, 0, 0, G_TX_CLAMP|G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_CLAMP|G_TX_NOMIRROR, 5, G_TX_NOLOD),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
static Gfx gfx_spriteball_common_reset[] = {
|
|
gsSPVertex(&vtx_spriteball[0], 4, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 0, 2, 3, 0),
|
|
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_LIGHTING),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx RCP_yellowball[] = {
|
|
gsSPDisplayList(gfx_spriteball_common_init),
|
|
gs_Tani_LoadTextureImage2(yellowball_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
|
|
gsSPDisplayList(gfx_spriteball_common_reset),
|
|
gsSPEndDisplayList()
|
|
};
|