diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-12-02 08:48:39 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-12-02 08:48:39 -0500 |
commit | b447a664066e98cc827626526179b3a3db22fa30 (patch) | |
tree | 9947254b1256e87ad167986b5bac9cf5be49c7d6 /src/gameplay.cpp | |
parent | 1d995c34c871bdb48e35c083ef0d9027dc18d719 (diff) |
world bg improvements
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r-- | src/gameplay.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp index 64b3908..711fc1d 100644 --- a/src/gameplay.cpp +++ b/src/gameplay.cpp @@ -34,7 +34,7 @@ int giveTestQuest(NPC *speaker){ static Arena *a; -void CUTSCENEEE(void){ +void CUTSCENEEE(Mob *callee){ player->vel.x = 0; ui::dialogBox(player->name,":K.","No way I\'m gettin\' up this hill."); @@ -48,6 +48,15 @@ void CUTSCENEEE(void){ player->loc.x += HLINE * 5;*/ } +void CUTSCENEEE2(Mob *callee){ + player->vel.x = 0; + ui::dialogBox(player->name,":Yeah.", + "What the fuck is this dead end supposed \ + to mean, and why this place smells like soap."); + ui::waitForDialog(); + callee->alive = false; +} + float playerSpawnHillFunc(float x){ return (float)(pow(2,(-x+200)/5) + 80); } @@ -99,7 +108,9 @@ void initEverything(void){ */ iw=new IndoorWorld(); + iw->setBackground(BG_WOODHOUSE); iw->generate(200); + iw->addMob(MS_TRIGGER,0,0,CUTSCENEEE2); /* * Spawn some entities. |