Skip to content

Commit

Permalink
Merge branch 'staging' into dokomi2023
Browse files Browse the repository at this point in the history
  • Loading branch information
Akaricchi committed Jun 26, 2023
2 parents 14d49f8 + 6f5f419 commit 783697f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 0 deletions.
Binary file added resources/00-taisei.pkgdir/bgm/intro.opus
Binary file not shown.
1 change: 1 addition & 0 deletions src/cutscenes/cutscene.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ void cutscene_enter(CallChain next, CutsceneID id) {
CutsceneState *st = cutscene_state_new(cs->phases);
st->cc = next;
st->bg_state.transition_rate = 1/80.0f;
progress_unlock_bgm(cs->bgm);
audio_bgm_play(res_bgm(cs->bgm), true, 0, 1);
eventloop_enter(st, cutscene_logic_frame, cutscene_render_frame, cutscene_end_loop, FPS);
}
Expand Down
1 change: 1 addition & 0 deletions src/menu/musicroom.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ MenuData *create_musicroom_menu(void) {
m->context = ctx;

for(int preload = 1; preload >= 0; --preload) {
add_bgm(m, "intro", preload);
add_bgm(m, "menu", preload);
add_bgm(m, "stage1", preload);
add_bgm(m, "stage1boss", preload);
Expand Down
1 change: 1 addition & 0 deletions src/progress.c
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ static ProgressBGMID progress_bgm_id(const char *bgm) {
[PBGM_BONUS0] = "bonus0",
[PBGM_BONUS1] = "scuttle",
[PBGM_GAMEOVER] = "gameover",
[PBGM_INTRO] = "intro",
};

for(int i = 0; i < ARRAY_SIZE(map); ++i) {
Expand Down
1 change: 1 addition & 0 deletions src/progress.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ typedef enum ProgressBGMID {
PBGM_BONUS0, // old Iku theme
PBGM_BONUS1, // Scuttle theme
PBGM_GAMEOVER,
PBGM_INTRO,
} ProgressBGMID;

struct UnknownCmd;
Expand Down

0 comments on commit 783697f

Please sign in to comment.