Important alert: (current site time 7/15/2013 6:34:35 PM EDT)
 

winzip icon

ARENA: Evolution

Email
Submitted on: 1/19/2001 7:43:44 PM
By: ShiningKnight  
Level: Beginner
User Rating: By 15 Users
Compatibility: C++ (general), Microsoft Visual C++
Views: 31246
 
     An *unfinished* (but well-working* RPG, that is a GREAT learning tool for aspiring game programmers who do not know a lot about C++. The game also has a pretty cool battle system.
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 2 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
1/20/2001 8:39:16 AMBen Jacobs

wow, nice game. Pretty fun and has a good combatt too.
(If this comment was disrespectful, please report it.)

 
1/21/2001 3:47:30 PM--EcKo

This game is a great learning tool and it is really what got me where I am today in my programming experience. I suggest that everyone who is learning c++ download this code and mess with it and you will really LEARN!!!!
(If this comment was disrespectful, please report it.)

 
2/13/2001 3:31:53 PMMark Hamilton

A simplification in the Arena.h file:

Instead of:
switch(slotchoice)
{
case 1:
file=fopen("save1.aes","rb");
fread(&your,sizeof...

make it:
char buf[32];
sprintf(buf,"save%i.aes");
/* then use 'buf' as the file name */

This reduces the amount of code.
(If this comment was disrespectful, please report it.)

 
2/13/2001 3:33:07 PMMark Hamilton

Sorry, made an error. Here it is:

buf[32];
sprintf(buf,"save%i.aes",slotchoice);

(If this comment was disrespectful, please report it.)

 
2/19/2001 9:16:08 AMCodeDruid

Interesting Game, but I would not recommend using this as an example of good C++ code. The coding style used makes this code very difficult for beginners to read. And the use of all public data doesn't teach anyone about proper class design and implementation.. Wheres the encapsulation? Remember, when you write code you are writing it for other prgrammers, so use a consistent, professional style, one that helps your code tell its story...Don't be afraid of White Space....
(If this comment was disrespectful, please report it.)

 
2/19/2001 1:13:57 PMTrent

Yeah thanks for the criticism guys, I love it, it helps me learn. And in response to the last poster, this was my first big project, and I have really learned a lot from it. And I have changed my coding style since then. Thanks.

(If this comment was disrespectful, please report it.)

 
2/25/2001 1:40:23 PMjeremy

When I tried to compile it with some changes it reported the following errors:
gcc: Compilation of header file requested
gcc: file path prefix `C:\DEV-C_~1\BIN\' never used

(If this comment was disrespectful, please report it.)

 
2/25/2001 5:12:55 PMTrent

Hey, from the sounds of it, you are using Dev C++. Although I am not familiar with it, it looks like you are not including the header files with the project... Just my guess though.
(If this comment was disrespectful, please report it.)

 
4/1/2001 3:06:39 PMJared Devall

It took me a little bit, but I got it to work with Dev C++. What I had to fix was in the msoftcon.cpp file. It's now working fine for me.
(If this comment was disrespectful, please report it.)

 
3/25/2002 10:12:40 AMChris Phillips`

I'm getting 4 unresolved externals when I try to run it in MSVC++6. I am familiar with your work though from the NeHe's site, and am sure this is great code.
(If this comment was disrespectful, please report it.)

 
5/23/2002 7:56:42 AMZaphodus II

Compiled ok in MS Devstudio 6, usable code and ideas.
(If this comment was disrespectful, please report it.)

 
7/28/2002 5:19:46 AMJohnny

doesnt really look like real c++, more like a basic programmer that did some c++ work
(If this comment was disrespectful, please report it.)

 
7/31/2002 11:03:13 PMMe

It's too easy and gets boring after awhile (Ive gotton to level 13).
(If this comment was disrespectful, please report it.)

 
8/11/2002 5:22:54 AMNot me

I agree with the last comment. Also, whenever I try to save a game, the program crashes it gets as far as choosing the slot.
(If this comment was disrespectful, please report it.)

 
4/6/2003 8:59:27 PM

I don't seem to be having a problem with the program, so there are no errors to change my opinion on this.
to the coment 2 spaces up yes the game can get boreing after a while, but if you didn't notice it does say quote "An *unfinished*" meaning you can build off of this to make it to your likings.

I think this code is a good start to a text adventure.

(If this comment was disrespectful, please report it.)

 
5/21/2003 7:45:54 AM

I keep getting an error message with Dev c++.Can you tell me how to fix it.

E-Mail me wit the edit
(If this comment was disrespectful, please report it.)

 
5/21/2003 7:49:46 AM

I keep geting a error with Dev C++. Can you email me with the fix.

(If this comment was disrespectful, please report it.)

 
7/21/2003 2:19:30 AM

SOMEONE HELP ME OUT HERE HOW DO I GET THIS STARTED?
(If this comment was disrespectful, please report it.)

 
8/9/2003 1:40:23 PM

this is sweet... good job
(If this comment was disrespectful, please report it.)

 
8/12/2003 5:53:43 PM

can u tell me how to use the code u used to change the color of the cout text? email me at tbutteredtoastt@hotmail.com
(If this comment was disrespectful, please report it.)

 
8/18/2003 10:33:37 AM

mvc 5 error:
C:\Program Files\DevStudio\VC\INCLUDE\ostream(336) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
msoftcon.cpp
Error executing cl.exe.
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.