Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/levels/ending/script.c
7858 views
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/area.h"
10
#include "game/level_update.h"
11
12
#include "levels/scripts.h"
13
14
#include "actors/common1.h"
15
16
#include "make_const_nonconst.h"
17
#include "levels/ending/header.h"
18
#include "levels/intro/header.h"
19
20
const LevelScript level_ending_entry[] = {
21
/*0*/ INIT_LEVEL(),
22
/*1*/ LOAD_MIO0(/*seg*/ 0x07, _ending_segment_7SegmentRomStart, _ending_segment_7SegmentRomEnd),
23
/*4*/ ALLOC_LEVEL_POOL(),
24
25
/*5*/ AREA(/*index*/ 1, ending_geo_000050),
26
/*7*/ END_AREA(),
27
28
/*8*/ FREE_LEVEL_POOL(),
29
/*9*/ SLEEP(/*frames*/ 60),
30
/*10*/ BLACKOUT(/*active*/ FALSE),
31
/*11*/ LOAD_AREA(/*area*/ 1),
32
/*12*/ TRANSITION(/*transType*/ WARP_TRANSITION_FADE_FROM_COLOR, /*time*/ 75, /*color*/ 0x00, 0x00, 0x00),
33
/*14*/ SLEEP(/*frames*/ 120),
34
/*15*/ CALL(/*arg*/ 0, /*func*/ lvl_play_the_end_screen_sound),
35
// L1:
36
/*17*/ CALL_LOOP(/*arg*/ 1, /*func*/ credits_wait_for_reset),
37
/*18*/ TRANSITION(/*transType*/ WARP_TRANSITION_FADE_INTO_COLOR, /*time*/ 75, /*color*/ 0x00, 0x00, 0x00),
38
/*19*/ SLEEP(/*frames*/ 240),
39
/*20*/ EXECUTE(/*seg*/ 0x14, /*script*/ _introSegmentRomStart, /*scriptEnd*/ _introSegmentRomEnd, /*entry*/ level_intro_mario_head_regular),
40
};
41
42