Any input on this program

This is a discussion on Any input on this program within the C++ Programming forums, part of the General Programming Boards category; I made a small roleplaying game, and I was wondering if I could get some feedback as to how people ...

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    145

    Question Any input on this program

    I made a small roleplaying game, and I was wondering if I could get some feedback as to how people like it, and if I should continue with the project.

    http://www.angelfire.com/realm2/horizon/files.html

    The game is called Darkwood and it is a simple roleplaying game, would someone please email me at carlo4olrac@hotmail.com with ANY suggestion.

    Input is appreciated!

    Kyoto Oshiro

  2. #2
    Registered User Sekti's Avatar
    Join Date
    Feb 2002
    Posts
    163

    I liked it

    I liked it but could you release the code you did some things I wouldnt mind knowing how to do. God job man
    +++
    ++
    + Sekti
    ++
    +++

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    145

    Smile

    I am going to finish the entire game, then release the source code on my website. If there is something really specific I can just tell you how I did that, or give you a specific part of the code, but I would like to get a little further along in the production of the game before going open source.

    Thanks for the comments!


    Kyoto Oshiro
    http://www.angelfire.com/realm2/horizon/files.html
    Horizon Games

  4. #4
    Registered User Sekti's Avatar
    Join Date
    Feb 2002
    Posts
    163

    ok well

    OK these are probably stupid but how did you keep the text to stay a certain length or did you just \n it at a certain spot and how did you change the colors (I know a few ways) I just want to know what you used.
    +++
    ++
    + Sekti
    ++
    +++

  5. #5
    Registered User
    Join Date
    Feb 2002
    Posts
    145

    Talking

    All of these things are really quite simple. You were right about the text blocks, I justed used a '\n' once the sentence reached a certain length. The colors of the text uses the conio.h library. A code example is below.

    ------------------------------

    #include <iostream.h>
    #include <conio.h>

    int main()
    {
    clrscr();
    gotoxy(1,2);

    int Choice;

    cout<< "TEXT COLOR\n\n";
    cout<< "1. Red\n";
    cout<< "2. Blue\n";
    cout<< "Choice: ";
    cin>> Choice;

    while ((Choice < 1) || (Choice > 2))
    {
    cout<< "\a";
    cout<< "Choice: ";
    cin>> Choice;
    }

    if (Choice == 1)
    {
    textcolor(RED);
    textbackground(BLACK);
    clrscr();
    }

    else if (Choice == 2)
    {
    textcolor(BLUE);
    textbackground(BLACK);
    clrscr();
    }

    cout<< "The colors should have changed here.\n";
    getch();

    return(0);
    }

    ------------------------------

    Just a few things to note. The colors must always be in uppercase letters. Refer to the conio.h library to see the full list of colors, as there are some light version of most colors. After a color change you should use a clrscr(); or else the changes will not take effect until you clear the screen. The rest is just a simple menu that I threw in to show how you can let the user choose the colors.

    And that is all there is to it! Hope this helps you.

    Kyoto Oshiro
    Horizon Games

  6. #6
    I'm Back
    Join Date
    Dec 2001
    Posts
    556

    Thumbs up

    the storywork was quite good, overall a nice program

  7. #7
    Registered User
    Join Date
    Feb 2002
    Posts
    145

    Talking

    Thanks a lot for the compliments ihsir!


    Kyoto Oshiro
    Horizon Games

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Client-server system with input from separate program
    By robot-ic in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-16-2009, 02:30 PM
  2. Utter newb?: Program crashes after input
    By deductible in forum C++ Programming
    Replies: 5
    Last Post: 12-13-2008, 09:27 PM
  3. getting input from another program
    By adr in forum C++ Programming
    Replies: 6
    Last Post: 03-04-2006, 02:29 AM
  4. large program code ,please help
    By Ash1981 in forum C Programming
    Replies: 14
    Last Post: 01-30-2006, 05:16 AM
  5. Input via the serial port for a C program
    By Anthony in forum C++ Programming
    Replies: 2
    Last Post: 07-11-2005, 02:19 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21