script.c (2437B)
1 #include <ultra64.h> 2 #include "sm64.h" 3 #include "behavior_data.h" 4 #include "model_ids.h" 5 #include "seq_ids.h" 6 #include "segment_symbols.h" 7 #include "level_commands.h" 8 9 #include "game/level_update.h" 10 11 #include "levels/scripts.h" 12 13 #include "actors/common1.h" 14 15 #include "make_const_nonconst.h" 16 #include "levels/pss/header.h" 17 18 const LevelScript level_pss_entry[] = { 19 INIT_LEVEL(), 20 LOAD_MIO0 (/*seg*/ 0x07, _pss_segment_7SegmentRomStart, _pss_segment_7SegmentRomEnd), 21 LOAD_MIO0_TEXTURE(/*seg*/ 0x09, _mountain_mio0SegmentRomStart, _mountain_mio0SegmentRomEnd), 22 LOAD_MIO0 (/*seg*/ 0x05, _group8_mio0SegmentRomStart, _group8_mio0SegmentRomEnd), 23 LOAD_RAW (/*seg*/ 0x0C, _group8_geoSegmentRomStart, _group8_geoSegmentRomEnd), 24 LOAD_MIO0 (/*seg*/ 0x08, _common0_mio0SegmentRomStart, _common0_mio0SegmentRomEnd), 25 LOAD_RAW (/*seg*/ 0x0F, _common0_geoSegmentRomStart, _common0_geoSegmentRomEnd), 26 ALLOC_LEVEL_POOL(), 27 MARIO(/*model*/ MODEL_MARIO, /*bhvParam*/ BPARAM4(0x01), /*bhv*/ bhvMario), 28 JUMP_LINK(script_func_global_1), 29 JUMP_LINK(script_func_global_9), 30 31 AREA(/*index*/ 1, pss_geo_000100), 32 OBJECT(/*model*/ MODEL_NONE, /*pos*/ 5632, 6751, -5631, /*angle*/ 0, 270, 0, /*bhvParam*/ BPARAM2(WARP_NODE_0A), /*bhv*/ bhvAirborneWarp), 33 WARP_NODE(/*id*/ WARP_NODE_0A, /*destLevel*/ LEVEL_PSS, /*destArea*/ 1, /*destNode*/ WARP_NODE_0A, /*flags*/ WARP_NO_CHECKPOINT), 34 WARP_NODE(/*id*/ WARP_NODE_WARP_FLOOR, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 1, /*destNode*/ WARP_NODE_20, /*flags*/ WARP_NO_CHECKPOINT), 35 WARP_NODE(/*id*/ WARP_NODE_SUCCESS, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 1, /*destNode*/ WARP_NODE_26, /*flags*/ WARP_NO_CHECKPOINT), 36 WARP_NODE(/*id*/ WARP_NODE_DEATH, /*destLevel*/ LEVEL_CASTLE, /*destArea*/ 1, /*destNode*/ WARP_NODE_23, /*flags*/ WARP_NO_CHECKPOINT), 37 TERRAIN(/*terrainData*/ pss_seg7_collision), 38 MACRO_OBJECTS(/*objList*/ pss_seg7_macro_objs), 39 TERRAIN_TYPE(/*terrainType*/ TERRAIN_SLIDE), 40 SET_BACKGROUND_MUSIC(/*settingsPreset*/ 0x0001, /*seq*/ SEQ_LEVEL_SLIDE), 41 END_AREA(), 42 43 FREE_LEVEL_POOL(), 44 MARIO_POS(/*area*/ 1, /*yaw*/ 270, /*pos*/ 5632, 6451, -5631), 45 CALL(/*arg*/ 0, /*func*/ lvl_init_or_update), 46 CALL_LOOP(/*arg*/ 1, /*func*/ lvl_init_or_update), 47 CLEAR_LEVEL(), 48 SLEEP_BEFORE_EXIT(/*frames*/ 1), 49 EXIT(), 50 };