aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameplay.cpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-04-24 22:50:44 -0400
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-04-24 22:50:44 -0400
commit78af1d0420dfccbd27501e383553e58248229a37 (patch)
treef8b7f7c79f034b2c3da5ef29c26330bc9c4c65e1 /src/gameplay.cpp
parent13236a26d3c1f4b09e105af42872ab4ad2753208 (diff)
parent2473bc452959f1c84b03c4b9202d601b3325143d (diff)
Merge branch 'master' of https://github.com/tcsullivan/gamedev
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r--src/gameplay.cpp18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp
index 603ede7..d5969ac 100644
--- a/src/gameplay.cpp
+++ b/src/gameplay.cpp
@@ -22,10 +22,6 @@ std::vector<XMLElement *> dopt;
void destroyEverything(void);
-inline void segFault() {
- (*((int *)NULL))++;
-}
-
int commonAIFunc(NPC *speaker)
{
XMLDocument xml;
@@ -249,18 +245,6 @@ void initEverything(void) {
}
}
- pauseMenu.items.push_back(ui::menu::createParentButton({-256/2,0},{256,75},{0.0f,0.0f,0.0f}, "Resume"));
- pauseMenu.items.push_back(ui::menu::createChildButton({-256/2,-100},{256,75},{0.0f,0.0f,0.0f}, "Options"));
- pauseMenu.items.push_back(ui::menu::createButton({-256/2,-200},{256,75},{0.0f,0.0f,0.0f}, "Save and Quit", ui::quitGame));
- pauseMenu.items.push_back(ui::menu::createButton({-256/2,-300},{256,75},{0.0f,0.0f,0.0f}, "Segfault", segFault));
- pauseMenu.child = &optionsMenu;
-
-
- optionsMenu.items.push_back(ui::menu::createSlider({0-(float)SCREEN_WIDTH/4,0-(512/2)}, {50,512}, {0.0f, 0.0f, 0.0f}, 0, 100, "Master", &VOLUME_MASTER));
- optionsMenu.items.push_back(ui::menu::createSlider({-200,100}, {512,50}, {0.0f, 0.0f, 0.0f}, 0, 100, "Music", &VOLUME_MUSIC));
- optionsMenu.items.push_back(ui::menu::createSlider({-200,000}, {512,50}, {0.0f, 0.0f, 0.0f}, 0, 100, "SFX", &VOLUME_SFX));
- optionsMenu.parent = &pauseMenu;
-
/*
* Spawn the player and begin the game.
*/
@@ -268,6 +252,8 @@ void initEverything(void) {
player = new Player();
player->sspawn(0,100);
+ ui::menu::init();
+
currentWorld->bgmPlay(NULL);
atexit(destroyEverything);
}