forked from DizzyEggg/pokeemerald
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
7,463 additions
and
7,336 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,49 @@ | ||
#ifndef GUARD_BARD_MUSIC_H | ||
#define GUARD_BARD_MUSIC_H | ||
|
||
#define BARD_SOUND_MAX_LENGTH 6 | ||
// The maximum number of BardSoundTemplates/BardSounds there can be for each easy chat word. | ||
#define MAX_BARD_SOUNDS_PER_WORD 6 | ||
|
||
struct BardSound | ||
// The number of pitch tables there are for each pitch table size (see sPitchTables). | ||
#define NUM_BARD_PITCH_TABLES_PER_SIZE 5 | ||
|
||
// This struct describes which phoneme song to play for the sound, and whether to | ||
// make any adjustments to its length or volume. Very few sounds make any adjustments. | ||
struct BardSoundTemplate | ||
{ | ||
/*0x00*/ u8 songLengthId; | ||
/*0x01*/ s8 songLengthOffset; | ||
/*0x02*/ u16 unused; | ||
/*0x04*/ s16 volume; | ||
/*0x06*/ u16 unused2; | ||
u8 songId; | ||
s8 lengthAdjustment; | ||
u16 unused; // Only set on EC_WORD_WAAAH, and never read. | ||
s16 volume; | ||
}; | ||
|
||
struct BardPhoneme | ||
// This is the length and pitch to play the phoneme song at. | ||
// These will be calculated in 'CalcWordSounds'. | ||
struct BardSound | ||
{ | ||
/*0x00*/ u16 length; | ||
/*0x02*/ u16 pitch; | ||
u16 length; | ||
u16 pitch; | ||
}; | ||
|
||
struct BardSong | ||
{ | ||
/*0x00*/ u8 currWord; | ||
/*0x01*/ u8 currPhoneme; | ||
/*0x02*/ u8 phonemeTimer; | ||
/*0x03*/ u8 state; | ||
/*0x04*/ s16 length; | ||
/*0x06*/ u16 volume; | ||
/*0x08*/ s16 pitch; | ||
/*0x0A*/ s16 voiceInflection; | ||
/*0x0C*/ u16 lyrics[BARD_SOUND_MAX_LENGTH]; | ||
/*0x18*/ struct BardPhoneme phonemes[BARD_SOUND_MAX_LENGTH]; | ||
/*0x30*/ const struct BardSound *sound; | ||
u8 lyricsIndex; | ||
u8 soundIndex; | ||
u8 timer; | ||
u8 state; | ||
s16 length; // Length of the sound for the word currently being sung (i.e. the sum of 'length' in all the current word's phonemes). | ||
u16 volume; | ||
s16 pitch; | ||
s16 voiceInflection; | ||
u16 lyrics[NUM_BARD_SONG_WORDS]; | ||
struct BardSound sounds[MAX_BARD_SOUNDS_PER_WORD]; | ||
const struct BardSoundTemplate *soundTemplates; | ||
}; | ||
|
||
extern const u16 gNumBardWords_Species; | ||
extern const u16 gNumBardWords_Moves; | ||
const struct BardSound *GetWordSounds(u16 word); | ||
void GetWordPhonemes(struct BardSong *song, u16 word); | ||
|
||
const struct BardSoundTemplate *GetWordSoundTemplates(u16 easyChatWord); | ||
void CalcWordSounds(struct BardSong *song, u16 pitchTableIndex); | ||
|
||
#endif //GUARD_BARD_MUSIC_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#ifndef GUARD_ROTATING_GATE_H | ||
#define GUARD_ROTATING_GATE_H | ||
|
||
void RotatingGatePuzzleCameraUpdate(s16, s16); | ||
void RotatingGatePuzzleCameraUpdate(s16 deltaX, s16 deltaY); | ||
void RotatingGate_InitPuzzleAndGraphics(void); | ||
u32 CheckForRotatingGatePuzzleCollision(u8, s16, s16); | ||
bool32 CheckForRotatingGatePuzzleCollisionWithoutAnimation(u8, s16, s16); | ||
bool32 CheckForRotatingGatePuzzleCollision(u8 direction, s16 x, s16 y); | ||
bool32 CheckForRotatingGatePuzzleCollisionWithoutAnimation(u8 direction, s16 x, s16 y); | ||
|
||
#endif // GUARD_ROTATING_GATE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.