View Poll Results: On a scale of 1 to 5, rate my game.

Voters
4. You may not vote on this poll
  • 5

    0 0%
  • 4

    0 0%
  • 3

    3 75.00%
  • 2

    0 0%
  • 1

    1 25.00%
  • I don't trust the game.

    0 0%

My Text RPG

This is a discussion on My Text RPG within the Game Programming forums, part of the General Programming Boards category; I am designing a text-based RPG. (isn't everyone?) I have attached the executable, snd i am asking for suggestions and ...

  1. #1
    Rebooted Inquirer's Avatar
    Join Date
    Apr 2002
    Posts
    281

    My Text RPG

    I am designing a text-based RPG. (isn't everyone?)
    I have attached the executable, snd i am asking for suggestions and corrections that could be made to the storyline. The rooms arent completed yet, so you return to the main menu after all of the technicalities, but i am welcoming suggestions for those too. Keep in mind that the game has a theme, mostly mideval, and it is evident when you make it through the story. Updates will be posted in this thread, so come back soon!

    ~Inquirer

    P.S. Feel free to let me know what you think of the game in more detail than the poll above, and any ideas for a name for the game.

    P.P.S. The files included are the storyline.h file and the executable.
    Attached Files Attached Files

  2. #2
    fry
    fry is offline
    Registered User fry's Avatar
    Join Date
    Mar 2002
    Posts
    128
    Hey.
    i give it a 3. There isnt much there at the moment except the few messages that make up the story... so its kinda hard to say.

    Look like it has some good potential, but from ehre it could go anywhere

  3. #3
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    it appears to have potential, but you've got some typos that I figured I'd be the first to tell you about (:

    1st screen...police
    2nd screen...correcting

    Other than that...lookin' good
    Away.

  4. #4
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    plus coffee was misspelled.

    You have a GREAT beginning. I am excited to see the actual game in action. I'm not going to vote ATM, because there isn't any real gameplay

  5. #5
    Registered User
    Join Date
    Jun 2002
    Posts
    267
    Hey Inquirer, do yourself a favor and disable the console cursor and the mouse cursor Don't know how?

    PHP Code:
    #include <windows.h>
    ...

    SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), ENABLE_LINE_INPUT); // Disables the mouse cursor

    ...
    void setcursor(int visibleDWORD size)
    {
        if(
    size == 0)
        {
            
    size 20;
        }
        
    HANDLE hConsole GetStdHandle(STD_OUTPUT_HANDLE);
        
    CONSOLE_CURSOR_INFO lpCursor;    
        
    lpCursor.bVisible visible;
        
    lpCursor.dwSize size;
        
    SetConsoleCursorInfo(hConsole,&lpCursor);
    }
    ...

    setcursor(00); // Disables the console cursor 

  6. #6
    Rebooted Inquirer's Avatar
    Join Date
    Apr 2002
    Posts
    281
    I am currently drawing the map fpr the game, and it will take quite awhile to program once i finish. (i doubt that i will release the map, as it would give a swrious advantage to the person with it) I currently have a 15 x 15 map, and most of it is occupied by rooms, Is that too much? because there are some places that could be easily erased. Let me know!

    ~Inquirer

    P.S. The whole game will take place in a castle, and you begin in the central courtyard. I am still in need of ideas for the game name, and for complications and items for the rooms. I also know about the ytpos, i just haven't gotten to that yet. I am currently working on finishing the game engine.

  7. #7
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608
    it looks nice, my excalibur rpg was a text based map moving overview game. i am going to havta reqrite the engine tho. I may not finish it. is this your first game project? its turning out nice
    Email: Klinerr1@nc.rr.com || AIM: MisterSako || MSN: sakotheinsane@hotmail.com

    -the shroom has spoken

  8. #8
    Rebooted Inquirer's Avatar
    Join Date
    Apr 2002
    Posts
    281

    Smile

    Thanks for the compliment. However, i have hit a rather large problem. I originally had a menu (like the main menu) for the gaming engine, however it got too large to show on one screen. It also takes quite a bit of programming to change when i have tons of case statements and printf()s and numbers that go with the commands, and letter shortcuts like 'q' for '0' etc. So i have set up a command line, and i can't figure ouit how to get it to work. I have cut it down to one command, and it still won't work.

    Here is the current code. Let me know what i am doing wrong.

    PHP Code:
    void gameMenu(){
        
    // Main gaming engine, the loop that runs the whole game
        
    charcommand;
        
    cout << ":";
        
    cin >> command;
        switch (
    command){
            case 
    "quit":
            case 
    "q":
            case 
    "Quit":
            case 
    "Q":
                
    mainMenu();
                break;
        }


  9. #9
    Registered User
    Join Date
    Jun 2002
    Posts
    267
    I quote Visual C++ 6....

    *ahem*

    switch expression of type 'char *' is illegal

  10. #10
    Rebooted Inquirer's Avatar
    Join Date
    Apr 2002
    Posts
    281
    are you serious?
    dang. What do i have to do then? make them single character commands?

  11. #11
    Registered User
    Join Date
    Jun 2002
    Posts
    267
    Yea I'm serious... think about it for a minute, what's a pointer? A memory address basically, so... you're saying, "If memory address X == 'quit'". Which doesn't make any sense does it?

  12. #12
    Rebooted Inquirer's Avatar
    Join Date
    Apr 2002
    Posts
    281
    thanks, now i see why that doesn't work. Is there any other way to do it? like using the &command or **command or something?

  13. #13
    Registered User
    Join Date
    Jun 2002
    Posts
    267
    You could do this...
    PHP Code:
    #include <iostream>

    #define BUFF 20

    void mainMenu();
    void gameMenu();

    int main()
    {
        
    gameMenu();
        return 
    0;
    }

    void gameMenu()
    {
        
    // Main gaming engine, the loop that runs the whole game
        
    char command[BUFF];
    command:
        
    std::cout << "Command: ";
        
    std::cin >> command;
        if (
    command[0] != 'q' && command != "quit")
        {
            
    std::cout << "Not an option!\n";
            goto 
    command;
        }
        
    mainMenu();
    }

    void mainMenu()
    {
        
    std::cout << "mainMenu()";

    And it's not case-sensitive... so, don't be verbose

  14. #14
    Rebooted Inquirer's Avatar
    Join Date
    Apr 2002
    Posts
    281
    what's not case sensitive, and what is the "command:" thing all about?

    PHP Code:
        char command[BUFF];
    command////////////////////////<< this command: thing
        
    std::cout << "Command: "
    And it's not case-sensitive... so, don't be verbose

  15. #15
    Registered User
    Join Date
    Jun 2002
    Posts
    267
    That's a jump-point for the goto loop... er, I probably shouldn't have used that... and also I noticed the example I gave you is flawed, if you see [phpif (command[0] != 'q' && command != "quit")[/php] This would mean I could type 'quick' and it would work... SO... look at this example, and see if it helps you understand what's going on (I replaced the goto loop)
    PHP Code:
    #include <iostream>

    #define BUFF 20

    void mainMenu();
    void gameMenu();

    int main()
    {
        
    gameMenu();
        return 
    0;
    }

    void gameMenu()
    {
        
    // Main gaming engine, the loop that runs the whole game
        
    char command[BUFF];
        for (;;)
        {
            
    std::cout << "Command: ";
            
    std::cin >> command;
            if (
    command[0] == 'q' && command[1] == '\0')
                
    mainMenu();
            if (
    command[0] == 'Q' && command[1] == '\0')
                
    mainMenu();        
            
    std::cout << "Not an option!\n";
        }    
    }

    void mainMenu()
    {
        
    std::cout << "mainMenu()";
        exit(
    0);

    Nevermind what I said about case-sensitive

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. text rpg help
    By xxwerdxx in forum Game Programming
    Replies: 1
    Last Post: 11-26-2005, 08:16 PM
  2. Replies: 3
    Last Post: 05-25-2005, 02:50 PM
  3. struct question
    By caduardo21 in forum Windows Programming
    Replies: 5
    Last Post: 01-31-2005, 04:49 PM
  4. mygets
    By Dave_Sinkula in forum C Programming
    Replies: 6
    Last Post: 03-23-2003, 07:23 PM
  5. Check out My Text Rpg Game
    By knight543 in forum C++ Programming
    Replies: 3
    Last Post: 05-17-2002, 11:40 PM

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