Skip to content
This repository was archived by the owner on Apr 19, 2022. It is now read-only.

Commit 85266c9

Browse files
authored
Merge pull request #335 from ModusCreateOrg/334
#334
2 parents 77fab10 + 5df3417 commit 85266c9

23 files changed

Lines changed: 590 additions & 3088 deletions

Evade2/Game.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ UBYTE Game::kills;
77
const BYTE alert_top = 5;
88

99
const BYTE getStageSong() {
10-
if (Game::wave % 4 == 0) {
11-
return INTRO_SONG;
10+
if (Game::wave % 5 == 0) {
11+
return STAGE_5_SONG;
12+
}
13+
else if (Game::wave % 4 == 0) {
14+
return STAGE_4_SONG;
1215
}
1316
else if (Game::wave % 3 == 0) {
1417
return STAGE_3_SONG;

Evade2/Sound.cpp

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,15 @@ static Arduboy2Audio audio;
99

1010
// Todo change to <ATMLib.h> once we publish
1111
#include "sound/SFX.h"
12-
#include "sound/evade2_00_intro.h"
13-
// #include "sound/evade2_01_stage_1.h"
12+
#include "sound/evade2_00_intro_alt_smaller.h"
1413
#include "sound/evade2_01_stage_1_alt_smaller.h"
1514
#include "sound/evade2_02_stage_1_boss.h"
1615
#include "sound/evade2_03_stage_2_alt_smaller.h"
1716
#include "sound/evade2_04_stage_2_boss.h"
18-
1917
#include "sound/evade2_05_stage_3.h"
2018
#include "sound/evade2_06_stage_3_boss.h"
21-
// #include "sound/evade2_07_stage_4.h"
22-
// #include "sound/evade2_08_stage_4_boss_new.h"
19+
#include "sound/evade2_07_stage_4.h"
20+
#include "sound/evade2_08_stage_5.h"
2321
#include "sound/evade2_10_game_over.h"
2422
#include "sound/evade2_11_get_ready.h"
2523
#include "sound/evade2_12_next_wave.h"
@@ -69,16 +67,19 @@ void Sound::stfu() {
6967

7068
void Sound::play_score(BYTE id) {
7169
static const PROGMEM UBYTE *const songs[] = {
72-
(UBYTE *)&evade2_00_intro, // 0 INTRO_SONG
70+
// (UBYTE *)&evade2_00_intro, // 0 INTRO_SONG
71+
(UBYTE *)&evade2_00_intro_alt_smaller, // 0 INTRO_SONG
7372
(UBYTE *)&evade2_01_stage_1_alt_smaller, // 1 STAGE_1_SONG
7473
(UBYTE *)&evade2_02_stage_1_boss, // 2 STAGE_1_BOSS_SONG
7574
(UBYTE *)&evade2_03_stage_2_alt_smaller, // 3 STAGE_2_SONG
7675
(UBYTE *)&evade2_04_stage_2_boss, // 4 STAGE_2_BOSS_SONG
7776
(UBYTE *)&evade2_05_stage_3, // 5 STAGE_3_SONG
7877
(UBYTE *)&evade2_06_stage_3_boss, // 6 STAGE_3_BOSS_SONG
79-
(UBYTE *)&evade2_10_game_over, // 7 GAME_OVER_SONG
80-
(UBYTE *)&evade2_11_get_ready, // 8 GET_READY_SONG
81-
(UBYTE *)&evade2_12_next_wave, // 9 NEXT_WAVE_SONG
78+
(UBYTE *)&evade2_07_stage_4, // 7 STAGE_4_SONG
79+
(UBYTE *)&evade2_08_stage_5, // 7 STAGE_4_SONG
80+
(UBYTE *)&evade2_10_game_over, // 8 GAME_OVER_SONG
81+
(UBYTE *)&evade2_11_get_ready, // 9 GET_READY_SONG
82+
(UBYTE *)&evade2_12_next_wave, // 10 NEXT_WAVE_SONG
8283
};
8384

8485
if (current_song == id) {

Evade2/Sound.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ const BYTE STAGE_2_SONG = 3;
1717
const BYTE STAGE_2_BOSS_SONG = 4;
1818
const BYTE STAGE_3_SONG = 5;
1919
const BYTE STAGE_3_BOSS_SONG = 6;
20-
const BYTE GAME_OVER_SONG = 7;
21-
const BYTE GET_READY_SONG = 8;
22-
const BYTE NEXT_WAVE_SONG = 9;
20+
const BYTE STAGE_4_SONG = 7;
21+
const BYTE STAGE_5_SONG = 8;
22+
const BYTE GAME_OVER_SONG = 9;
23+
const BYTE GET_READY_SONG = 10;
24+
const BYTE NEXT_WAVE_SONG = 11;
2325

2426
class Sound {
2527
public:

0 commit comments

Comments
 (0)