aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameplay.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-12-18 08:45:29 -0500
committerClyne Sullivan <tullivan99@gmail.com>2015-12-18 08:45:29 -0500
commit0b9561febb7677de8792ba0feb056139ba7c94ea (patch)
tree0dc30d1b4abb4b90080bfe0060a4f5d3fddc751c /src/gameplay.cpp
parent1b2510a427cea42e6381d60f434b5fdec2b181b0 (diff)
pages
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r--src/gameplay.cpp31
1 files changed, 22 insertions, 9 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp
index ba2c8d9..1670929 100644
--- a/src/gameplay.cpp
+++ b/src/gameplay.cpp
@@ -51,14 +51,27 @@ void worldSpawnHill1_hillBlock(Mob *callee){
static Arena *a;
void worldSpawnHill2_infoSprint(Mob *callee){
- callee->alive = false;
- a = new Arena(currentWorld,player);
- a->setBackground(BG_FOREST);
- a->setBGM("assets/music/embark.wav");
- ui::toggleWhiteFast();
- ui::waitForCover();
- currentWorld = a;
- ui::toggleWhiteFast();
+
+ ui::dialogBox(player->name,":Nah:Sure",false,"This page would like to take you somewhere.");
+ ui::waitForDialog();
+ switch(ui::dialogOptChosen){
+ case 1:
+ ui::dialogBox(player->name,NULL,true,"Cool.");
+ callee->alive = false;
+ a = new Arena(currentWorld,player);
+ a->setBackground(BG_FOREST);
+ a->setBGM("assets/music/embark.wav");
+ ui::toggleWhiteFast();
+ ui::waitForCover();
+ currentWorld = a;
+ ui::toggleWhiteFast();
+ break;
+ case 2:
+ default:
+ ui::dialogBox(player->name,NULL,false,"Okay then.");
+ break;
+ }
+
//ui::dialogBox("B-) ",NULL,true,"Press \'Shift\' to run!");
}
@@ -113,7 +126,7 @@ void initEverything(void){
worldSpawnHill2->generate(700);
worldSpawnHill2->setBackground(BG_FOREST);
worldSpawnHill2->setBGM("assets/music/ozone.wav");
- worldSpawnHill2->addMob(MS_TRIGGER,-400,0,worldSpawnHill2_infoSprint);
+ worldSpawnHill2->addMob(MS_PAGE,-400,0,worldSpawnHill2_infoSprint);
worldSpawnHill3 = new World();
worldSpawnHill3->generateFunc(1000,gen_worldSpawnHill3);