aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameplay.cpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2015-12-03 07:46:23 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2015-12-03 07:46:23 -0500
commitbf91141782766f3648b62c6d96528fddb9ae7447 (patch)
treec6c9322ec7c4f111f05c7f639ab1d33bed9de40f /src/gameplay.cpp
parentdc24164926a7988e018d32fff1977d2b40c89057 (diff)
parent6b44ecd9da08087f4a44dd3daef211e763eb1c61 (diff)
Added holding vs press key action
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r--src/gameplay.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp
index 6a2036c..c9c2b1e 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.