Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
tik_05.inc.c
Go to the documentation of this file.
1#include "battle/battle.h"
3
4#define NAMESPACE A(tik_05)
5
7
8EvtScript N(EVS_PreBattle) = {
9 Call(SetSpriteShading, SHADING_NONE)
13 Thread
15 TEX_PAN_PARAMS_STEP( 0, -2700, 0, -3000)
16 TEX_PAN_PARAMS_FREQ( 1, 1, 1, 1)
17 TEX_PAN_PARAMS_INIT( 0, 0, 0, 0)
18 Exec(N(EVS_UpdateTexturePan))
22 Thread
24 TEX_PAN_PARAMS_STEP( 50, -200, 110, -500)
25 TEX_PAN_PARAMS_FREQ( 1, 1, 1, 1)
26 TEX_PAN_PARAMS_INIT( 0, 0, 0, 0)
27 Exec(N(EVS_UpdateTexturePan))
29 Return
30 End
31};
32
33EvtScript N(EVS_PostBattle) = {
34 Return
35 End
36};
37
38s32 N(ForegroundModels)[] = {
41};
42
43Stage NAMESPACE = {
44 .texture = "tik_tex",
45 .shape = "tik_bt05_shape",
46 .hit = "tik_bt05_hit",
47 .preBattle = &N(EVS_PreBattle),
48 .postBattle = &N(EVS_PostBattle),
49 .foregroundModelList = N(ForegroundModels),
50};
51
#define TEX_PAN_PARAMS_ID(panID)
Definition TexturePan.h:1
#define TEX_PAN_PARAMS_STEP(main_step_du, main_step_dv, aux_step_du, aux_step_dv)
Definition TexturePan.h:8
#define TEX_PAN_PARAMS_FREQ(main_freq_u, main_freq_v, aux_freq_u, aux_freq_v)
Definition TexturePan.h:14
#define TEX_PAN_PARAMS_INIT(main_init_u, main_init_v, aux_init_u, aux_init_v)
Definition TexturePan.h:20
Bytecode EvtScript[]
@ TEX_PANNER_2
Definition enums.h:4400
@ TEX_PANNER_1
Definition enums.h:4399
@ CAM_BATTLE
Definition enums.h:1801
#define MODEL_taki1
ApiStatus SetSpriteShading(Evt *script, b32 isInitialCall)
ApiStatus SetCamBGColor(Evt *script, b32 isInitialCall)
ApiStatus EnableTexPanning(Evt *script, b32 isInitialCall)
Enables or disables texture panning on the given model.
ApiStatus SetTexPanner(Evt *script, b32 isInitialCall)
Sets a model's pannerID and sets the texture pan flag.
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:213
#define Thread
Marks the start of a thread block.
Definition macros.h:544
#define EndThread
Marks the end of a thread block.
Definition macros.h:547
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:576
#define Exec(EVT_SOURCE)
Launches a new thread.
Definition macros.h:455
#define Return
Kills the current EVT thread.
Definition macros.h:217
#define STAGE_MODEL_LIST_END
Definition battle.h:8
#define MODEL_taki2