Page 1 of 1

Hero++ is finished - Check it out!

Posted: Sat Oct 09, 2004 3:25 pm
by Anonymous
It's been a while since I've posted here, but since this community helped me out learn some things about C++, I thought it would be fitting to post a link to the finished product.

Starting in about May, myself and a pair of friends at school started making a game in C++. We coded it off and on in our free time amongst assignments, work, and other distractions. Date of official release was this week sometime. (Early October 2004)

Hero++ is an ascii rpg. Admittedly, it's the best ascii game I've ever played because it's the only ascii game I've ever played! It shouldn't take more than a few hours to finish the game to completion. The game is pretty well debugged, is only 240kb to download, and is Free! The game is being hosted by the nice folks at www.ninefires.net They're also game developers, but a lot more advanced. Check out their stuff too if you have the chance.

Check Hero++ out, leave some comments, tell your friends. You can download it from:

http://hero.ninefires.net/

A few technical notes about Hero++:

- made in C++ with ONLY the C Standard Libraries and "conio.h"
- 16 color ascii graphics
- about 7000 lines of code and over 60 maps with 3 70x25 matrices each
- supports a movement engine, buying/selling/equipping items, spells with animations, battles
- uses the space/enter, 8,6,4,2/5 keys for pretty much everything
- compatable on EVERY win32 platform (win95-winXP)
- read the FAQ if you're having difficulties!

I'd be happy to answer any questions about the game in this thread. Also, if you defeat the last boss, post your level, another member of the team wants to keep this statistic.

The source code will be posted eventually, it just needs to be cleaned up a bit, it's not a very pretty sight at this moment.

Archived topic from Iceteks, old topic ID:2741, old post ID:22374

Hero++ is finished - Check it out!

Posted: Sat Oct 09, 2004 10:13 pm
by wldkos
I didn't download it, but that looks pretty cool man.

Archived topic from Iceteks, old topic ID:2741, old post ID:22384

Hero++ is finished - Check it out!

Posted: Sat Oct 09, 2004 10:44 pm
by Death
Wow. It's like ZZT all over again! Ya, I remember games like that. I made one like that sometime ago using a dos based progamming language. It was mostly ascii with a few graphics. The maps were nice. Completely random and such, so the game was different each time you played it. Never really finished making it though. After 200 maps, you kind of lose interest in it :(.

Archived topic from Iceteks, old topic ID:2741, old post ID:22386

Hero++ is finished - Check it out!

Posted: Sun Oct 10, 2004 1:46 am
by wtd
Ryan4Ever wrote: - made in C++ with ONLY the C Standard Libraries and "conio.h"
I hate to be pedantic, but the programming language you used for this is just plain old C. The fact that it compiles with a C++ compiler is coincidence. The two are very different languages. :)

Archived topic from Iceteks, old topic ID:2741, old post ID:22391

Hero++ is finished - Check it out!

Posted: Sun Oct 10, 2004 6:51 am
by Anonymous
Are you sure? We used various pointers in the code. I had thought that those were native to C++ and not C. If not, that's something to be proud of further! It's to my knowlege that C has less shortcuts and features built into it so more difficult to code in.

Archived topic from Iceteks, old topic ID:2741, old post ID:22392

Hero++ is finished - Check it out!

Posted: Sun Oct 10, 2004 2:10 pm
by Triple6_wild
hehehe made it to lvl 3 .... cloud magic sux lol 10 mp to do 14 dmg? should of put magic ring on b4 i tryed it but ether way :) kinda reminds me of final fantasy

shh theres a lil kid hiding in the bushes (bottom right of town) :biglaugh:

Archived topic from Iceteks, old topic ID:2741, old post ID:22404

Hero++ is finished - Check it out!

Posted: Mon Oct 11, 2004 5:45 pm
by wtd
Ryan4Ever wrote: Are you sure? We used various pointers in the code. I had thought that those were native to C++ and not C. If not, that's something to be proud of further! It's to my knowlege that C has less shortcuts and features built into it so more difficult to code in.
Pointers are a concept which exist in many programming languages, including C and C++.

As for features and shortcuts...

Yes, C++ has a more complex syntax, and that means there are going to be more ways to get the same thing done, and often easier ways, but this doesn't mean that it's easier to work in C++.

C, relatively speaking, is a simple language, with a simple syntax. It's easy to get bogged down in the details of how the syntax of C++ works, and concentrate less on how your program should work.

In summary: if you really know what you're doing, and have a great deal of experience with C++, then it can be faster and more productive to develop in that C. Otherwise, it will likely take you longer, and the end product will likely be buggier.

Archived topic from Iceteks, old topic ID:2741, old post ID:22475

Hero++ is finished - Check it out!

Posted: Mon Oct 11, 2004 7:48 pm
by Red Squirrel
Actually what are the main differences between C and C++? I use a C++ compiler, but maybe my code is actually C and I don't know about it (since they're both interchangable)

For example are cout and cin function C or C++?

Archived topic from Iceteks, old topic ID:2741, old post ID:22483

Hero++ is finished - Check it out!

Posted: Mon Oct 11, 2004 9:17 pm
by wtd
std::cout and std::cin are actually variables: objects of the ostream and istream classes, respectively.

C has no support for object-oriented programming. It has no support for templates. There is no operator or function overloading. There is no syntax for "references", but simply pointers. The "new" and"delete" operators for allocating and freeing memory don't exist, but instead the "malloc" and "free" functions are used. No string data type is provided, but rather strings are simply arrays of characters, and ended by a character with a value of zero.

If you're using G++, then you almost certainly have access to a plain C compiler in GCC. C++ isn't a perfect superset of C. A few of the things it adds conflict with how they should behave in standard C.



Archived topic from Iceteks, old topic ID:2741, old post ID:22487