8extern Addr entity_model_SuperBlockContent_ROM_END;
9extern Addr entity_model_SuperBlockContent_ROM_START;
10extern Addr entity_model_SuperBlock_ROM_END;
11extern Addr entity_model_SuperBlock_ROM_START;
12extern Addr entity_model_UltraBlockContent_ROM_END;
13extern Addr entity_model_UltraBlockContent_ROM_START;
14extern Addr entity_model_UltraBlock_ROM_END;
15extern Addr entity_model_UltraBlock_ROM_START;
73 entity->
rot.
y += 180.0f;
91 entity->
pos.
y = parentEntity->
pos.
y + 14.0f;
151 gDPPipeSync(gfxPos++);
156 gDPSetRenderMode(gfxPos++, G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2);
157 gDPSetCombineMode(gfxPos++, G_CC_MODULATEIA, G_CC_MODULATEIA);
158 gDPLoadTLUT_pal16(gfxPos++, 0, palette);
159 gSPDisplayList(gfxPos++, dlist);
160 gSPPopMatrix(gfxPos++, G_MTX_MODELVIEW);
163 if (entity->
alpha < alpha) {
164 alpha = entity->
alpha;
167 gDPPipeSync(gfxPos++);
172 gDPSetRenderMode(gfxPos++, AA_EN | Z_CMP | IM_RD | CVG_DST_SAVE | ZMODE_OPA | FORCE_BL | GBL_c1(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA), AA_EN | Z_CMP | IM_RD | CVG_DST_SAVE | ZMODE_OPA | FORCE_BL | GBL_c2(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA));
174 gDPSetPrimColor(gfxPos++, 0, 0, 0, 0, 0, alpha);
175 gSPDisplayList(gfxPos++, dlist);
176 gSPPopMatrix(gfxPos++, G_MTX_MODELVIEW);
179 if (entity->
alpha < alpha) {
180 alpha = entity->
alpha;
183 gDPPipeSync(gfxPos++);
188 gDPSetRenderMode(gfxPos++, AA_EN | Z_CMP | IM_RD | CVG_DST_SAVE | ZMODE_OPA | FORCE_BL | GBL_c1(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA), AA_EN | Z_CMP | IM_RD | CVG_DST_SAVE | ZMODE_OPA | FORCE_BL | GBL_c2(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA));
190 gDPSetPrimColor(gfxPos++, 0, 0, 0, 0, 0, alpha);
191 gSPDisplayList(gfxPos++, dlist);
192 gSPPopMatrix(gfxPos++, G_MTX_MODELVIEW);
216 fx_stars_shimmer(3, entity->
pos.
x, entity->
pos.
y, entity->
pos.
z, 22.0f, 8.0f, 4, 20);
257 .modelAnimationNodes = 0,
263 .aabbSize = { 25, 25, 25 }
270 .modelAnimationNodes = 0,
273 .fpHandleCollision = NULL,
276 .aabbSize = { 18, 6, 18 }
283 .modelAnimationNodes = 0,
289 .aabbSize = { 25, 25, 25 }
296 .modelAnimationNodes = 0,
299 .fpHandleCollision = NULL,
302 .aabbSize = { 18, 6, 18 }
void entity_init_SuperBlockContent(Entity *entity)
EntityBlueprint Entity_UltraBlockContent
EntityScript Entity_UltraBlockContent_Script
void entity_upgrade_block_check_if_inactive(Entity *entity)
s32 entity_upgrade_block_idle(Entity *entity)
EntityModelScript Entity_SuperBlock_RenderScript
void entity_SuperBlockContent_setupGfx(s32 entityIndex)
unsigned char D_0A000260_E4A900[]
Gfx Entity_UltraBlock_Render[]
void entity_upgrade_block_init(Entity *entity)
EntityBlueprint Entity_UltraBlock
void entity_upgrade_block_hide_content(s32 entityIndex)
unsigned char D_0A000200_E4A8A0[]
f32 entity_SuperBlockContent_get_previous_yaw(SuperBlockContentData *data, s32 lagTime)
EntityModelScript Entity_UltraBlockContent_RenderScript
EntityModelScript Entity_UltraBlock_RenderScript
Gfx Entity_SuperBlockContent_Render2[]
EntityBlueprint Entity_SuperBlockContent
EntityScript Entity_SuperBlockContent_Script
void entity_SuperBlockContent_attach_to_parent(Entity *entity)
unsigned char * Entity_SuperBlock_Palettes[]
Gfx Entity_SuperBlockContent_Render[]
void entity_init_UltraBlockContent(Entity *entity)
EntityModelScript Entity_SuperBlockContent_RenderScript
void entity_SuperBlock_init(Entity *entity)
unsigned char D_0A000240_E4A8E0[]
Gfx Entity_UltraBlockContent_Render[]
Gfx Entity_SuperBlock_Render[]
unsigned char D_0A000220_E4A8C0[]
void entity_SuperBlockContent_idle(Entity *entity)
Gfx Entity_UltraBlockContent_Render2[]
EntityScript Entity_SuperBlock_Script
void entity_UltraBlock_init(Entity *entity)
EntityBlueprint Entity_SuperBlock
s8 Entity_SuperBlock_PalData[]
struct SuperBlockContentData * superBlockContent
#define STANDARD_ENTITY_MODEL_SCRIPT(gfx, renderMode)
#define ENTITY_ADDR(entity, type, data)
#define es_SetCallback(func, time)
#define es_Label(labelId)
#define es_PlaySound(soundId)
@ ENTITY_TYPE_SUPER_BLOCK
@ ENTITY_TYPE_ULTRA_BLOCK_HIT_EFFECT
@ ENTITY_TYPE_ULTRA_BLOCK
@ ENTITY_TYPE_SUPER_BLOCK_HIT_EFFECT
@ RENDER_MODE_SURFACE_XLU_LAYER2
@ ENTITY_FLAG_FIXED_SHADOW_SIZE
@ ENTITY_FLAG_DISABLE_COLLISION
Entity * get_entity_by_index(s32 index)
void entity_block_hit_animate_scale(Entity *entity)
s32 entity_start_script(Entity *entity)
s32 entity_base_block_idle(Entity *entity)
void entity_base_block_init(Entity *entity)
f32 entity_block_hit_init_scale(Entity *entity)
s32 create_entity(EntityBlueprint *bp,...)
s32 entity_block_handle_collision(Entity *entity)
void(* renderSetupFunc)(s32)
u8 Addr[]
Linker symbol address, as in ld_addrs.h.
DisplayContext * gDisplayContext
s32 get_global_flag(s32 index)