Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
HeartBlockContent.c
Go to the documentation of this file.
1#include "common.h"
2
3//TODO make images
4unsigned char D_0A000000_E49E40[] = {
5 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 85, 80, 0, 0, 5, 85, 80, 0, 0, 0, 0, 0, 0, 0, 5, 85, 85, 85, 80, 5, 85, 85, 85, 80, 0, 0, 0, 0, 0, 0, 85, 84, 51, 69, 85, 85, 86, 68, 101, 85, 0, 0, 0, 0, 0, 0, 85, 50, 18, 51, 85, 85, 51, 52, 68, 85, 0, 0, 0, 0, 0, 5, 85, 33, 17, 35, 53, 83, 51, 51, 68, 85, 80, 0, 0, 0, 0, 5, 83, 33, 18, 35, 51, 51, 51, 51, 68, 69, 80, 0, 0, 0, 0, 5, 83, 33, 34, 51, 51, 51, 51, 51, 68, 69, 80, 0, 0, 0, 0, 5, 83, 50, 35, 51, 51, 51, 51, 51, 68, 69, 80, 0, 0, 0, 0, 5, 83, 56, 51, 51, 51, 51, 51, 51, 116, 69, 80, 0, 0, 0, 0, 5, 83, 56, 51, 51, 131, 56, 51, 51, 116, 69, 80, 0, 0, 0, 0, 5, 85, 56, 131, 56, 131, 56, 131, 55, 116, 85, 80, 0, 0, 0, 0, 0, 85, 51, 136, 136, 51, 51, 119, 119, 68, 85, 0, 0, 0, 0, 0, 0, 85, 83, 51, 51, 51, 51, 51, 68, 69, 85, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 85, 84, 51, 69, 85, 85, 86, 68, 101, 85, 0, 0, 0, 0, 0, 0, 85, 50, 18, 51, 85, 85, 51, 52, 68, 85, 0, 0, 0, 0, 0, 5, 85, 33, 17, 35, 53, 83, 51, 51, 68, 85, 80, 0, 0, 0, 0, 5, 83, 33, 18, 35, 51, 51, 51, 51, 68, 69, 80, 0, 0, 0, 0, 5, 83, 33, 34, 51, 51, 51, 51, 51, 68, 69, 80, 0, 0, 0, 0, 5, 83, 50, 40, 135, 51, 51, 136, 115, 68, 69, 80, 0, 0, 0, 0, 5, 83, 51, 56, 135, 51, 51, 136, 115, 68, 69, 80, 0, 0, 0, 0, 5, 83, 51, 56, 135, 51, 51, 136, 115, 68, 69, 80, 0, 0, 0, 0, 5, 85, 51, 56, 135, 51, 51, 136, 115, 68, 85, 80, 0, 0, 0, 0, 0, 85, 51, 55, 119, 51, 51, 119, 116, 68, 85, 0, 0, 0, 0, 0, 0, 85, 83, 51, 51, 51, 51, 51, 68, 69, 85, 0, 0, 0, 0, 0, 0, 5, 83, 51, 51, 51, 51, 52, 68, 69, 80, 0, 0, 0, 0, 0, 0, 5, 85, 51, 51, 51, 51, 68, 68, 85, 80, 0, 0, 0, 0, 0, 0, 0, 85, 83, 51, 51, 68, 68, 69, 85, 0, 0, 0, 0, 0, 0, 0, 0, 5, 85, 68, 68, 68, 68, 85, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 85, 84, 68, 68, 69, 85, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 85, 84, 69, 85, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 85, 85, 85, 85, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 85, 85, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
10};
11
12unsigned char D_0A000400_E4A240[] = {
13 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 85, 80, 0, 0, 5, 85, 80, 0, 0, 0, 0, 0, 0, 0, 5, 85, 85, 85, 80, 5, 85, 85, 85, 80, 0, 0, 0, 0, 0, 0, 85, 84, 51, 69, 85, 85, 86, 68, 101, 85, 0, 0, 0, 0, 0, 0, 85, 50, 18, 51, 85, 85, 51, 52, 68, 85, 0, 0, 0, 0, 0, 5, 85, 33, 17, 35, 53, 83, 51, 51, 68, 85, 80, 0, 0, 0, 0, 5, 83, 33, 18, 35, 51, 51, 51, 51, 68, 69, 80, 0, 0, 0, 0, 5, 83, 33, 34, 51, 51, 51, 51, 51, 68, 69, 80, 0, 0, 0, 0, 5, 83, 50, 40, 135, 51, 51, 136, 115, 68, 69, 80, 0, 0, 0, 0, 5, 83, 51, 56, 135, 51, 51, 136, 115, 68, 69, 80, 0, 0, 0, 0, 5, 83, 51, 56, 135, 51, 51, 136, 115, 68, 69, 80, 0, 0, 0, 0, 5, 85, 51, 55, 119, 51, 51, 119, 115, 68, 85, 80, 0, 0, 0, 0, 0, 85, 51, 51, 51, 51, 51, 51, 52, 68, 85, 0, 0, 0, 0, 0, 0, 85, 83, 52, 187, 187, 187, 187, 100, 69, 85, 0, 0, 0, 0, 0, 0, 5, 83, 52, 187, 153, 170, 155, 100, 69, 80, 0, 0, 0, 0, 0, 0, 5, 85, 51, 187, 154, 170, 155, 68, 85, 80, 0, 0, 0, 0, 0, 0, 0, 85, 83, 59, 154, 169, 180, 69, 85, 0, 0, 0, 0, 0, 0, 0, 0, 5, 85, 68, 187, 187, 100, 85, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 85, 84, 70, 100, 69, 85, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 85, 84, 69, 85, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 85, 85, 85, 85, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 85, 85, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
14};
15
16unsigned char D_0A000600_E4A440[] = {
17 41, 74, 228, 227, 211, 221, 202, 213, 185, 209, 144, 207, 153, 147, 144, 197, 152, 129, 185, 95, 194, 31, 136, 145, 0, 1, 0, 1, 0, 1, 0, 1,
18};
19
21 {{{ 13, 13, 0 }, 0, { 0, 0 }, { 255, 255, 255, 255 }}},
22 {{{ -13, 13, 0 }, 0, { 1024, 0 }, { 255, 255, 255, 255 }}},
23 {{{ -13, -13, 0 }, 0, { 1024, 1024 }, { 255, 255, 255, 255 }}},
24 {{{ 13, -13, 0 }, 0, { 0, 1024 }, { 255, 255, 255, 255 }}},
25};
26
28 gsDPSetTextureLUT(G_TT_RGBA16),
29 gsDPLoadTLUT_pal16(0, D_0A000600_E4A440),
30 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
31 gsDPSetTextureDetail(G_TD_CLAMP),
32 gsDPSetTextureLOD(G_TL_TILE),
33 gsDPSetTexturePersp(G_TP_PERSP),
34 gsDPSetTextureFilter(G_TF_BILERP),
35 gsDPSetTextureConvert(G_TC_FILT),
36 gsSPEndDisplayList(),
37};
38
40 gsDPSetCycleType(G_CYC_1CYCLE),
42 gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING | G_SHADING_SMOOTH),
43 gsSPVertex(Entity_HeartBlockContent_vtx, 4, 0),
44 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
45 gsSPEndDisplayList(),
46};
47
49 gsDPPipeSync(),
50 gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
51 gsDPLoadTextureBlock_4b(D_0A000000_E49E40, G_IM_FMT_CI, 32, 32, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
53 gsSPEndDisplayList(),
54};
55
57 gsDPPipeSync(),
58 gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
59 gsDPLoadTextureBlock_4b(D_0A000200_E4A040, G_IM_FMT_CI, 32, 32, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
61 gsSPEndDisplayList(),
62};
63
65 gsDPPipeSync(),
66 gsDPSetRenderMode(G_RM_ZB_CLD_SURF, G_RM_ZB_CLD_SURF2),
67 gsDPLoadTextureBlock_4b(D_0A000200_E4A040, G_IM_FMT_CI, 32, 32, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
69 gsSPEndDisplayList(),
70};
71
73 gsDPPipeSync(),
74 gsDPSetRenderMode(G_RM_ZB_CLD_SURF, G_RM_ZB_CLD_SURF2),
75 gsDPLoadTextureBlock_4b(D_0A000400_E4A240, G_IM_FMT_CI, 32, 32, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
77 gsSPEndDisplayList(),
78};
unsigned char D_0A000600_E4A440[]
Gfx Entity_HeartBlockContent_RenderHeartHappy[]
unsigned char D_0A000400_E4A240[]
Gfx Entity_HeartBlockContent_RenderHeartAwake[]
Gfx Entity_HeartBlockContent_LoadPalette[]
Vtx Entity_HeartBlockContent_vtx[]
Gfx D_0A000758_E4A598[]
Gfx Entity_HeartBlockContent_RenderHeartSleeping[]
unsigned char D_0A000000_E49E40[]
unsigned char D_0A000200_E4A040[]
Gfx Entity_HeartBlockContent_RenderImage[]