-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMaze_Game_3_1_0.cpp
1292 lines (1285 loc) · 73 KB
/
Maze_Game_3_1_0.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#include <iostream>
#include <string>
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include <stddef.h>
#include <limits>
#include <unistd.h> // Unix Standard
using namespace std; // This is a comment.
/*
Maze Game Version 3.1.0
*/
// the explorer
string firstName;
string lastName;
// character can become irritated
int frustration = 0;
// character can become angry
int rage = 0;
// character has finite health, finite strength, light armor, slightly less health than nominal 200
int health = 196;
int attack = 7;
int def = 3;
// character can become tired and slow, already less than nominal 1024
int stamina = 888;
// finite memory
int remember = 256;
string thought;
// state variables
int Closet_State = 0;
// function declarations
void Hall_1();
void Closet_1();
void PipeChase();
void Room_1();
void Room_2();
void Room_3();
void Room_4();
void Space_Warp();
void Room_5();
void Room_6();
void Room_7();
void Room_8();
void beatupcloset();
void Elevator();
void Basement();
void KaiWinn_Warp();
void mech_chase();
void innerspace();
void Lobby() {
cout << "The lobby has black mold and brown stains. It is mostly gutted except for a desk and 4 chairs in the south east corner near you. \n";
cout << "A large ceiling fan hangs from the ceiling, It does not run. The room is lit with daylight LED filament bulbs. Only 2 work. \n";
cout << "The room reeks of mold and mildew. There are a set of double fire doors to your north. \n";
cout << "There are false wood doors to your east and west. There are windows to the south. They are disgusting and some panes are missing. \n";
cout << "What do you do????? Type 1 to go north, 2 to go south, 3 to go east, 4 to go west\n";
int choose;
cin >> choose;
// citation: https://stackoverflow.com/questions/5864540/infinite-loop-with-cin-when-typing-string-while-a-number-is-expected
// citation: https://stackoverflow.com/questions/71296302/numeric-limits-is-not-a-member-of-std
if (cin.fail())
{
cout << "ERROR 01: Invalid state detected.";
// get rid of failure state
cin.clear();
// From Eric's answer (thanks Eric)
// discard 'bad' character(s)
cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
}
switch (choose) {
case 1:
Hall_1();
break;
case 2:
cout << "The doors are locked.\n";
Lobby();
break;
case 3:
Closet_1();
break;
case 4:
PipeChase();
break;
default:
cout << "Type 1, 2, 3, or 4 \n";
Lobby();
}
}
void Closet_1(){
cout << "You are looking in a reach in storage closet. It is gutted \n" ;
cout << "There is a trapdoor in the floor of the closet. \n";
cout << "input 1 to turn around or 2 to enter the trapdoor.\n";
int choose3;
cin >> choose3;
if (choose3 == 1) {
Lobby();
}
else if (choose3 == 2) {
cout << "The door reveals a ladder that goes down a very deep shaft. \n";
cout << "You ease down the ladder, noticing that the safety cage continues almost to the floor, leaving barely enough room to exit.\n";
mech_chase();
}
else {
cout << "Type 1 or 2 \n";
Closet_1();
}
}
void mech_chase(){
cout << "You are in a cramped space with pipes running on the walls and ceiling. \n" ;
cout << "You can climb the ladder to head back to the lobby \n";
cout << "The ladder extends what seems to be 50 feet up to the trapdoor.\n";
cout << "The pipe chase area forms a crude hall. You can walk to right or left, both turn to north after a short distance. \n";
cout << "There is an iron door near the ladder. It is to your south and has a porthole window in it. It is dark behind the door. \n";
cout << "You can climb the ladder to head back to the lobby \n";
cout << "input 1 to climb back to the lobby, 2 to enter the iron door, 3 to go right, and 4 to go left.\n";
int pipe_choose;
cin >> pipe_choose;
if (pipe_choose == 1) {
cout << "You ease up the ladder and carefully climb back into the closet, then walk into the lobby, closing each door as you return.\n" ;
Lobby();
}
else if (pipe_choose == 2) {
cout << "The door opens easily and swings inward rapidly, banging against the interior wall.\n";
cout << "The room is flooded with harsh, high power LED spotlights. A bell rings. The room is a massive concrete shaft. A huge three blade propeller spins slowly below a grate. \n";
cout << "The shaft drops to what seems like infinity. Above you, the shaft splits into many square ducts that run off on all sides except the ones the building is on.\n";
cout << "A stiff, cold breeze flows through the room. You shiver and slam the door shut, walking back into the mechanical pipe chase. \n";
mech_chase();
}
else if (pipe_choose == 3) {
cout << "You walk around a corner, and down the hall. There are huge centipedes in the hall. You avoid them. \n";
cout << "The mechanical chase continues and continues, both sides are cinder block, and pipes and conduit run on the ceiling.\n";
innerspace();
}
else if (pipe_choose == 4) {
cout << "You walk around the corner and then up some spiral staris. \n";
cout << "You see a door and open in. It shuts behind you, you notice the lack of a handle on the other side.\n";
cout << "This room has some shelves in it as well as a door on the far side. The sound of dissonant violins can be heard through the door. \n";
cout << "The lights are flickering fluorescent bulbs. The room smells of general decay and dirt. There is a desk on the far side. \n";
cout << "There is nothing on or in it... \n";
cout << "You think: What if there is an concert hall on the other side of the door? I could escape! You then go through the door. \n\n\n";
cout << "The hall is cinder block and dimly lit with old incandescent lamps. The violins are now deafening.\n";
cout << "The noises get louder \n";
cout << "The noises get softer. \n";
cout << "The noises get louder \n";
cout << "The noises get softer. \n";
cout << "The noises get louder \n";
cout << "The noises get softer. \n";
cout << "The noises get louder \n";
cout << "The noises get softer. \n";
cout << "The noises get louder \n";
cout << "The noises get softer. \n";
cout << "The sound abruptly stops. You Whuf! \n";
cout << "You run down the hall out of desperation. It goes on infinitely.... The walls stretch and everything begins to fade. \n";
cout << "There is a loud bang and a white flash. You briefly see your car and your gear........ Then everything goes pitch black and silent. \n";
cout << "There is a reverse cymbal! \n";
cout << "After a very bright blue flash: \n";
Basement();
}
else {
cout << "Type 1, 2, 3, or 4 \n";
Closet_1();
}
}
void PipeChase(){
cout << "You are looking into a pipe chase. There are pipes coming out of the floor and going into the ceiling and interior walls.\n ";
cout << "The floor is concrete, and a single fixture hangs overhead. \n";
if (Closet_State == 0) {
cout << "A single ambiguous frosted A19 bulb hangs in the socket. It could be LED or incandescent. \n";
}
else {
cout << "The socket has the remains of a broken halogen lamp inside it. \n";
}
cout << "What do you do? press 1 to leave or 2 to turn on the bulb. \n";
int bulbexplode;
cin >> bulbexplode;
if (bulbexplode == 1) {
Lobby();
}
else if (bulbexplode == 2) {
if (Closet_State == 0) {
cout << "The lightbulb explodes. You run into the lobby and are slightly burned. There is shattered glass everywhere. \n";
health = health - 3;
cout << "Your health is " << health << endl;
if (health < 1) {
cout << "Game Over! \n\n";
sleep(3);
Space_Warp();
}
cout << "You head north into the hall. \n";
Closet_State = 1;
Hall_1();
}
else {
cout << "The switch clicks noisily... There is no lightbulb. There is shattered glass on the floor. \n";
cout << "You head north into the hall. \n";
Hall_1();
}
}
else {
cout << "Type 1 or 2\n";
PipeChase();
}}
void Hall_1 () {
cout << "The hall has old, worn out carpet. The LED lights are soft white. All lights work. You hear an air handler running. There are doors on each side.\n";
cout << "They are numbered 101 to 110, then 301. \n";
cout << "The fire door at the far end is jammed. There is the sound of dogs barking from behind it when it is hit or jiggled. You decide it is off limits. \n";
cout << "type in the room number, or 1 to return to the lobby. There is a warning sign on the wall. \n";
int choose2;
cin >> choose2;
switch (choose2) {
case 101:
Room_1();
break;
case 102:
Room_2();
break;
case 103:
Room_3();
break;
case 104:
Room_4();
break;
case 105:
Room_5();
break;
case 106:
Room_6();
break;
case 107:
Room_7();
break;
case 108:
Room_8();
break;
case 109:
cout << "This was an old suite. It is like a time capsule. It looks unused since 1999, and there is a May 1999 NASA Calendar on the wall. \n";
cout << "The closet is open and there are very dusty tuxedos hanging in the closet. Only one bulb works. There are model sports cars on the dresser \n";
cout << "The floor is covered in baseball cards. Some teams are very different. There is a full set of Constantinople Wildcats cards, as well as a \n";
cout << "full set of San Juan Eagles cards. \n";
cout << "You leave the room, it is not a way out. \n";
Hall_1();
break;
case 110:
cout << "This room was another suite. The closet door is on the ground in front of the closet. The closet is rotting on the inside and has peeling paint. \n";
cout << "There is a few books on the wall. The name in one is Nora Helmer. The room is disgusting despite containing no other personal belongings except a desk and a picture. \n";
cout << "There is a picture in a frame on the desk of someone in a Victorian Era dress standing with someone in a wedding dress. They both have short, dark hair and athletic builds. \n";
cout << "They are at Yellowstone National Park at an overlook. \n";
cout << "There is a map on the table, it is addressed to Nora, and comments that her old heirloom items are in the basement in B02. It is signed Donna. \n";
cout << "It also mentions a portal in the basement and says that it leads to an alternate timeline. She commented that that timeline had a pandemic of COVID-19. \n";
cout << "It further comments that Hero had already dissovled the lease on room 110 and that no one owned it anymore. \n";
cout << "You realize that this is your way out! \n";
cout << "The map shows the location of the elevator. You head to it. \n";
Elevator();
break;
case 301:
cout << "This is a large, almost empty room. A violin and bow lay in one corner, and there are piles of desks and chairs in the other corner. \n";
cout << "The room is covered in brown and yellow stains on the floor, walls, and ceiling. The floor looks like someone threw up on it. \n";
cout << "The fixtures are from the 1950s and have harsh 6700K fluorescent tubes in them. \n";
cout << "There is a door on the wall with the fire door, it is open. A German Shepherd dog comes through the door. It snarls and growls. \n";
cout << "You leave and slam the door. The dog bangs against it and roars loudly, then everything is silent. \n";
Hall_1();
break;
case 1:
Lobby();
break;
default:
cout << "Type 1, 101 - 110, or 301.\n";
Hall_1();
}
}
void Room_1(){
cout << "You are in a square room. There is a KTNC Railroad 2015 calendar on the wall. Only 5 lights work. They are Daylight LEDs. There is a closet in this room.\n";
cout << "There is a music disk on the only desk in the room. It is titled Wait Walk, is by FanFan61618, and has a traffic light on the front. \n";
cout << "There is a computer on the desk. It shows a blue screen that says Error format disk C:/. \n";
cout << "The filter in this room is plugged, and the room smells like dust and old books. \n";
cout << "Press 1 to leave, 2 to look in the closet \n";
int nagnag;
cin >> nagnag;
if (nagnag == 1) {
Hall_1();
}
else if (nagnag == 2) {
cout << "There is a desk fan on the closet floor. There is a rain jacket and a Victorian Era dress and coat in the closet.\n";
cout << "There is also a spider in the closet. It has black and yellow stripes on it. You get scared and slam the door.\n";
cout << "You run into the hall out of fear. \n";
Hall_1();
}
else {
cout << "Type 1 or 2\n";
Room_1();
}
}
void beatupcloset() {
cout << "The closet interior has no shelves inside it. \n";
cout << "There is a dsiplay in the closet. \n";
cout << "The display shows an error message, then becomes corrupt, filling with this text: \n";
srand(time(NULL));
int garbageText;
for (int brokendisplay = 1; brokendisplay <= 25; brokendisplay++) {
garbageText = rand() * 3 - 45;
cout << garbageText;
}
cout << "The screen goes dark, you return to the hall \n";
Hall_1();
}
void Room_2(){
cout << "This room is in very poor condition. There are multi colored stains on the walls and dirt on the floor. Only one light works. \n";
cout << "There is a what looks like a closet. There is no furniture or items in the room. The window has been smashed.\n";
cout << "There is shattered glass on the floor near the window. \n";
cout << "The room smells of mold, dirt, and rotten wood. Input 1 to enter the closet, anything else to leave.\n";
int closet102;
cin >> closet102;
if (closet102 == 1){
beatupcloset();
}
else {
cout << "You decide that this room is not important and return to the hall. \n";
Hall_1();
}
}
void Room_3(){
cout << "The lights are off. There is a push button near the door. Press 1 to push the button or 2 to leave the room. \n";
int pushbutton;
int Door103;
cin >> pushbutton;
if (pushbutton == 1) {
cout << "The lights turn on. They are LED tubes on the ceiling. You notice a sensor on the door, and you leave the door open to avoid turning the lights off \n";
cout << "There are tables and chairs in this room. There are no brown stains. \n";
cout << "There is a door on the far wall near a dirty window. Press 1 to open the door or any integer other than 1 to leave.\n";
cin >> Door103;
if (Door103 == 1){
cout << "The door seems stuck. You kick it and it opens. It goes to room 102. You walk through the door, and then shut it. It will not open again.\n";
cout << "The door on room 103 closes on its own. The lights in room 103 go out. \n";
Room_2();
}
else {
cout << "You leave the room. The lights turn off as the door closes. \n";
Hall_1();
}
}
else if (pushbutton == 2) {
Hall_1();
}
else {
cout << "Type 1 or 2\n";
Room_3();
}
}
void Room_4(){
cout << "This room has door activated lights. They are old incandescent bulbs. You leave the door open. The TV in the room turns on. \n";
cout << "It starts to play a tape of scenes from the KTNC, North Lebanon and Pikeville RR, and the Hocking Valley RR. There is a calendar on the wall. It is on March 2016.\n";
cout << "This is a North Lebanon and Pikeville Railroad Calendar (A KTNC Affiliate). This used to be a lodge that was used by railroad executives. \n";
cout << "You are in the Western Pacific Universe!!!\n";
cout << "The room smells strongly of mothballs and cleaner. \n";
cout << "There is a closet in this room. It is on the same side of the hall as room 101 and across from room 102 and 103. There is a package on the desk. It is on its side.\n";
cout << "It is addressed to Maria Johanna, 145 Trestle Street, Russellville, AL.... The zip code is illegible. The box is moderately light, and you lift it and reposition it easily. \n";
cout << "Press 1 to open the box, 2 to look in the closet, or 3 to leave \n";
int Choose104;
int randnum1;
srand(time(NULL)); // The random sequence is different each time
randnum1 = rand() %20 +1; // generates a random number
cin >> Choose104;
if (Choose104 == 1){
cout << "There are DVDs in the box. It is video of every KTNC owned railroad! East, west, and Appalachian region footage from 1991 to 2016 is included. \n";
cout << "You repack the disks. \n";
cout << "You leave the room as to not go through someones personal belongings. The lights in the room go out\n";
Hall_1();
}
else if (Choose104 == 2){
cout << "The closet has business suits in it. There is a set of US Army Dress Greens hanging in the closet as well. There is a box in it that says WP 1995-1998 Slides on it \n";
cout << "It reeks of mothballs, and the smell almost knocks you out. \n";
if (randnum1 == 1){
cout << "The door slams shut and the lights go out. The TV turns off. It is pitch black and silent... \n";
cout << "You light a flare to see and place it in the center of the room. There is a wierd noise. \n";
cout << "The room begins to reset!!!! \n"; // Creates a random warp event
Lobby();
}
else if (randnum1 == 2)
{
cout << "The door slams shut and the lights go out. The TV turns off. It is pitch black and silent... \n";
cout << "You light a flare to see and place it in the center of the room. There is a wierd noise. \n";
cout << "The room begins to reset!!!! \n"; // Creates a random warp event
Room_8();
}
else if (randnum1 == 3)
{
cout << "The door slams shut and the lights go out. The TV turns off. It is pitch black and silent... \n";
cout << "You light a flare to see and place it in the center of the room. There is a wierd noise. \n";
cout << "There is a flash of light!!!! \n"; // Creates a random warp event
Room_2();
}
else if (randnum1 == 4)
{
cout << "The door slams shut and the lights go out. The TV turns off. It is pitch black and silent... \n";
cout << "You light a flare to see and place it in the center of the room. There is a wierd noise. \n";
cout << "Your flare goes dark. You grab it and run to the pipe chase. It looks unused. You put it in your backpack.\n"; // Creates a random warp event
PipeChase();
}
else if (randnum1 == 5)
{
cout << "The door slams shut and the lights go out. The TV turns off. It is pitch black and silent... \n";
cout << "You pull out a flare, but cannot light it. There is a wierd noise. \n";
cout << "The room begins to reset!!!! \n"; // Creates a random warp event
Room_3();
}
else if (randnum1 == 6)
{
cout << "The door slams shut and the lights go out. The TV turns off. It is pitch black and silent... \n";
cout << "You cannot find your flares. There is a wierd noise. \n";
cout << "The room begins to reset!!!! \n"; // Creates a random warp event
Room_7();
}
else if (randnum1 == 7)
{
cout << "You become dizzy from the smell.\n";
cout << "You sit on a chair in the room. Your vertigo does not stabilize. \n";
cout << "The room begins to reset!!!! \n"; // Creates a random warp event
Room_1();
}
else if (randnum1 == 8)
{
cout << "The TV makes a pop noise and the lights flash... \n";
cout << "You startle and run into the lobby and see a ladder in the closet. \n";
cout << "You walk into the closet and descend the ladder. \n"; // Creates a random warp event
mech_chase();
}
else if (randnum1 == 9)
{
cout << "The door slams shut and the lights go out. The TV turns off. It is pitch black and silent... \n";
cout << "You light a flare to see and place it in the center of the room. There is a wierd noise. \n";
cout << "The room begins to reset!!!! \n"; // Creates a random warp event
Room_6();
}
else if (randnum1 == 10)
{
cout << "You gag on the smell, then run to an unmarked door. \n"; // Creates a random warp event
Elevator();
}
else if (randnum1 == 11)
{
cout << "You gag on the smell, then escape to the hall. \n"; // Creates a random warp event
Hall_1();
}
else if (randnum1 == 12)
{
cout << "There is a loud ker-thunk noise and the power goes out. \n";
cout << "You feel and find the breaker panel. The breaker is tripped. \n";
cout << "You reset the breaker \n"; // Creates a random warp event
cout << "You leave \n"; // Creates a random warp event
Hall_1();
}
else if (randnum1 == 13)
{
cout << "You gag on the smell, then run to an unmarked door. \n"; // Creates a random warp event
Elevator();
}
else if (randnum1 == 14)
{
cout << "A wasp flies into the room. You leave and avoid the wasp. \n"; // Creates a random warp event
Hall_1();
}
else if (randnum1 == 15)
{
cout << "There are loud noises. They sound like fans. You wait for them to stop and then leave. \n"; // Creates a random warp event
Hall_1();
}
else if (randnum1 == 16)
{
cout << "You hear a rumble, like that of a distant freight train. It comes from under the building \n"; // Creates a random warp event
cout << "You find a ladder in the closet in the lobby, and take it down to a mechanical chase. The noise is much louder. \n";
cout << "You then walk down the chase, and the noise gets louder. You approach the source, seeing an infinite ladder down, you decide it is wise not to climb it. \n";
cout << "A deafening mechanical wahwahwah... sound is heard that slows down with each wah lasting a little longer than the last one, then the rumble stops. \n"; // Creates a random warp event
cout << "You walk around and walk the length of the mechanical chase. \n";
cout << "After looking at the spiral staircase on the other side of the building, you return back to the location with the infinite ladder. \n";
cout << "You notice centipedes coming out of the walls. \n"; // Creates a random warp event
innerspace();
}
else {
cout << "You become dizzy and pass out... \n"; // Creates a random warp event
Space_Warp();
}
}
else if(Choose104 == 3){
Hall_1();
}
else{
cout << "type 1, 2, or 3 \n";
Room_4();
}
}
void Room_5(){
cout << "The room has Daylight LEDs in it. There is kitchen equipment everywhere. The room is greasy and disgusting, and it smells of rotting eggs. \n";
cout << "There are food service windows linking to room 103. There is a gas stove in the room. There is also a closet. \n";
cout << "press 1 to look in the closet, 2 to operate the stove, and any other integer to leave. \n";
int Cook_Kitchen;
cin >> Cook_Kitchen;
if (Cook_Kitchen == 1){
cout << "The closet is full of spoiled food and flies. You slam the door and leave the room. \n";
Hall_1();
}
else if (Cook_Kitchen == 2){
cout << "The room was full of methane and oxygen. The stove explodes.\n";
cout << "You don't feel it.\n";
Space_Warp();
}
else {
Hall_1();
}
}
void innerspace(){
cout << "The mechanical chase continues to a small wide area that seems rather far back. A small extension is to your right. There are pipes running into the ground here.\n";
cout << "The centipedes do not come this far, and a sewer smell hangs in the air. The walls are disgusting... You notice a door in front of you, and a door to your left and a ladder in the extension that heads down a shaft.\n";
cout << "The shaft goes very far down... You cannot see the bottom.\n";
cout << "Compressors can be heard from inside the door in front of you.\n";
cout << "The noise seems like it would be loud, but is not.\n";
cout << "press 1 to go into the room with compressor noises, 2 to go in the door to your left, and 3 to explore the shaft.\n";
int spacechoose;
cin >> spacechoose;
if (spacechoose == 1){
cout << "The room has a refrigeration rack inside it. One compressor is toiling away and is very hot. All others are off.\n";
cout << "A 24 inch propeller fan spins noisily in one corner, exhausting the heat out of the room. Fresh air comes in via a grate over the door.\n";
cout << "You find nothing helpful here and return back to the last decision point\n";
innerspace();
}
else if (spacechoose == 2){
cout << "This door leads into the basement. You walk through it. The door shuts and is labeled mech chase on it.\n";
cout << "The handle turns one sixteenth turn in each direction and stops. The door is locked from the inside. You walk to the elevator door in the basement... \n\n\n";
Basement();
}
else if (spacechoose == 3){
cout << "The ladder continues only a short distance and your feet hit a grate. You notice that you are in a shuttle cart. THe cart speeds down the shaft and slows to a stop at the bottom.\n";
cout << "You cautoiusly walk down the only hall, which is lit by daylight LEDs. You see a metal boat door and a wooden door, at right angles to each other. The metal door handle turns and unlatches, but something bats it back into place each time it is opened.\n";
cout << "Press 1 to force the door, 2 to explore the wooden door, 3 to return to the top, 4 if you understand what is behind the door and want to take the risk, 5 if you desire to attempt to stop the system.";
int giantfans;
int jj = 0;
cin >> giantfans;
if (giantfans == 1) {
cout << "You shove the door open very hard with both hands, it gets to about 45 degrees revealing a dark space, immediately, a thick, vertical beam comes out of the darkness , the top appearing faster than the bottom, and bats the door closed. It slams with a bang noise.\n";
cout << "The window shatters on the door... \n";
cout << "You hear a loud whoosh noise every few seconds, and the columns appear in the field of view before walking away to your left, away from the wooden door. The room pressure drops slightly when each beam appears.\n";
cout << "You realize that the door cannot safely be opened. You open the wooden door and climb up a few stairs before pedaling a cart down the hall. You reach the end, where a control booth sits.\n";
cout << "You see a button that says tunnel light, and you hit it. The room floods with light. You see the biggest concrete tunnel you have ever seen. Only a thin glass barrier is between you and the tunnel. A 3000 foot wide three blade fan slowly rotates in the tunnel at a few RPM.\n";
cout << "You realize that this was what was batting the door shut... \n";
cout << "You gasp in horror, making an audible gasp noise and fill with white hot dread, then a school bell sounds, then you pedal the cart down the hall, feeling dizzy near the metal door due to low pressure, ";
cout << "you notice that the columns scan across the opening noticably faster than before, making a popping noise, you then dart to the shaft and use the eletctric cart to climb up, a low vibration becomes more and more pronounced...\n";
cout << "The popping noise becomes a deafening wop wop wop wop wop like a giant helicopter hovering under you, and everything shakes very hard. Dust pours off of the walls...\n";
cout << "Everything groans and begins to distort from the rapid pressure fluctuations and extreme sound pressure. \n";
cout << "THe tracks become a parallelogram as the cart nears the top, the fan noise is now a deafening buzzing throbbing roar, and your cart falls as huge rocks chase you down the shaft...\n";
cout << "The shaft begins to close... Everything resets... \n";
Space_Warp();
}
else if (giantfans == 2) {
cout << "You decide that the door cannot safely be opened. You open the wooden door and climb up a few stairs before pedaling a cart down the hall. You reach the end, where a control booth sits.\n";
cout << "You see a button that says tunnel light, and you hit it. The room floods with light. You see the biggest concrete tunnel you have ever seen. Only a thin glass barrier is between you and the tunnel. A 3000 foot wide three blade fan slowly rotates in the tunnel at a few RPM.\n";
cout << "You realize that this was what was batting the door shut... \n";
cout << "You gasp in horror, making an audible gasp noise and fill with white hot dread. You stare at the fan. It spins lazily and seems to do nothing else. You see a dial on the desk, but leave and head up the shaft.";
innerspace();
}
else if (giantfans == 3) {
cout << "You decide that the door cannot safely be opened. You open the wooden door and look at the dirty stairs and pedal cart...\n";
cout << "You watch the beam scanning across through the porthole...\n";
cout << "You look around the hall, walking up and down it... \n";
cout << "You give up and use the electric cart to ride uneventfully to the mechanical chase, the motor toils over rough track. \n";
int represult;
do {
represult = jj % 2;
if (represult == 1) {
cout << "The motor speed subtly increases.\n\n";
}
else {
cout << "The motor speed subtly decreases.\n\n";
}
jj = jj + 1;
}
while (jj < 10);
cout << "The motor slows to a stop, you climb the short ladder and are back to safety.";
innerspace();
}
else if (giantfans == 4) {
cout << "You run to the end of the hall with the cart and make a running dash, you shove the door open and dive through it and roll on the concrete.\n";
cout << "You roll at an ever increasing rate over the glassy smooth concrete surface. You become dizzy but keep rolling.\n";
cout << "You keep rolling as something metal brushes over your back. Your leg catches on it...\n";
cout << "Your leg is batted in an unnatural motion but oddly is not hurt, you feel a rush of wind, you roll down the concrete. Your roll rate slows.\n";
while (jj < 5) {
cout << "You continue to slow down... \n";
jj++;
}
cout << "You become disoriented and have severe vertigo once you stop rolling.. You stagger around the tunnel and it takes 20 minutes to be able to stand and walk properly, and then the lights flood the tunnel.\n";
cout << "You are in one of the biggest concrete tunnels you have ever seen. You see the 3000 foot three blade propeller fan from the back and see the motor clearly.\n";
cout << "The tunnel splits into four smaller round tunnels in the distance, and a stiff breeze blows in the tunnel. \n";
cout << "The fan suddenly speeds up and blows you away, you swerve to go through the top left tunnel, the tunnel curves and twists and turns.";
cout << " You notice a sharp bend in the tunnel, and a fan blows from the bottom, lofting you up the tunnel.\n";
cout << "You get stuck against a screen halfway up, a giant propeller spins on the other side. A net extends below you. The fans stop and you fall into the net.\n";
cout << "You then get drawn into a room.\n";
cout << "After three hours of exploring, you are lost. \n";
cout << "Everything almost resets \n";
KaiWinn_Warp();
}
else if (giantfans == 5) {
cout << "You decide that the door cannot safely be opened. You open the wooden door and climb up a few stairs before pedaling a cart down the hall. You reach the end, where a control booth sits.\n";
cout << "You see a button that says tunnel light, and you hit it. The room floods with light. You see the biggest concrete tunnel you have ever seen. Only a thin glass barrier is between you and the tunnel. A 3000 foot wide three blade fan slowly rotates in the tunnel at a few RPM.\n";
cout << "You realize that this was what was batting the door shut... \n";
cout << "You gasp in horror, making an audible gasp noise and fill with white hot dread. You stare at the fan. It spins lazily and seems to do nothing else. You stare at the controls, there is a button that says emergency stop, you press it.\n ";
cout << "A school bell rings. A computer voice barks indistinct speech. There is a loud noise like thunder, and the motor on the fan emits a huge cloud of smoke.\n";
cout << "The fan instantly stops, trying to defy physics, and the tunnel and control room seems to hop. The hub disconnects from the motor, and you watch in dread as the fan separates from the motor and falls into the floor, making you deaf...\n";
cout << "A huge cloud of dust fills the tunnel, then a stiff wind evacuates the dust, there are huge lightning bolts, you do not hear them. There is a giant crater in the tunnel. Suddenly... \n";
cout << "Everything resets itself \n";
Space_Warp();
}
else {
}
}
else {
cout << "You return to the mechanical chase area, avoiding centipedes.\n";
mech_chase();
}
}
void Room_6(){
cout << "The room has soft white LED filament bulbs. All bulbs work. This room used to be another suite. There is a bed frame in one corner and a table in the other. \n";
cout << "These are the only objects in the room. The walls are bare, but they have damage from adhesive pads where pictures used to be hung. \n";
cout << "The ceiling has brown stains, and the room smells very musty and dirty. There is a closet in the corner. The door is jammed. \n";
cout << "You leave the room because it does not seem important. \n";
Hall_1();
}
void Room_7(){
cout << "The room has exercise equipment in it. It looks like a multi purpose room. The room is lit with Daylight LEDs. There is a smaller room inside the room. \n";
cout << "It is labeled 107B. Suddenly there is the loud sound of equipment starting up coming from room 107B. The lights briefly dim. You cover your ears. \n";
cout << "There is a check in log by the door. It is blank, as though it was placed there but no one used the temporary gym. \n";
cout << "What do you do? Press 1 to look in 107B, 2 to use the exercise machines, or any other integer to leave. \n";
int Choose107;
cin >> Choose107;
if (Choose107 == 1){
cout << "The room leads to a fan pit. A gigantic propeller spins just below a grate in the floor. The ceiling is open.\n";
cout << "The fan lifts you out of the building, and you land in a lake outside the building. You swim to the shore. You are surprisingly not hurt. \n";
if (stamina > 0) {
cout << "You walk around the building, there is no exit. The propeller turns off. You then go to the lobby.\n";
stamina = stamina - 30;
Lobby();
}
else {
cout << "You slowly limp around the building, there is no exit. The propeller turns off. You then go to the lobby.\n";
sleep(22);
Lobby();
}
}
else if (Choose107 == 2){
if (stamina > 0) {
cout << "The exercise machines work, and you get a workout.\n";
sleep(3);
stamina = stamina - 256;
cout << "Your stamina is now " << stamina << endl;
cout << "You leave the room. The equipment turns off.\n";
Hall_1();
}
else {
cout << "You are too tired to work out.....\n\n\n";
sleep(8);
cout << "You slowly exit \n";
Hall_1();
}
}
else {
cout << "You leave the room. The equipment turns off.\n";
Hall_1();
}
}
void Room_8(){
cout << "This room also uses soft white filament LED bulbs. It used to be another suite. This room has a dresser with no drawers, a desk with an old, white computer on it, and a bed with a mattress but no sheets. \n";
cout << "There is a closet, and there are mold stains on the floor. The ceiling is leaking due to a broken water pipe. This room has a microwave. The door is sheared off, and the inside is ruined. \n";
cout << "There is a map. You can look at it. The name Donna is on the back of the map. \n";
cout << "There is a picture on the desk. It is of an SLS Rocket launching with a large payload faring. The caption reads Curiosity II Rover Launch, October 2015. \n";
cout << "What do you do? press 1 to look in the closet, press 2 to look at the map, or press any other integer to leave. \n";
int Choose108;
cin >> Choose108;
if (Choose108 == 1){
cout << "The closet is empty. There are no boxes or personal belongings of any kind. They must have been removed before the building closed. \n";
cout << "There are spider webs and spiders in the closet. There are dead bugs on the floor of the closet. There is a hole in the wall of the closet. \n";
cout << "There is air rushing in the hole. You slowly leave, but the ceiling collapses. You are stuck with a broken leg and a broken arm. \n";
Space_Warp();
}
else if (Choose108 == 2){
cout << "This is a map of the building. There is an elevator to the basement. It is concealed behind an unlabeled door. \n";
cout << "There is a place where someone wrote next to the map. It is in a different handwriting. It claims that there is an exit in the basement. \n";
cout << "You go to the Elevator. \n";
Elevator();
}
else {
cout << "You leave the room after looking around.\n";
Hall_1();
}
}
void Elevator(){
cout << "You are in the elevator. You press B. \n";
cout << "The elevator slowly lowers with creaking and banging noises. It bangs to a stop. You begin to whuf!!! \n";
cout << "Suddenly the lights go out...... \n";
cout << "The lights come back on! The door is open to the basement. you enter the basement. \n";
Basement();
}
void Basement(){
cout << "The Main Basement has a low ceiling and flickering fluorescent bulbs. It smells like rotten eggs, poop, mold, and trash. There are doors B01 to B08. \n";
cout << "Each door can be entered at any time from the Main Basement by pressing 1 through 8, but none of the rooms are interconnected. \n";
cout << "The ceiling is low engouh that you need to crouch slightly. You hit your head on the lights if you do not crouch. \n";
cout << "There is a warning sign on the wall. YOU CANNOT GO BACK TO THE FIRST FLOOR! THE ELEVATOR IS SHOT!\n";
cout << "It is illegible. You whuf uncontrollably! The basement reeks of rotting food, rotten fish, poop, coal, petroleum, and mold. \n";
cout << "What do you do? \n";
string jibberish = "43my943mct849mw3ct894mw3c8t9m43c89tm4w98ctm4398wcmt89w4mct89w43m8tc9m4w389ctm4389wmct9843mct9834w344c434c4c44c3444rc4c4rc";
string gibberish = "437c4q378w4343w7yw7w34w787wtw4w343w4743w34w43983w4y9w4389wy349389w49m8y98m4398349m8ytc498w9c3884m8mv85m48v7584v8547854444";
cout << "The sign reads:" << endl;
cout << jibberish << "\n" << jibberish.length() << gibberish << "\n";
cout << "with foot note:\n";
cout << jibberish[3] << jibberish[8] << gibberish[5] << jibberish[16] << gibberish[2] << gibberish[7] << jibberish[0] << gibberish[5] << endl;
cout << "There is subtext, it reads \n";
cout << &jibberish << &gibberish << endl;
int KaiWinnChoose;
cin >> KaiWinnChoose;
switch (KaiWinnChoose) {
case 1:
cout << "This room has what looks like black mold. There are cinder block walls and pipes and machines everywhere. There is an ancient central boiler in the room. \n";
cout << "It smells of petroleum and coal dust. The mold is not mold, but coal dust. \n";
cout << "There is a map in the room, you read it. It has illegible scrawl on all of the rooms. It shows a tunnel branching off of room 3.... \n";
cout << "That has to be the exit! \n";
cout << "you return to the Main Basement \n";
Basement();
break;
case 2:
cout << "The lights are smashed in this room. You linger a little too long and smell more rotten eggs. The gas is ignited by the lights of the basement. \n";
cout << "The air explodes....... You dont feel it......\n";
KaiWinn_Warp();
break;
case 3: {
cout << "This room has some shelves in it as well as a door on the far side. The sound of dissonant violins can be heard through the door. \n";
cout << "The lights are flickering fluorescent bulbs. The room smells of general decay and dirt. There is a desk on the far side. \n";
cout << "There is nothing on or in it... \n";
cout << "A door is on one of the walls, it has no handle, you ignore it...\n";
cout << "You think: This is my way out! You then go through the door. \n\n\n";
cout << "The hall is cinder block and dimly lit with old incandescent lamps. The noises are now deafening.\n";
int bas3num = 0;
while (bas3num < 9) {
if (bas3num == 0 || bas3num == 2 || bas3num == 4 || bas3num ==6) {
cout << "The noises get louder \n";
}
else if (bas3num == 1 || bas3num == 3 || bas3num ==5 || bas3num == 7){
cout << "The noises get softer. \n";
}
else {
cout << "The sound abruptly stops. You Whuf! \n";
cout << "You run down the hall out of desperation. It goes on infinitely.... The walls stretch and everything begins to fade. \n";
cout << "There is a loud bang and a white flash. You briefly see your car and your gear........ Then everything goes pitch black and silent. \n";
cout << "There is a reverse cymbal! \n";
}
bas3num = bas3num + 1;
}
cout << "After another flash: \n";
Basement();
break;
}
case 4: {
cout << "This room has electrical control equipment in it. The far wall is metal and circular. There is a view port in it. \n";
cout << "There is a large propeller in the fan pit that can be seen through the port. It has 8 blades and is off. \n";
cout << "The lights in this room do not flicker. There is a table with a desk fan on it. It is off as well.\n";
cout << "There is a small kitchenette in the room with a mini fridge, two microwaves (one fake wood and the other cream colored), a toaster oven, cabinets, a sink, a disposal, a trash can, and a single stove eye \n ";
cout << "There is a closet in this room, and you take a closer look at it. A filthy, oily work jacket of an older style hangs in the closet. \n";
cout << "There is nothing in the pockets on it, and the name Clara is written on the tag. There is also a centipede on the floor of the building \n";
cout << "There is a hole in the wall and dirt is coming into the room. Suddenly a large beetle comes out of the hole. \n";
cout << "There is also another closet on the far side of the room.\n";
cout << "Press 1 to attack the beetle, or 2 to look at the other closet, or any other integer to leave.\n";
int bas4num;
int fight_scene;
int beetle_health = 34;
cin >> bas4num;
if (bas4num == 1){
while (true) {
cout << "You can attack the beetle with a wrench, sledge hammer, or by kicking it. \n press 1 to use the wrench, 2 to kick it, 3 to use a sledge hammer. \n";
cin >> fight_scene;
if (fight_scene == 1) {
cout << "You find a large adjustable wrench. You hit the beetle with it. The beetle's shell is very hard. \n";
if (stamina > 150 ) {
beetle_health = beetle_health - (attack - 4);
}
else {
beetle_health = beetle_health - (attack - 6);
}
cout << "The beetle is hurt \n";
}
else if (fight_scene == 2) {
cout << "You kick the beetle, and it flips. You then kick it again and it flips again. \n";
if (stamina > 150 ) {
beetle_health = beetle_health - attack;
}
else {
beetle_health = beetle_health - (attack - 3);
}
cout << "The beetle is hurt \n";
}
else {
cout << "You hit the beetle, and it is killed.\n";
beetle_health = beetle_health - 34;
cout << "The beetle dies. \n";
break;
}
if (beetle_health < 1) {
cout << "The beetle flips and the legs curl in.\n";
cout << "The beetle dies. \n";
break;
}
sleep(1);
cout << "The beetle jumps and flies in a lazy circle, and then flies right at your face at high speed. \n\n\n\n";
cout << "You stumble in severe pain. You take 10 damage. \n";
health = health - (10 - def);
cout << "Your health is: " << health << endl;
if (health > 0) {
cout << "The beetle calms down and drops from the air \n";
}
else {
cout << "Game Over! \n";
break;
}
}
if (health > 0) {
Basement();
}
else {
cout << "Game Over! \n";
}
}
else if (bas4num == 2) {
cout << "The other closet has oily rags in it. They are a fire hazard. You shut the door and leave the room avoiding the beetle. \n";
Basement();
}
else {
cout << "You leave the room, avoiding both the beetle and the other closet. \n";
Basement();
}
break;
}
case 5:
cout << "The room is disgusting!!!!!!! There are black, brown, green, yellow, and white stains. It smells like poop, rotten fish, chemicals, and mold. \n";
cout << "You gag on the smell. There is rotten food and rotten beverages in the room. There is a coil on the far side. The fans are off. \n";
cout << "There is standing water on the floor. You realize...... \n";
cout << "This was their walk in freezer. The lights barely work. You slam the door and return to the basement. \n";
Basement();
break;
case 6:
cout << "This room has dirt on the floor. You can see into room 104. There is a colony of beetles in this room. They spasm and fly around the lights. \n";
cout << "The room smells like dirt. It has daylight LEDs. \n";
cout << "The beetles seem to avoid you. There is no furniture in the room because it has been gutted. The beetles have a pile of rotten food from the freezer. \n";
cout << "There is a ceiling fan in the room. It is running on low speed. The beetles avoid it. \n";
cout << "There is a hole in the outside wall and you can see that it leads to a tunnel that the beetles crawl through. \n";
cout << "You leave seeing that it is of no use. \n";
Basement();
break;
case 7:
cout << "This room has metal walls, a metal floor, and a metal ceiling. There are 2 coils with fans in it. It was their walk in cooler. \n";
cout << "The room reeks of rotten fish, rotten meat, trash, and mold. There is trash on the floor, and rotten meat on a shelving unit on the wall. The room is full of flies.\n";
cout << "The coils are covered in ice, yet the cooler is warm. You hear refirgerant hissing in the right coil. The fans are dead. There is nothing of value in this room.\n";
cout << "you leave.... \n";
Basement();
break;
case 8: {
cout << "This is an empty, gutted room. The Studs and ceiling beams show. There no lights, and the only light is from a small, disgusting window on the far side \n";
cout << "You hear a noise, and you wait.\n";
int basrand;
srand(time(NULL)); // The random sequence is different each time
basrand = rand() %40 +1; // generates a random number
if (basrand == 1){
cout << "The noise stops, you whuf and then leave. \n";
Basement();
}
else if (basrand == 2){
cout << "The noise turns into a shriek. The lights go out in the hall. You get thrown in the room. \n";
cout << "You brace for impact...... \n";
KaiWinn_Warp();
}
else if (basrand == 3){
cout << "The noise stops, you think that you imagined things. \n";
cout << "you leave. \n";
Basement();
}
else if (basrand == 4){
cout << "The noise turns out to be the fan in 107B. You leave to see it spin. It runs very fast. \n";
cout << "You look at the room again, and the desk fan now runs as well. \n";
cout << "The fan turns off, and you leave the room.\n";
Basement();
}
else if (basrand == 5){
cout << "The noise stays quiet and indeterminate. You enter the basement hall and put your ear to the floor. \n";
cout << "Suddenly you are thrown back in time. You see people walking around and talking. They walk through you. \n";
cout << "You see a woman in a suit walk up to another woman in a Victorian Era dress. They talk to each other and reveal that it is March 15, 2016. \n";
cout << "Suddenly there are regular explosions and someone yells that there are concussion charges blowing up. \n";
cout << "Everyone stops and goes into the tornado position. The sounds stop after 15 minutes. Then an evacuation alarm goes off. \n";
cout << "Everyone goes into room B03 and down the tunnel in there. You stop a man with dark skin and hair in a suit and tie and ask where you are. \n";
cout << "He does not know where the conference center is located. He claims to have ridden public transit to get to it. That is all he knows.\n";
cout << "He comments that he is heading home to Chicago to see his family. He asks you why you are not evacuating.\n";
cout << "You panic, and ask a woman with short, dark hair, an atheletic build, and that is wearing a wedding dress and ask where you are. \n";
cout << "She answers the Ben Graves Conference Center. You ask where is that? She responds that she does not know. \n";
cout << "You then ask another woman with long, blonde hair that wears a pants suit where the conference center is. She shows sheets of calculations and formulae. \n";
cout << "Then she says in a stoic voice, We are in a state of flux between universes but not precisely in any universe. \n It will invert in one hour, and at that time time will reach a singularity there. \n";
cout << "This is not the Western Pacific Universe! \n\n\n\n You are suddenly in the basement. \n";
Basement();
}
else if (basrand == 6){
cout << "The noise stops, you whuf and then leave. \n";
Basement();
}
else if (basrand == 7){
cout << "The noise stops, you think that you imagined things. \n";
cout << "you leave. \n";
Basement();
}
else if (basrand == 8){
cout << "There is a time singularity. The room fills with blinding blue light. It Explodes, dealing considerable damage. \n";
health = health - (35 + def - attack);
cout << "Your health is: " << health << endl;
if (health > 0) {
cout << "You limp into the basement \n";
Basement();
}
else {
cout << "Game Over! \n";
Space_Warp();
}
Space_Warp();
}
else if (basrand == 9){
cout << "The noise stops, you whuf and then leave. \n";
Basement();
}
else if (basrand == 10){
cout << "The noise fades out, you stare at the far wall before leaving. \n";
Basement();
}
else if (basrand == 11){
cout << "The noise becomes loud and then abruptly stops. There is a loud impulsive noise from overhead \n";
cout << "You leave the room afraid \n" ;
Basement();
}
else if (basrand == 12){
cout << "The noise stops, you whuf and then leave. \n";
Basement();
}
else if (basrand == 13){
cout << "The noise stops becomes a low throbbing sound. There are a few bright blue flashes. you leave confused. \n";
Basement();
}
else if (basrand == 14){
cout << "The noise becomes a hiss. You are gently lifted upwards. \n";
Room_6();
}
else if (basrand == 15){
cout << "The noise continues, there is a pop sound, and it goes black. You begin to drift sideways.\n";
Lobby();
}
else if (basrand == 16){
cout << "The noise becomes that of a string orchestra tuning up. You leave.\n";
Basement();
}
else if (basrand == 17){
cout << "The noise stops. You lift through the ceiling and into the hall on the ground floor. \n";
Hall_1();
}
else if (basrand == 18){
cout << "The noise fades in and out, a large fly is seen darting around the room and buzzing loudly. You leave. \n";
Basement();
}
else if (basrand == 19){
cout << "The noise abruptly stops. You become dizzy and fall over. The room does cartwheels... \n";
Room_1();
}
else if (basrand == 20){
cout << "The noise abruptly stops. You become dizzy and stagger into the basement. You wait for the vertigo to stop. \n";
Basement();
}
else if (basrand == 21){
cout << "The noise abruptly stops. A beam falls from the ceiling, hits you, and then resets. You take 15 damage... \n";
health = health - (15 - def);
cout << "You stagger into the basement... Your health is: " << health << endl;
if (health > 0) {
Basement();
}
else {
cout << "Game Over! \n";
Space_Warp();
}
}
else if (basrand == 22){
cout << "The noise abruptly stops. You become dizzy and fall over. The room does cartwheels... \n";
Room_5();
}
else if (basrand == 23){
cout << "The noise abruptly stops. You become dizzy and fall over. The room does cartwheels... \n";
Room_7();
}
else if (basrand == 24){
cout << "The noise becomes a rumble sound. It then becomes a loud grinding noise. You hide in the room for a long time. The grinding noise fades back to a rumble and then to silence. \n";