Skip to content
This repository was archived by the owner on Jun 12, 2025. It is now read-only.

Commit 85be945

Browse files
GamerMan7799GamerMan7799
authored andcommitted
Update main to V3.0b-dev4
-Added better winning message. -Added spells.h does nothing currently just for testing.
1 parent 97261fa commit 85be945

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

main.cpp

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ For more information, please refer to <http://unlicense.org>
2929
/*
3030
Made By: Patrick J. Rye
3131
Purpose: A game I made as an attempt to teach myself c++, just super basic, but going to try to keep improving it as my knowledge increases.
32-
Current Revision: 3.0b-dev2
32+
Current Revision: 3.0b-dev4
3333
Change Log---------------------------------------------------------------------------------------------------------------------------------------------------
3434
Date Revision Changed By Changes
3535
------ --------- ------------ ---------------------------------------------------------------------------------------------------------------------
@@ -90,7 +90,9 @@ Date Revision Changed By Changes
9090
-Added better opening message.
9191
-Replaced all system("pause") with getchar();
9292
=============================================================================================================================================================
93-
2015/03/06 3.0b Patrick Rye -Redid some calcuations in battle.h
93+
2015/03/06 3.0b Patrick Rye -Redid some calculations in battle.h
94+
-Added better winning message.
95+
-Added spells.h does nothing currently just for testing.
9496
=============================================================================================================================================================
9597
*/
9698

@@ -108,6 +110,7 @@ Date Revision Changed By Changes
108110
#include "basic.h" //Functions that are simple and won't need to be changed very often.
109111
#include "battle.h" //Functions that deal with battling, levelling up and making a player.
110112
#include "rooms.h" //Functions that deal with generating a dungeon.
113+
//#include "spells.h" //Functions that deal with spells and magic, a possible future addition.
111114
/*********************************************************************************************************/
112115
using namespace std;
113116
Dungeon d; //Define the dungeon class as 'd' so I can use functions in there anywhere later in the code.
@@ -116,8 +119,9 @@ Dungeon d; //Define the dungeon class as 'd' so I can use functions in there any
116119
int intMainLevel; //The level of the dungeon.
117120
int intLevelStart = 1; //The level that the game starts at. Will be 1 unless loading from a save.
118121
bool blDebugMode = false; //If game is in debug mode or not, effects if player has access to debug commands.
119-
const string CurrentVerison = "3.0b-dev2"; //The current version of this program, stored in a save file later on.
122+
const string CurrentVerison = "3.0b-dev4"; //The current version of this program, stored in a save file later on.
120123
/*********************************************************************************************************/
124+
//Some constant string for different messages that appear as large ASCII text.
121125
const string OpeningMessage[16] = {" \n",
122126
",--. ,--. ,--. \n",
123127
"| | | | ,---. | | ,---. ,---. ,--,--,--. ,---. \n",
@@ -134,6 +138,14 @@ const string OpeningMessage[16] = {"
134138
"| .-. |'-. .-''-. .-'' ,-. || .--'| /| .-. :| .--' \n",
135139
"| | | | | | | | \\ '-' |\\ `--.| \\ \\\\ --.| | \n",
136140
"`--' `--' `--' `--' `--`--' `---'`--'`--'`----'`--' \n"};
141+
142+
const string WinningMessage[6] = {"__ __ _ _ _ _ _ \n",
143+
"\\ \\ / / | | | (_) | | |\n",
144+
" \\ V /___ _ _ | | | |_ _ __ | | |\n",
145+
" \\ // _ \\| | | | | |/\\| | | '_ \\| | |\n",
146+
" | | (_) | |_| | \\ /\\ / | | | |_|_|\n",
147+
" \\_/\\___/ \\__,_| \\/ \\/|_|_| |_(_|_)\n"};
148+
137149
/*********************************************************************************************************/
138150
//These functions have to be up here as functions in save.h use them.
139151
//These values are used to pass values to the save header so that they may be saved.
@@ -239,7 +251,7 @@ int main()
239251
//End of FOR levels.
240252
}
241253
cout << string(50, '\n');
242-
cout<<"You win!!";
254+
for (int i = 0; i < 6; i++) {cout<<WinningMessage[i];}
243255
getchar();
244256
return 0;
245257
//End of main

0 commit comments

Comments
 (0)