blob: 3bfcd8fd8a95a7a1f1687cc20cc5dd9aaae11724 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#include <common.h>
#include <game.h>
#include <g3dhax.h>
#include <sfx.h>
#include <stage.h>
#include "boss.h"
int KeyCounter = 0;
extern "C" void *KeyLoopSet(dStageActor_c *);
void endKeyLevel(dStageActor_c *key) {
OSReport("Key End Level");
if (key->settings) {
KeyCounter += 1;
OSReport("Key Counter now at: %d", KeyCounter);
ExitStage(WORLD_MAP, 0, BEAT_LEVEL, MARIO_WIPE);
}
}
void startEndKeyLevel(dStageActor_c *key) {
key->speed.y = 4.0;
OSReport("Key Set Speed");
if (key->settings) {
StopBGMMusic();
PlaySound(key, STRM_BGM_COURSE_CLEAR_ZORO);
MakeMarioEnterDemoMode();
}
}
void soundsEndKeyLevel(dStageActor_c *key) {
OSReport("Key Set Loop");
KeyLoopSet(key);
if (key->settings) {
UpdateGameMgr();
if (GetSpecificPlayerActor(0) != 0) { PlaySound(key, SE_VOC_MA_CLEAR_MULTI); }
if (GetSpecificPlayerActor(1) != 0) { PlaySound(key, SE_VOC_LU_CLEAR_MULTI); }
if (GetSpecificPlayerActor(2) != 0) { PlaySound(key, SE_VOC_KO_CLEAR_MULTI); }
if (GetSpecificPlayerActor(3) != 0) { PlaySound(key, SE_VOC_KO2_CLEAR_MULTI); }
}
}
|