Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- #include<string.h>
- #include<windows.h>
- int main(){
- //Tittle
- system("mode 79, 22");
- main_menu:
- system("cls");
- printf("===========\n Main Menu\n===========\n\n\n");
- //Main menu
- printf("1. Play\n2. Help\n3. Credits\n4. Quit Game\n\n\n"); //Selection
- int mainmenuchoice;
- scanf("%d", &mainmenuchoice); //Scanning
- //Choices (Conditions)
- if(mainmenuchoice == 1){
- goto First_Frame;
- }
- else if(mainmenuchoice == 2){
- goto game_help;
- }
- else if(mainmenuchoice == 3){
- goto credits;
- }
- else if(mainmenuchoice == 4){
- exit(0);
- }
- else {
- system("cls");
- printf("\n\n\n\nError: Invalid menu selected, please, select between 1, 2, 3 or 4.\n\n\n\n\t\tPress [ENTER] to continue.\n\n");
- getchar(); getchar();
- system("cls");
- goto main_menu;
- }
- //Choices
- game_help:
- system("cls");
- printf("======\n HELP\n======\n");
- printf("\n\nTo play, you simply will have to choose an action between 1 or 2 (or higher \nsometimes) by typing this number and then confirm with [ENTER].\n\n");
- printf("Press [ENTER] to go back to the main menu.");
- getch();
- goto main_menu;
- credits:
- system("cls");
- printf("=========\n CREDITS\n=========\n");
- printf("\n\nGame programmed in C by Wolfiy.\n\n1. Youtube\n2. Twitter\n3. Instagram\n\n9. Main Menu\n\n");
- int website;
- scanf("%d", &website);
- if(website == 1){
- ShellExecute(NULL, "open", "https://www.YouTube.com/DarkWolfiiy", NULL, NULL, SW_SHOWNORMAL);
- goto credits;
- }
- else if(website == 2){
- ShellExecute(NULL, "open", "https://www.Twitter.com/DarkWolfiy", NULL, NULL, SW_SHOWNORMAL);
- goto credits;
- }
- else if(website == 3){
- ShellExecute(NULL, "open", "https://Instagram.com/WolfiyEditor", NULL, NULL, SW_SHOWNORMAL);
- goto credits;
- }
- else if(website == 9){
- goto main_menu;
- }
- else {
- system("cls");
- printf("\n\n\n\nError: Invalid link selected, please, select between 1, 2, 3 or 9.\n\n\n\n\t\tPress [ENTER] to continue.\n\n");
- getchar(); getchar();
- system("cls");
- goto credits;
- }
- getchar();
- //====================================================GAME=================================================================
- //First Frame (1)
- First_Frame:
- system("cls");
- printf("\n\n???: \nHey, you, who are you? Why are you here?\n\n\t1. Ah... My head hurt so much... Where am I..?\n\t2. WO-WO-WO-WOW who are YOU? Why did you bring me HERE?\n\n");
- int first_frame_choice;
- scanf("%d", &first_frame_choice);
- if(first_frame_choice == 1){
- goto first_frame_choice_1;
- }
- else if(first_frame_choice == 2){
- goto first_frame_choice_2;
- }
- else {
- system("cls");
- printf("\n\n\n\nError: Invalid selection. Please, select between 1 or 2.\n\n\n\n\t\tPress [ENTER] to continue.\n\n"); //
- getchar(); getchar();
- system("cls");
- goto First_Frame;
- }
- //first_frame_choice_1
- first_frame_choice_1:
- system("cls");
- printf("\n\n???: \nI can't tell it to you. Not now. Not here. Follow me.\n\n");
- goto frame_2_way_1;
- //first_frame_choice_2
- first_frame_choice_2:
- system("cls");
- printf("\n\n???: \npssssssh be quiet! They are listening!\n\n");
- goto frame_2_way_2;
- //Second Frame (2)
- frame_2_way_1:
- printf("\t1. Why..?\n\t2. I want explications, and NOW!\n\n");
- int choice_frame_2_way_1;
- scanf("%d", &choice_frame_2_way_1);
- if(choice_frame_2_way_1 == 1){
- goto answer_frame_2_way_1_1;
- }
- else if(choice_frame_2_way_1 == 2){
- goto answer_frame_2_way_1_2;
- }
- else {
- system("cls");
- printf("\n\n\n\nError: Invalid selection. Please, select between 1 or 2.\n\n\n\n\t\tPress [ENTER] to continue.\n\n"); //
- getchar(); getchar();
- system("cls");
- goto first_frame_choice_1;
- }
- frame_2_way_2:
- printf("\t1. *whispering* What..? Who is listening?\n\t2. *shouting* LAAAALALAlALALAAAAALALLALLA!!!\n\n");
- int choice_frame_2_way_2;
- scanf("%d", &choice_frame_2_way_2);
- if(choice_frame_2_way_2 == 1){
- goto answer_frame_2_way_2_1;
- }
- else if(choice_frame_2_way_2 == 2){
- goto answer_frame_2_way_2_2;
- }
- else {
- system("cls");
- printf("\n\n\n\nError: Invalid selection. Please, select between 1 or 2.\n\n\n\n\t\tPress [ENTER] to continue.\n\n"); //
- getchar(); getchar();
- system("cls");
- goto first_frame_choice_2;
- }
- //Answers
- answer_frame_2_way_1_1:
- system("cls");
- printf("\n\n???: \nI can't explain now. Just follow me. I won't hurt you, and if I would, I could \nnot.\n\n");
- goto frame_3_way_1_1;
- answer_frame_2_way_1_2:
- system("cls");
- printf("\n\n???: \nStop shouting! If they find us, they'll kill us!\n\n");
- goto frame_3_way_1_2;
- answer_frame_2_way_2_1:
- system("cls");
- printf("\n\n???: \nI can't tell you know, if they find us, we're dead! Just follow me.\n\n");
- goto frame_3_way_2_1;
- answer_frame_2_way_2_2:
- system("cls");
- printf("\n\n???: \nNooo! Stop! They are ready to kill us if the find you! If you die here, you're \ndead for real!\n\n");
- goto frame_3_way_2_2;
- //Third Frame (3)
- frame_3_way_1_1:
- printf("\t1. Ummm... Okay...\n\t2. And why should I trust you?\n\n");
- int choice_frame_3_way_1_1;
- scanf("%d", &choice_frame_3_way_1_1);
- if(choice_frame_3_way_1_1 == 1){
- goto answer_frame_3_way_1_1;
- }
- else if(choice_frame_3_way_1_1 == 2){
- goto answer_frame_3_way_1_1_2;
- }
- else {
- system("cls");
- printf("\n\n\n\nError: Invalid selection. Please, select between 1 or 2.\n\n\n\n\t\tPress [ENTER] to continue.\n\n");
- getchar(); getchar();
- system("cls");
- goto answer_frame_2_way_1_1;
- }
- frame_3_way_1_2:
- printf("\t1. If you say so...\n\t2. But who?!\n\n");
- int choice_frame_3_way_1_2;
- scanf("%d", &choice_frame_3_way_1_2);
- if(choice_frame_3_way_1_2 == 1){
- goto answer_frame_3_way_1_2;
- }
- else if(choice_frame_3_way_1_2 == 2){
- goto answer_frame_3_way_1_2_2;
- }
- else {
- system("cls");
- printf("\n\n\n\nError: Invalid selection. Please, select between 1 or 2.\n\n\n\n\t\tPress [ENTER] to continue.\n\n");
- getchar(); getchar();
- system("cls");
- goto answer_frame_2_way_1_2;
- }
- frame_3_way_2_1:
- printf("\t1. Okay...\n\t2. Mmmh...k...\n\n");
- int choice_frame_3_way_2_1;
- scanf("%d", &choice_frame_3_way_2_1);
- if(choice_frame_3_way_2_1 == 1){
- goto answer_frame_3_way_2_1;
- }
- else if(choice_frame_3_way_2_1 == 2){
- goto answer_frame_3_way_2_1_2;
- }
- else {
- system("cls");
- printf("\n\n\n\nError: Invalid selection. Please, select between 1 or 2.\n\n\n\n\t\tPress [ENTER] to continue.\n\n");
- getchar(); getchar();
- system("cls");
- goto answer_frame_2_way_2_1;
- }
- frame_3_way_2_2:
- printf("\t1. Wow. Couldn't you say it before?\n\t2. What do you mean by %cdead for real%c ? o.O\n\n", 34, 34);
- int choice_frame_3_way_2_2;
- scanf("%d", &choice_frame_3_way_2_2);
- if(choice_frame_3_way_2_2 == 1){
- goto answer_frame_3_way_2_2;
- }
- else if(choice_frame_3_way_2_2 == 2){
- goto answer_frame_3_way_2_2_2;
- }
- else {
- system("cls");
- printf("\n\n\n\nError: Invalid selection. Please, select between 1 or 2.\n\n\n\n\t\tPress [ENTER] to continue.\n\n");
- getchar(); getchar();
- system("cls");
- goto answer_frame_2_way_2_2;
- }
- //Answers
- answer_frame_3_way_1_1:
- system("cls");
- printf("\n\n???: \nOkay, so be quiet and keep being close from me. Do NOT make any noise.\n\n");
- goto frame_4_start;
- answer_frame_3_way_1_1_2:
- system("cls");
- printf("\n\n???: \nBecause i'm the only one that can help you.\n\n");
- goto frame_4_start;
- answer_frame_3_way_1_2:
- system("cls");
- printf("\n\n???: \nK, follow me, be quiet, keep being close.\n\n");
- goto frame_4_start;
- answer_frame_3_way_1_2_2:
- system("cls");
- printf("\n\n???: \nFollow me. You'll know everything, but later.\n\n");
- goto frame_4_start;
- answer_frame_3_way_2_1:
- system("cls");
- printf("\n\n???: \nTrust me, I'll help you.\n\n");
- goto frame_4_start;
- answer_frame_3_way_2_1_2:
- system("cls");
- printf("\n\n???: \nJust trust me. Without me, you're dead, just follow me.\n\n");
- goto frame_4_start;
- answer_frame_3_way_2_2:
- system("cls");
- printf("\n\n???: \nYeaaaa sorry, so follow me or um... yea, you see what I mean...\n\n");
- goto frame_4_start;
- 0answer_frame_3_way_2_2_2:
- system("cls");
- printf("\n\n???: \nYou'll understand soon. Just follow me.\n\n");
- goto frame_4_start;
- //Fourth Frame (4)
- frame_4_start:
- printf("\t1. Well... okay...");
- int starting;
- scanf("%d", &starting);
- if(starting == 1){
- goto frame_5_explications;
- }
- else {
- system("cls");
- printf("\n\n\n\nError: Invalid selection. Please, select between 1 or 2.\n\n\n\n\t\tPress [ENTER] to continue.\n\n"); // MODIFY
- getchar(); getchar();
- system("cls");
- goto frame_4_start;
- }
- //Fifth Frame (5)
- frame_5_explications:
- printf(" ");
- getchar();
- system("cls");
- printf("\n\n===Later===\n\n\n\n\t\tPress [ENTER] to continue.\n\n");
- getchar();
- system("cls");
- printf("\n\n???: \nOkay, so we're finally arrived.\n\n\n\n\t\tPress [ENTER] to continue.\n\n");
- getchar();
- system("cls");
- printf("\n\n???: \nJust let me check that we are in security.\n\n\n\n\t\tPress [ENTER] to continue.\n\n");
- getchar();
- system("cls");
- printf("\n\n???: \nWell... everything looks okay...\n\n\n\n\t\tPress [ENTER] to continue.\n\n");
- getchar();
- system("cls");
- printf("\n\n???: \nJust one more thing and... here we are!\n\n\n\n\t\tPress [ENTER] to continue.\n\n");
- getchar();
- system("cls");
- printf("\n\n???: \nSo, I'm sure you'd like to know who I am, but it's not really important.\nJust call me... I don't know, just choose yourself.");
- char unknown_guy_name[70]; /* NPC's name char */
- printf("\n\n\tHow would you like to call him? (Press [ENTER] to confirm) "); /* NPC's name (asking) */
- scanf("%s", unknown_guy_name); /* NPC's name scan */
- getchar();
- //Question Frame 5
- questions_frame_5:
- system("cls");
- printf("\n\n%s:\n", unknown_guy_name); /*NPC's Talking printf*/
- printf(unknown_guy_name);
- printf("? Well... If you want... Anyway... any questions?\n\n\t1. Where am I?\n\t2. Why did you bring me there?\n\n");
- int choice_questions_frame_5;
- scanf("%d", &choice_questions_frame_5);
- if(choice_questions_frame_5 == 1){
- goto answer_frame_5_way_1;
- }
- else if(choice_questions_frame_5 == 2){
- goto answer_frame_5_way_2;
- }
- else {
- system("cls");
- printf("\n\n\n\nError: Invalid selection. Please, select between 1 or 2.\n\n\n\n\t\tPress [ENTER] to continue.\n\n");
- getchar(); getchar();
- system("cls");
- goto questions_frame_5;
- }
- //Ways Frame 5
- answer_frame_5_way_1:
- system("cls");
- printf("\n\n%s:\n", unknown_guy_name);
- printf("Well... It's hard to explain but... You kinda are...In a computer...\n\n\n\n\t\tPress [ENTER] to continue.\n\n");
- getchar(); getchar();
- goto other_frame_5_questions;
- answer_frame_5_way_2:
- system("cls");
- printf("\n\n%s:\n", unknown_guy_name);
- printf("I bring you there for a simple reason: your life.\n\n\n\n\t\tPress [ENTER] to continue.\n\n");
- getchar(); getchar();
- goto other_frame_5_questions;
- //Frame 5 Other Questions
- other_frame_5_questions:
- system("cls");
- int choice_other_frame_5_questions;
- printf("\n\n%s:\n", unknown_guy_name);
- printf("Do you want to know anything else?");
- //Questions
- if(choice_questions_frame_5, choice_other_frame_5_questions == 1){
- printf("\n\n\t1. Can you repeat where I am..?");
- } else {
- printf("\n\n\t1. Where am I?");
- }
- if(choice_questions_frame_5, choice_other_frame_5_questions == 2){
- printf("\n\t2. Can you repeat why did you bring me there?");
- } else {
- printf("\n\t2. Why did you bring me there?");
- }
- printf("\n\t3. So... What are you hiding me?\n\n");
- scanf("%d", &choice_other_frame_5_questions);
- if(choice_other_frame_5_questions == 1){
- goto answer_frame_5_way_1;
- }
- else if(choice_other_frame_5_questions == 2){
- goto answer_frame_5_way_2;
- }
- else if(choice_other_frame_5_questions == 3){
- goto answer_other_frame_5_questions_3;
- }
- else {
- system("cls");
- printf("\n\n\n\nError: Invalid selection. Please, select between 1, 2 or 3.\n\n\n\n\t\tPress [ENTER] to continue.\n\n");
- getchar(); getchar();
- goto other_frame_5_questions;
- }
- //Frame 5 Explications
- answer_other_frame_5_questions_3:
- system("cls");
- printf(" ");
- getchar();
- system("cls");
- printf("\n\n%s:\nWell, I won't hide you the truth anymore, but I don't know everything...\n\n\n\n\t\tPress [ENTER] to continue.\n\n", unknown_guy_name);
- getchar();
- system("cls");
- printf("\n\n%s:\nBut to do simple, you're on a world that you could qualify as unreal, because \nit's inside a computer program.\n\n\n\n\t\tPress [ENTER] to continue.\n\n", unknown_guy_name);
- getchar();
- system("cls");
- printf("\n\n%s:\nI don't know how, but you got teleported here. I told you to come here, because \nI have my little theory 'bout this.\n\n\n\n\t\tPress [ENTER] to continue.\n\n", unknown_guy_name);
- getchar();
- system("cls");
- printf("");
- getchar();
- system("cls");
- getch();
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement