Advertisement

Text Rpg

Started by March 21, 2002 06:39 PM
31 comments, last by gamechampionx 22 years, 8 months ago
Do it all in DOS if you don''t want to do graphics and stuff
quote: Original post by Andrew Nguyen
That... is ... the... worst code I HAVE _EVER_ seen. Sorry.

LOL, where''s your implementation, then?
-----------------------------------"Is the size of project directly proportional to the amount of stupidity to be demonstrated?" -SabreMan
Advertisement
Heres MY implementation:


  #include <iostream>#include <string>#include <stdio>string direction_msg = "1- Up\n2- Down\n3- Left\n4- Right";string choice;char* msgofroom[bufferx][buffery];void takestringsfromfile(){ //insert code that puts strings // into msgofroom}int main(){ while (1) //For is a waste of space here  {  cout << msgofperson[x][y] << endl;  cout << direction_msg;  cin.getline(choice, 100);  //clipping code  //Movement code  }}that is my implementation.    
---START GEEK CODE BLOCK---GCS/M/S dpu s:+ a---- C++ UL(+) P(++) L+(+) E--- W++ N+ o K w(--) !O !M !V PS- PE+Y+ PGP+ t 5 X-- R tv+ b+ DI+ D G e* h! r-- !x ---END GEEK CODE BLOCK---
You can kind of do graphics in DOS if you really try. Check this link out. I did not do it but it is very creative.

telnet://towel.blinkenlights.nl/


-----------------------------
"There are ones that say they can and there are those who actually do."

"...u can not learn programming in a class, you have to learn it on your own."

-----------------------------"There are ones that say they can and there are those who actually do.""...u can not learn programming in a class, you have to learn it on your own."
quote: Original post by Andrew Nguyen
Heres MY implementation:
what follows amounts to rubbish

It doesn''t compile, for a number of reasons. It''s not complete either, and all the critical logic is absent.

Ergo, you suck. :D

[ GDNet Start Here | GDNet Search Tool | GDNet FAQ | MS RTFM [MSDN] | SGI STL Docs | Google! ]
Thanks to Kylotan for the idea!
OF COURSE ITS NOT GOING TO COMPILE! I was just showing how I would do the rooms stuff.
---START GEEK CODE BLOCK---GCS/M/S dpu s:+ a---- C++ UL(+) P(++) L+(+) E--- W++ N+ o K w(--) !O !M !V PS- PE+Y+ PGP+ t 5 X-- R tv+ b+ DI+ D G e* h! r-- !x ---END GEEK CODE BLOCK---
Advertisement
quote: Original post by Andrew Nguyen
OF COURSE ITS NOT GOING TO COMPILE! I was just showing how I would do the rooms stuff.


What's the point of posting unrelated code that doesn't compile?

  #include <iostream>int main(){    while("Andrew Nguyen is annoying")        std::cout << "Yo momma!" << std::endl;    return 0;}  

gamechampionx: you can do GUI with C++ using MFC, but that blows chunks. If you can, try to get hold of Borland C++ Builder because it's much simpler. Most difficult case, you can use the Windows API directly (which isn't actually that far removed from MFC ).

I would say, though, that if this is a learning exercise you could try doing it in Java. The syntax is quite similar (to an extent). Computer language skills should be transferable - once you know a language well (I mean well!) you should be able to switch to another in a week or two.

First of all, before deciding on classes, let's have a storyline

Alimonster

[edited by - Alimonster on March 25, 2002 1:16:26 PM]
Ahhh... forget I ever said anything.
---START GEEK CODE BLOCK---GCS/M/S dpu s:+ a---- C++ UL(+) P(++) L+(+) E--- W++ N+ o K w(--) !O !M !V PS- PE+Y+ PGP+ t 5 X-- R tv+ b+ DI+ D G e* h! r-- !x ---END GEEK CODE BLOCK---
what did you say??//end of sarcasam
I''ll do it in C++ (for DOS), I need to learn how to do it. There will be no grafix.

BTW, what''s std::cout?
What syntax and format should I use? Also, which header files??
Check out Drunken Brawl at http://www.angelfire.com/games6/drunken_brawl!

This topic is closed to new replies.

Advertisement