diff --git a/TrustFall/TrustFall/TrustFall.vcxproj b/TrustFall/TrustFall/TrustFall.vcxproj
index 86edf0c..d714a6a 100644
--- a/TrustFall/TrustFall/TrustFall.vcxproj
+++ b/TrustFall/TrustFall/TrustFall.vcxproj
@@ -22,32 +22,32 @@
15.0
{C6900ECF-254F-4751-A968-DDA699CCD5A6}
TrustFall
- 10.0.17134.0
+ 10.0
Application
true
- v141
+ v142
MultiByte
Application
false
- v141
+ v142
true
MultiByte
Application
true
- v141
+ v142
MultiByte
Application
false
- v141
+ v142
true
MultiByte
@@ -144,9 +144,6 @@
true
-
-
-
@@ -166,16 +163,19 @@
+
+
+
-
-
+
+
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
-
-
+
+
\ No newline at end of file
diff --git a/TrustFall/TrustFall/TrustFall.vcxproj.filters b/TrustFall/TrustFall/TrustFall.vcxproj.filters
index 0f73592..7c73b60 100644
--- a/TrustFall/TrustFall/TrustFall.vcxproj.filters
+++ b/TrustFall/TrustFall/TrustFall.vcxproj.filters
@@ -32,9 +32,6 @@
{b26b82a2-f4cd-444a-923f-82aad7c96345}
-
-
-
Source Files
@@ -84,4 +81,7 @@
Header Files\Screens
+
+
+
\ No newline at end of file
diff --git a/TrustFall/TrustFall/customtheme.wav b/TrustFall/TrustFall/customtheme.wav
new file mode 100644
index 0000000..32a1e3b
Binary files /dev/null and b/TrustFall/TrustFall/customtheme.wav differ
diff --git a/TrustFall/TrustFall/game.cpp b/TrustFall/TrustFall/game.cpp
index 743e5cc..fe25113 100644
--- a/TrustFall/TrustFall/game.cpp
+++ b/TrustFall/TrustFall/game.cpp
@@ -33,13 +33,16 @@ void Game::init() {
sprites.insert(pair("MusicOff", al_load_bitmap("music_off.bmp")));
al_reserve_samples(4);
- samples.insert(pair("Theme", al_load_sample("rasputin.wav")));
samples.insert(pair("Move", al_load_sample("move.wav")));
samples.insert(pair("Catch", al_load_sample("catch.wav")));
samples.insert(pair("Fall", al_load_sample("fall.wav")));
samples.insert(pair("Place", al_load_sample("place.wav")));
samples.insert(pair("LevelUp", al_load_sample("level.wav")));
+ themes.insert(pair("Rasputin", al_load_sample("rasputin.wav")));
+ themes.insert(pair("Guile", al_load_sample("guile.wav")));
+ themes.insert(pair("Mine", al_load_sample("customtheme.wav")));
+
font = al_create_builtin_font();
}
@@ -50,7 +53,7 @@ void Game::reset() {
//Run the game state machine
void Game::run() {
//Load screens
- GameScreen game_screen(sprites, samples);
+ GameScreen game_screen(sprites, samples, themes);
StartScreen start_screen(sprites);
ResultScreen result_screen(sprites, 0, 0, Easy);
int difficulty = 1; //Difficulty to run
@@ -112,4 +115,8 @@ void Game::run() {
for (it2 = samples.begin(); it2 != samples.end(); it2++) {
al_destroy_sample(it2->second);
}
+ map::iterator it3;
+ for (it3 = themes.begin(); it3 != themes.end(); it3++) {
+ al_destroy_sample(it3->second);
+ }
}
\ No newline at end of file
diff --git a/TrustFall/TrustFall/game.h b/TrustFall/TrustFall/game.h
index 1354ce1..c97ddf7 100644
--- a/TrustFall/TrustFall/game.h
+++ b/TrustFall/TrustFall/game.h
@@ -4,33 +4,34 @@
#include
#include
#include
-#include
-
-#include
-#include
-#include