72 Comments
- comrademikhail, on 10/12/2007, -0/+3I don't see how C++ is overkill "haackers". Could you please explain? I've been learning C++, and I don't think it is overkill, but maybe if you have a good reason I'll think about it. Oh, and text based RPGs are still awesome.
- Llan, on 10/12/2007, -0/+3"No Digg for use of "void main""
Oh jeez...comment rated as SPAM for use of "no brain" - rompom7, on 10/12/2007, -0/+2"Why am I going to use C++ to make a TEXT based RPG? Talk about overkill."
Ever typed a line of code in your life? - allenu, on 10/12/2007, -0/+2I did this once, then I realized it would be more efficient to write up a game engine instead of hard-coding all the game quests and other info in the source code. Then I ended up writing a bunch of editors for it all and writing up and releasing docs so others could create their own quests and monsters. In the end, I wrote way more code than I initially imagined.
For beginning programmers, stuff like this is a great way to get you started. Initially, you'll be writing stuff like this with globals all over the place and no planning, but then you'll start seeing the limits such actions and hopefully start planning things out and likely enjoying that. - proglottis, on 10/12/2007, -1/+3@FlyingAvatar --- Since when have games been all about graphics, to be honest the games that are being produced nowa days are mostly crap, despite the nice screen-shots. I seriously feel like I wasted my money buying a nice powerful video card.
- Beej, on 10/12/2007, -0/+2I didn't actually watch much of it, but assuming he doesn't mess up the C++/OOP stuff, :-) it looks like a great C++/Visual Studio tutorial.
C++ is great for RPGs because it's object-oriented, and RPGs tend to have a lot of things in them that map very well to instances of objects. I'd say "overkill" is completely the wrong word.
Text is great for a tutorial because it's dead simple. It's hard enough to learn Visual Studio AND C++ at the same time you're learning OpenGL and 3D math.
Besides, if you're the older generation, text is not bad at all. I played Quake 4 tonight, but I might just grab the ORB OF ZOT from WIZARDS CASTLE before I go to sleep. - hamster, on 10/12/2007, -0/+1Turn up the volume t0ny :)
- RWVolkl158, on 10/12/2007, -0/+1-Avenger
I'm thinking that people are complaining about him using void main() instead of int main() with a return value... But I dunno, C++ snobs are a hard nut to crack =) - qishi, on 10/12/2007, -0/+1"void main()" isn't just frowned upon by C++ snobs, it's incorrect. I think it's legal in C, though. I'm shocked, I tell you, absolutely shocked, that digg users would write or come to the defense of incorrect code.
- FlyingAvatar, on 10/12/2007, -0/+1@ Since when have games been all about graphics, to be honest the games that are being produced nowa days are mostly crap, despite the nice screen-shots. I seriously feel like I wasted my money buying a nice powerful video card.
Ok, so how many text based games do you play then? I have nothing against them, I played Zork on my Commodore 64, played a multitude of BBS doors, and on a MUD for sometime. My point it is, nowadays you're not going to get anyone to PLAY your game if it's text based. It's just an unfortunate fact of life. You'll have a hard enough time getting someone to play your plain old 2D graphical game. (Which is unfortunate, because it's still my favorite style, as I feel 3D in many cases takes away from the actual gameplay.)
@ "Java is way better in terms of OOness"
Huh? Java's OO was modelled after C++. And Java doesn't support multiple-inheritence. - mpeters13, on 10/12/2007, -0/+1What is with all of the griping about c++? In what ways is using c++ overkill to write a simple program that makes use of simple command line input and output?
And Java? It may be easier to incorporate, but lawd have muhcy... the virtual machine bloats like an old womans vagina. No thank you. - zagi1, on 10/12/2007, -1/+1C++ is like going to the milk store across the street with a Jumbo Jet
- Arevos, on 10/12/2007, -0/+0Actually, Java isn't fully OO, not by a long way. As you point out, primatives are not objects, but nor are methods, classes or interfaces. Compared to a langauge like Python or Ruby, Java's object model is very incomplete indeed.
Also, interfaces don't completely replace the need for multiple inheritance. They produce the same result, but at the cost of code redundancy; sometimes it's necessary to repeat similar code across interfaces that could be avoided with true multiple inheritance. - Ryochan7, on 10/12/2007, -0/+0@burke
I can play the videos with Mplayer but not with Xine or VLC. - zagi1, on 10/12/2007, -0/+0burke is probably missing the plugin mplayer playes it fine
- evizaer, on 10/12/2007, -0/+0"Huh? Java's OO was modelled after C++. And Java doesn't support multiple-inheritence."
Well... Java has interfaces, which, in my amateur opinion, essentially replace the need for multiple inheritence in a somewhat elegant way.
Java was built from the ground up to be fully OO (...well, except for the primitives). C++ is essentially C with OOP tacked on. - darklynx489, on 10/12/2007, -0/+02 things:
1. Thank you VERY much for the video, it's a great way for me to take some of my beginning game programming knowledge and actually realize how to use it in an RPG ( i love RPGS = D )
2. C++ isn't overkill.... it's OOP, what better use of OOP than an RPG?! Think about it for 2 seconds, sooo much is considered an object in RPGs and using classes you can derive some new classes in order to add new features or spells or weapons!
Great video! thanx a ton! - HotCactusPepper, on 10/12/2007, -0/+0Is it just me or do video tutorials for making a text RPG seem a little strange? How entertaining or useful is it to watch somebody code?
- burke, on 10/12/2007, -1/+1"Why am I going to use C++ to make a TEXT based RPG?"
...because C++ rocks and its not as complicated and overkill-ish as you seem to think. Assembly, however, is overkill. Good thing this isn't assembly. - haackers, on 10/12/2007, -0/+0I should have explained myself better. What i meant by c++ is an overkill, it could have easily been done in c or q-basic. c++ can use basically the same commands as c, soo i guess it's not an overkill at all then.
- manfesto, on 11/08/2007, -1/+1I used to do text-based RPGs in BASIC in middle school.
Man, did they suck. - Niixonz, on 05/10/2008, -0/+0Everyone Try This One Its Made with the same editor and its really good :D http://PimpsAndThugs.Com/register.php?ref=944
- burke, on 10/12/2007, -0/+0Too bad he used a particularly odd version of .wmv. Linux won't play it, and neither will my Xbox. Oh well, I guess I can use vmware :(
As for his coding style, both styles are accepted
//BSD style:
void foo()
{
statement;
}
//K&R Style
void foo() {
statement;
}
//GNU Style
void foo()
{
statement;
}
At least I think that's how GNU style works. I prefer BSD; it seems easier to read. - CaptSnuffy, on 10/12/2007, -0/+0If he's just doing it on-the-fly in c++ of course there will be errors. The best way to learn how to program is try to program something, then try to fix your massive amounts of errors. Once your program doesn't have errors make a harder program so you'll get more errors and have to fix them. Once you get good at debugging you're ready. 95% of what makes you good at programming is being good at debugging, IMO.
- RWVolkl158, on 10/12/2007, -0/+0/
Have to second python there, it would be very clean for something like this and does have very good "text parsing abilities", and string manipulation stuff in general. - philomatic, on 02/08/2009, -0/+0Java is way better in terms of OOness
- amazonium, on 10/12/2007, -0/+0Cool ! It is a good idea to use a movie.
By the way, I am also making text base RPG by using C.
This is another type RPG("CUIRPG for Dragon Warrior 3").
But there is language barrier. (ToT)
Please download, if you like.
http://www.geocities.jp/amazonium011001/index.html - datruth29, on 10/12/2007, -0/+0Hey, did anybody notice at about 17:25 in the first video he seems to take a 15 minute brake, and three new windows pop up in the task bar? Seems he was either playing Quake for a bit, or was looking up some documentation.
- inactive, on 10/12/2007, -0/+0How do I add a readline?? I am a n00b which is why I'm watching his videos.. ?????????????????
- Crowforge, on 10/12/2007, -0/+0What Codec does this use?
- biter, on 10/12/2007, -0/+0"This tutorial is NOT compiling for me.. Im using VS 2005 Express trial and it's not working.. I even tried that Hello World tutorial from SeanGreasely website... NO LUCK. The window starts to load then quickly shuts off.."
Your program shuts off immediately because you're in IDE. Try adding a ReadLine line at the end of your main(). - biter, on 10/12/2007, -0/+0Console::ReadLine();
- inactive, on 10/12/2007, -0/+0?????????
#include
using namespace std;
void main(void)
{
cout - JesseJimz, on 10/10/2007, -0/+0I second your comment, biter. To those asking questions like "why build a text-based RPG..." clearly are missing the point. No matter if it's text-based or using the latest graphical API, the fundamentals of programming remain consistent. The majority of us understand this is a lesson on programming in C++ through the example of an RPG. I commend Mark for his effort and contribution to us all.
- inactive, on 10/12/2007, -0/+0AHHH... Digg messed it all up.. forget it.. I give up..
- inactive, on 10/12/2007, -0/+0This tutorial is NOT compiling for me.. Im using VS 2005 Express trial and it's not working.. I even tried that Hello World tutorial from SeanGreasely website... NO LUCK. The window starts to load then quickly shuts off..
- burke, on 10/12/2007, -0/+0^^^ well that didn't work. Leading spaces are ignored, I guess.
- zagi1, on 10/12/2007, -0/+0Check out this game, its a better RPG with Multiplayer support, good practice with socket programming in Linux.
http://cs.senecac.on.ca/~selmys/subjects/unx511-051/lab04.html
change the XXX.XXX.XXX.XXX on line 79 and 80 in c8.cpp to IP address and a Port number - biter, on 10/12/2007, -0/+0I don't understand why anyone would complain about this. I'm looking to use this as an introduction for anyone who wants to learn C++ since it's the only real programming language.
- donjuanica, on 10/12/2007, -0/+0This is how WoW started...
- probablycorey, on 10/12/2007, -0/+0mpeters13: If you haven't written a program in a dynamic language (Python, Ruby, Perl, Scheme, Lisp... whatever) go out and do that. Then you will realize why using C++ for this is overkill. C++ is great for highly optimized graphics libraries, or low level operations you need to run quickly. But when you are scripting a game most people and companies will use a dynamic/scripting language.
- RWVolkl158, on 10/12/2007, -0/+0And also his coding "style", i.e.
if(){
}
__________
if()
{
} - inactive, on 10/12/2007, -0/+0@project2501
To block HTML I guess... - project2501, on 10/12/2007, -0/+0@myself.
Err. Why does digg ***** up comments? - inactive, on 10/12/2007, -2/+1Why am I going to use C++ to make a TEXT based RPG? Talk about overkill.
- RandomInsano, on 10/12/2007, -1/+0Everyone has to learn to program some time. I started on a Commodore64 in BASIC. I'll tell you, 7 years later with 2 years of a computer science degree under my belt, I wish I'd started in C++
- burke, on 10/12/2007, -2/+1Blast! Super-proprietary video codecs!
- jamsea, on 10/12/2007, -1/+0Nice :P I'll watch the videos later. Watch this site go down once it hits the front page...
- Phlegyas, on 10/12/2007, -1/+0Dugg! Just because any programmer who is willing to have a camera "over his shoulder" as he codes is cool. You can watch some of the thought processes going on.
- MikeWeller, on 10/12/2007, -1/+0There's nothing wrong with text based RPGs, or using C++ to make them. I haven't watched the vids, but I'll digg just to get it some attention.
-
Show 51 - 71 of 71 discussions



What is Digg?
Browsing Digg on your phone just got easier with our enhancements to the