mirror of https://github.com/sm64pc/sm64pc.git
65 lines
2.1 KiB
C
65 lines
2.1 KiB
C
#include <ultra64.h>
|
|
#include "sm64.h"
|
|
#include "behavior_data.h"
|
|
#include "model_ids.h"
|
|
#include "seq_ids.h"
|
|
#include "dialog_ids.h"
|
|
#include "segment_symbols.h"
|
|
#include "level_commands.h"
|
|
|
|
#include "game/level_update.h"
|
|
|
|
#include "levels/scripts.h"
|
|
|
|
#include "actors/common1.h"
|
|
|
|
/* Fast64 begin persistent block [includes] */
|
|
/* Fast64 end persistent block [includes] */
|
|
|
|
#include "make_const_nonconst.h"
|
|
#include "levels/sa/header.h"
|
|
|
|
/* Fast64 begin persistent block [scripts] */
|
|
/* Fast64 end persistent block [scripts] */
|
|
|
|
const LevelScript level_sa_entry[] = {
|
|
INIT_LEVEL(),
|
|
LOAD_MIO0(0x07, _sa_segment_7SegmentRomStart, _sa_segment_7SegmentRomEnd),
|
|
LOAD_MIO0_TEXTURE(0x09, _inside_mio0SegmentRomStart, _inside_mio0SegmentRomEnd),
|
|
LOAD_MIO0(0x0A, _clouds_skybox_mio0SegmentRomStart, _clouds_skybox_mio0SegmentRomEnd),
|
|
LOAD_MIO0(0x0B, _effect_mio0SegmentRomStart, _effect_mio0SegmentRomEnd),
|
|
LOAD_MIO0(0x05, _group4_mio0SegmentRomStart, _group4_mio0SegmentRomEnd),
|
|
LOAD_RAW(0x0C, _group4_geoSegmentRomStart, _group4_geoSegmentRomEnd),
|
|
LOAD_MIO0(0x06, _group13_mio0SegmentRomStart, _group13_mio0SegmentRomEnd),
|
|
LOAD_RAW(0x0D, _group13_geoSegmentRomStart, _group13_geoSegmentRomEnd),
|
|
ALLOC_LEVEL_POOL(),
|
|
MARIO(MODEL_MARIO, 0x00000001, bhvMario),
|
|
JUMP_LINK(script_func_global_5),
|
|
JUMP_LINK(script_func_global_14),
|
|
|
|
/* Fast64 begin persistent block [level commands] */
|
|
/* Fast64 end persistent block [level commands] */
|
|
|
|
AREA(1, sa_area_1),
|
|
WARP_NODE(0x0A, LEVEL_BOB, 0x01, 0x0A, WARP_NO_CHECKPOINT),
|
|
WARP_NODE(0xF0, LEVEL_BOB, 0x01, 0x0A, WARP_NO_CHECKPOINT),
|
|
WARP_NODE(0xF1, LEVEL_BOB, 0x01, 0x0A, WARP_NO_CHECKPOINT),
|
|
OBJECT(MODEL_NONE, 0, 200, 0, 0, 0, 0, 0x000A0000, bhvSpinAirborneWarp),
|
|
MARIO_POS(0x01, 0, 0, 200, 0),
|
|
TERRAIN(sa_area_1_collision),
|
|
MACRO_OBJECTS(sa_area_1_macro_objs),
|
|
STOP_MUSIC(0),
|
|
TERRAIN_TYPE(TERRAIN_GRASS),
|
|
/* Fast64 begin persistent block [area commands] */
|
|
/* Fast64 end persistent block [area commands] */
|
|
END_AREA(),
|
|
|
|
FREE_LEVEL_POOL(),
|
|
MARIO_POS(0x01, 0, 0, 200, 0),
|
|
CALL(0, lvl_init_or_update),
|
|
CALL_LOOP(1, lvl_init_or_update),
|
|
CLEAR_LEVEL(),
|
|
SLEEP_BEFORE_EXIT(1),
|
|
EXIT(),
|
|
};
|