Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
tik_03.inc.c
Go to the documentation of this file.
1#include "battle/battle.h"
3
4#define NAMESPACE A(tik_03)
5
6#define DROPLET_MODEL MODEL_o371
8
9DripVolumeList N(DripVolumes) = {
10 .count = 1,
11 .volumes = {
12 {
13 .minPos = { -100, -50 },
14 .maxPos = { 200, 100 },
15 .startY = 200,
16 .endY = 0,
17 .duration = 60,
18 .density = 4,
19 }
20 }
21};
22
23EvtScript N(EVS_PreBattle) = {
24 Call(SetSpriteShading, SHADING_NONE)
26 Set(LVar0, Ref(N(DripVolumes)))
27 Exec(N(EVS_CreateDripVolumes))
28 Return
29 End
30};
31
32EvtScript N(EVS_PostBattle) = {
33 Return
34 End
35};
36
37Stage NAMESPACE = {
38 .texture = "tik_tex",
39 .shape = "tik_bt03_shape",
40 .hit = "tik_bt03_hit",
41 .preBattle = &N(EVS_PreBattle),
42 .postBattle = &N(EVS_PostBattle),
43};
44
Bytecode EvtScript[]
@ 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 Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:576
#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