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

Go to the source code of this file.

Variables

Gfx Entity_HitYellowBlock_RenderBlock2 []
 
Gfx Entity_HitYellowBlock_RenderBlock1 []
 
StaticAnimatorNode Entity_HitYellowBlock_NodeBlock2
 
StaticAnimatorNode Entity_HitYellowBlock_NodeBlock1
 
StaticAnimatorNode Entity_HitYellowBlock_NodeMain
 
StaticAnimatorNodeEntity_HitYellowBlock_Mesh []
 
AnimScript Entity_HitYellowBlock_AnimationHit
 
AnimScript Entity_HitYellowBlock_AnimationIdle
 

Variable Documentation

◆ Entity_HitYellowBlock_RenderBlock2

Gfx Entity_HitYellowBlock_RenderBlock2[]
extern

Definition at line 10 of file HitYellowBlock_gfx.c.

10 {
11 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
12 gsDPPipeSync(),
13 gsDPSetCycleType(G_CYC_1CYCLE),
14 gsDPLoadTextureBlock(D_0A000C20_E46610, 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),
15 gsSPClearGeometryMode(G_LIGHTING),
16 gsSPVertex(D_0A000160_E45B50, 22, 0),
17 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
18 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
19 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
20 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
21 gsSP2Triangles(16, 17, 18, 0, 16, 18, 19, 0),
22 gsSP2Triangles(20, 7, 6, 0, 20, 6, 21, 0),
23 gsDPPipeSync(),
24 gsDPSetCombineMode(PM_CC_04, PM_CC_04),
25 gsSPTexture(0x0001, 0x0001, 0, G_TX_RENDERTILE, G_OFF),
26 gsSPEndDisplayList(),
27};
unsigned char D_0A000C20_E46610[]
#define PM_CC_04
Definition macros.h:279

◆ Entity_HitYellowBlock_RenderBlock1

Gfx Entity_HitYellowBlock_RenderBlock1[]
extern

Definition at line 29 of file HitYellowBlock_gfx.c.

29 {
30 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
31 gsDPPipeSync(),
32 gsDPSetCycleType(G_CYC_1CYCLE),
33 gsDPLoadTextureBlock(D_0A000420_E45E10, 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),
34 gsSPClearGeometryMode(G_LIGHTING),
35 gsSPVertex(D_0A000000_E459F0, 22, 0),
36 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
37 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
38 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
39 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
40 gsSP2Triangles(16, 17, 18, 0, 16, 18, 19, 0),
41 gsSP2Triangles(20, 7, 6, 0, 20, 6, 21, 0),
42 gsDPPipeSync(),
43 gsDPSetCombineMode(PM_CC_04, PM_CC_04),
44 gsSPTexture(0x0001, 0x0001, 0, G_TX_RENDERTILE, G_OFF),
45 gsSPEndDisplayList(),
46};
unsigned char D_0A000420_E45E10[]

◆ Entity_HitYellowBlock_NodeBlock2

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

Definition at line 7 of file HitYellowBlock_anim.c.

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

◆ Entity_HitYellowBlock_NodeBlock1

StaticAnimatorNode Entity_HitYellowBlock_NodeBlock1
Initial value:
= {
}
StaticAnimatorNode Entity_HitYellowBlock_NodeBlock2
Gfx Entity_HitYellowBlock_RenderBlock1[]
struct StaticAnimatorNode * child

Definition at line 14 of file HitYellowBlock_anim.c.

◆ Entity_HitYellowBlock_NodeMain

StaticAnimatorNode Entity_HitYellowBlock_NodeMain
Initial value:
= {
.displayList = ENTITY_ANIM_NULL,
.sibling = ENTITY_ANIM_NULL,
}
StaticAnimatorNode Entity_HitYellowBlock_NodeBlock1

Definition at line 20 of file HitYellowBlock_anim.c.

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

◆ Entity_HitYellowBlock_Mesh

◆ Entity_HitYellowBlock_AnimationHit

AnimScript Entity_HitYellowBlock_AnimationHit

Definition at line 33 of file HitYellowBlock_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, 25, 0)
45 as_SetScale(2, 2.0, 0.0, 2.0)
46 as_SetScale(3, -2.0, 0.0, -2.0)
47 as_Wait(1)
48 as_SetPos(2, 0, 40, 0)
49 as_SetScale(2, 1.62, -0.62, 1.62)
50 as_SetScale(3, -1.62, 0.62, -1.62)
51 as_Wait(1)
52 as_SetPos(2, 0, 50, 0)
53 as_SetScale(2, -1.0, -1.0, -1.0)
54 as_SetScale(3, 1.0, 1.0, 1.0)
55 as_Wait(1)
56 as_SetPos(2, 0, 43, 0)
57 as_SetScale(2, -1.36, -0.885, -1.36)
58 as_SetPos(3, 0, 21, 0)
59 as_SetScale(3, 1.36, 0.885, 1.36)
60 as_Wait(1)
61 as_SetPos(2, 0, 35, 0)
62 as_SetScale(2, -1.245, -0.745, -1.245)
63 as_SetPos(3, 0, 16, 0)
64 as_SetScale(3, 1.245, 0.745, 1.245)
65 as_Wait(1)
66 as_SetPos(2, 0, 30, 0)
67 as_SetScale(2, -1.18, -0.815, -1.18)
68 as_SetPos(3, 0, 9, 0)
69 as_SetScale(3, 1.18, 0.815, 1.18)
70 as_Wait(1)
71 as_SetPos(2, 0, 26, 0)
72 as_SetScale(2, -1.06, -0.935, -1.06)
73 as_SetPos(3, 0, 3, 0)
74 as_SetScale(3, 1.06, 0.935, 1.06)
75 as_Wait(1)
77 as_SetPos(2, 0, 25, 0)
78 as_SetScale(2, -1.0, -1.0, -1.0)
79 as_SetPos(3, 0, 0, 0)
80 as_SetScale(3, 1.0, 1.0, 1.0)
81 as_Wait(1)
83 as_End
84};
#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_EndLoop

Referenced by entity_HitItemBlock_play_anim().

◆ Entity_HitYellowBlock_AnimationIdle

AnimScript Entity_HitYellowBlock_AnimationIdle
Initial value:
= {
as_SetRotation(1, 0.0, 0.0, 0.0)
as_SetPos(1, 0, 0, 0)
as_SetScale(1, 1.0, 1.0, 1.0)
as_SetRotation(2, 0.0, 0.0, 0.0)
as_SetPos(2, 0, 0, 0)
as_SetScale(2, 1.0, 1.0, 1.0)
as_SetRotation(3, 0.0, 0.0, 0.0)
as_SetPos(3, 0, 25, 0)
as_SetScale(3, -1.0, -1.0, -1.0)
}
#define as_Restart

Definition at line 86 of file HitYellowBlock_anim.c.

86 {
87 as_SetRotation(1, 0.0, 0.0, 0.0)
88 as_SetPos(1, 0, 0, 0)
89 as_SetScale(1, 1.0, 1.0, 1.0)
90 as_SetRotation(2, 0.0, 0.0, 0.0)
91 as_SetPos(2, 0, 0, 0)
92 as_SetScale(2, 1.0, 1.0, 1.0)
93 as_SetRotation(3, 0.0, 0.0, 0.0)
94 as_SetPos(3, 0, 25, 0)
95 as_SetScale(3, -1.0, -1.0, -1.0)
96 as_Wait(1)
98 as_End
99};