Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
HitRedBlock_anim.c File Reference

Go to the source code of this file.

Variables

Gfx Entity_HitRedBlock_RenderBlock2 []
 
Gfx Entity_HitRedBlock_RenderBlock1 []
 
StaticAnimatorNode Entity_HitRedBlock_NodeBlock2
 
StaticAnimatorNode Entity_HitRedBlock_NodeBlock1
 
StaticAnimatorNode Entity_HitRedBlock_NodeMain
 
StaticAnimatorNodeEntity_HitRedBlock_Mesh []
 
AnimScript Entity_HitRedBlock_AnimationHit
 

Variable Documentation

◆ Entity_HitRedBlock_RenderBlock2

Gfx Entity_HitRedBlock_RenderBlock2[]
extern

Definition at line 10 of file HitRedBlock_gfx.c.

10 {
11 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
12 gsDPPipeSync(),
13 gsDPSetCycleType(G_CYC_1CYCLE),
14 gsDPSetTextureDetail(G_TD_CLAMP),
15 gsDPSetTextureLOD(G_TL_TILE),
16 gsDPLoadTextureBlock(D_0A000C60_E493E0, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
17 gsDPSetTexturePersp(G_TP_PERSP),
18 gsDPSetTextureFilter(G_TF_BILERP),
19 gsSPClearGeometryMode(G_LIGHTING),
20 gsSPVertex(D_0A000160_E488E0, 22, 0),
21 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
22 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
23 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
24 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
25 gsSP2Triangles(16, 17, 18, 0, 16, 18, 19, 0),
26 gsSP2Triangles(20, 7, 6, 0, 20, 6, 21, 0),
27 gsDPPipeSync(),
28 gsDPSetCombineMode(PM_CC_04, PM_CC_04),
29 gsSPTexture(0x0001, 0x0001, 0, G_TX_RENDERTILE, G_OFF),
30 gsSPEndDisplayList(),
31};
unsigned char D_0A000C60_E493E0[]
#define PM_CC_04
Definition macros.h:279

◆ Entity_HitRedBlock_RenderBlock1

Gfx Entity_HitRedBlock_RenderBlock1[]
extern

Definition at line 33 of file HitRedBlock_gfx.c.

33 {
34 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
35 gsDPPipeSync(),
36 gsDPSetCycleType(G_CYC_1CYCLE),
37 gsDPSetTextureDetail(G_TD_CLAMP),
38 gsDPSetTextureLOD(G_TL_TILE),
39 gsDPLoadTextureBlock(D_0A000460_E48BE0, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
40 gsDPSetTexturePersp(G_TP_PERSP),
41 gsDPSetTextureFilter(G_TF_BILERP),
42 gsSPClearGeometryMode(G_LIGHTING),
43 gsSPVertex(D_0A000000_E48780, 22, 0),
44 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
45 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
46 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
47 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
48 gsSP2Triangles(16, 17, 18, 0, 16, 18, 19, 0),
49 gsSP2Triangles(20, 7, 6, 0, 20, 6, 21, 0),
50 gsDPPipeSync(),
51 gsDPSetCombineMode(PM_CC_04, PM_CC_04),
52 gsSPTexture(0x0001, 0x0001, 0, G_TX_RENDERTILE, G_OFF),
53 gsSPEndDisplayList(),
54};
unsigned char D_0A000460_E48BE0[]

◆ Entity_HitRedBlock_NodeBlock2

StaticAnimatorNode Entity_HitRedBlock_NodeBlock2
Initial value:
= {
.pos = { 0.0f, 25.0f, 0.0f },
.sibling = ENTITY_ANIM_NULL,
.child = ENTITY_ANIM_NULL,
}
Gfx Entity_HitRedBlock_RenderBlock2[]
#define ENTITY_ANIM_NULL

Definition at line 7 of file HitRedBlock_anim.c.

7 {
9 .pos = { 0.0f, 25.0f, 0.0f },
10 .sibling = ENTITY_ANIM_NULL,
11 .child = ENTITY_ANIM_NULL,
12};

◆ Entity_HitRedBlock_NodeBlock1

StaticAnimatorNode Entity_HitRedBlock_NodeBlock1
Initial value:
= {
}
StaticAnimatorNode Entity_HitRedBlock_NodeBlock2
Gfx Entity_HitRedBlock_RenderBlock1[]
struct StaticAnimatorNode * child

Definition at line 14 of file HitRedBlock_anim.c.

14 {
18};

◆ Entity_HitRedBlock_NodeMain

StaticAnimatorNode Entity_HitRedBlock_NodeMain
Initial value:
= {
.displayList = ENTITY_ANIM_NULL,
.sibling = ENTITY_ANIM_NULL,
}
StaticAnimatorNode Entity_HitRedBlock_NodeBlock1

Definition at line 20 of file HitRedBlock_anim.c.

20 {
21 .displayList = ENTITY_ANIM_NULL,
22 .sibling = ENTITY_ANIM_NULL,
24};

◆ Entity_HitRedBlock_Mesh

◆ Entity_HitRedBlock_AnimationHit

AnimScript Entity_HitRedBlock_AnimationHit

Definition at line 33 of file HitRedBlock_anim.c.

33 {
34 as_SetRotation(1, 0.0, 0.0, 0.0)
35 as_SetPos(1, 0, 0, 0)
36 as_SetScale(1, 1.0, 1.0, 1.0)
37 as_SetRotation(2, 0.0, 0.0, 0.0)
38 as_SetPos(2, 0, 0, 0)
39 as_SetScale(2, 1.0, 1.0, 1.0)
40 as_SetRotation(3, 0.0, 0.0, 0.0)
41 as_SetPos(3, 0, 25, 0)
42 as_SetScale(3, -1.0, -1.0, -1.0)
43 as_Wait(1)
44 as_SetPos(2, 0, 9, 0)
45 as_SetScale(2, 1.62, 0.62, 1.62)
46 as_SetScale(3, -1.62, -0.62, -1.62)
47 as_Wait(1)
48 as_SetPos(2, 0, 25, 0)
49 as_SetScale(2, 2.0, 0.0, 2.0)
50 as_SetScale(3, -2.0, 0.0, -2.0)
51 as_Wait(1)
52 as_SetPos(2, 0, 40, 0)
53 as_SetScale(2, 1.62, -0.62, 1.62)
54 as_SetScale(3, -1.62, 0.62, -1.62)
55 as_Wait(1)
56 as_SetPos(2, 0, 50, 0)
57 as_SetScale(2, -1.0, -1.0, -1.0)
58 as_SetScale(3, 1.0, 1.0, 1.0)
59 as_Wait(1)
60 as_SetPos(2, 0, 43, 0)
61 as_SetScale(2, -1.36, -0.885, -1.36)
62 as_SetPos(3, 0, 21, 0)
63 as_SetScale(3, 1.36, 0.885, 1.36)
64 as_Wait(1)
65 as_SetPos(2, 0, 35, 0)
66 as_SetScale(2, -1.245, -0.745, -1.245)
67 as_SetPos(3, 0, 16, 0)
68 as_SetScale(3, 1.245, 0.745, 1.245)
69 as_Wait(1)
70 as_SetPos(2, 0, 30, 0)
71 as_SetScale(2, -1.18, -0.815, -1.18)
72 as_SetPos(3, 0, 9, 0)
73 as_SetScale(3, 1.18, 0.815, 1.18)
74 as_Wait(1)
75 as_SetPos(2, 0, 26, 0)
76 as_SetScale(2, -1.06, -0.935, -1.06)
77 as_SetPos(3, 0, 3, 0)
78 as_SetScale(3, 1.06, 0.935, 1.06)
79 as_Wait(1)
81 as_SetPos(2, 0, 25, 0)
82 as_SetScale(2, -1.0, -1.0, -1.0)
83 as_SetPos(3, 0, 0, 0)
84 as_SetScale(3, 1.0, 1.0, 1.0)
85 as_Wait(1)
87 as_End
88};
#define as_Wait(time)
#define as_SetPos(node, x, y, z)
#define as_SetRotation(node, x, y, z)
#define as_SetScale(node, x, y, z)
#define as_End
#define as_Loop
#define as_Restart

Referenced by entity_HitItemBlock_play_anim().