Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
tik_02.inc.c
Go to the documentation of this file.
1#include "battle/battle.h"
3
4#define NAMESPACE A(tik_02)
5
7
8#define DROPLET_MODEL MODEL_o354
10
11DripVolumeList N(DripVolumes) = {
12 .count = 1,
13 .volumes = {
14 {
15 .minPos = { -100, -50 },
16 .maxPos = { 200, 100 },
17 .startY = 200,
18 .endY = 0,
19 .duration = 60,
20 .density = 4,
21 }
22 }
23};
24
25EvtScript N(EVS_PreBattle) = {
26 Call(SetSpriteShading, SHADING_NONE)
28 Set(LVar0, Ref(N(DripVolumes)))
29 Exec(N(EVS_CreateDripVolumes))
32 Set(LVar2, 0)
33 Set(LVar3, -500)
34 Exec(N(EVS_TexturePanMain))
35 Return
36 End
37};
38
39EvtScript N(EVS_PostBattle) = {
40 Return
41 End
42};
43
44Stage NAMESPACE = {
45 .texture = "tik_tex",
46 .shape = "tik_bt02_shape",
47 .hit = "tik_bt02_hit",
48 .preBattle = &N(EVS_PreBattle),
49 .postBattle = &N(EVS_PostBattle),
50};
Bytecode EvtScript[]
@ TEX_PANNER_0
Definition enums.h:4398
@ CAM_BATTLE
Definition enums.h:1801
ApiStatus SetSpriteShading(Evt *script, b32 isInitialCall)
ApiStatus SetCamBGColor(Evt *script, b32 isInitialCall)
#define Ref(sym)
Address/pointer constant.
Definition macros.h:60
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
Definition macros.h:365
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:213
#define LVar2
Definition macros.h:150
#define LVar1
Definition macros.h:149
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:576
#define LVar3
Definition macros.h:151
#define LVar0
Definition macros.h:148
#define Exec(EVT_SOURCE)
Launches a new thread.
Definition macros.h:455
#define Return
Kills the current EVT thread.
Definition macros.h:217
#define MODEL_misu