Thread: My first game!!!!

  1. #1
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408

    Talking My first game!!!!

    Here's my little RPG text-based game.
    Please tell me what you think!

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    Not bad, but you delay too much. It slows down the game to the point where I started to lose interest. Is the source open for comment?

    -Prelude
    My best code is written with the delete key.

  3. #3
    I'm Back
    Join Date
    Dec 2001
    Posts
    556
    Nice game, but when will i get out of Karak Plains...
    -

  4. #4
    Unregistered
    Guest
    Pretty kewl, but as said the delay is too long...

  5. #5
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    Yes i know, there are too much delays....
    Oh and there is a 2% chance to find the next area.
    I think i will increase it to 3%

  6. #6
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    Okay. I doubt anyone will want to read the source code. I'm not good at programming so it became 1500 lines of code but anyways, here's an update and the src code:

  7. #7
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    arrrgh....i'm confused......sometime during the loading all the area switches just turn to 0.....

  8. #8
    Registered User bljonk's Avatar
    Join Date
    Oct 2001
    Posts
    70

    Mo' Money!

    How come i nevr have money to by anything, and i don't go elsewhere except Karak Plains
    Ünicode¬>world = 10.0£

  9. #9
    Registered User
    Join Date
    Mar 2002
    Posts
    2
    1)you need to kill monsters for gold or you can find some randomly when exploring

    2)hes having problems with the area switches

  10. #10
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    Ok here's and update that actually works for you people.
    I forgot that the defensive spell names had spaces in them.
    You can't use your old saves though.
    Oh and in case you are wondering. predato0r is sort of making the game with me. He comes with too hard to program suggestions all the time.

  11. #11
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    And then i forget the update

  12. #12
    Registered User biosx's Avatar
    Join Date
    Aug 2001
    Posts
    230
    Hehe, this is a neat little game. I like the attacking alot with the colored HP bars. Those hellbirds are nasty. Anyway, I agree that some of the things are a little to slow. Mainly the menus.

    I will enjoy looking at your code. Good luck with the rest of the game.

  13. #13
    Registered User biosx's Avatar
    Join Date
    Aug 2001
    Posts
    230

    Tips for your code

    Well I glanced through your code (just a once over to get a deal how you did things). I have some tips for you:
    • Break it up into multiple source files. People hate scrolling forever to find out information about functions and what not
    • Abide by the 'One Screen' rule which basically says don't let a function be larger than a screenful of code. You should be able to see the beginning and ending of a function without scrolling.
    • For the introtxt() function, instead of passing just one character, why not just pass a whole string and let the function parse out and display each letter in that cool manner? Something like this:
      Code:
      void introtxt(char *string) 
      {
         while( *string != '\0')
         {
            cout << *string++;
            Sleep(25);
         }
      }
      Changing that around will make your code a little nicer.
    • Your CHARACTER structure is pretty big. Maybe make other structures (like a SPELL structure or something?) and include those into the CHARACTER structure.
    • Comment more. Everytime you declare a variable you should have a comment next to it saying what it is used for. Same with functions, you should comment before a function and tell what it does with what arguments and what it returns, etc..


    You guys did a good job, though. You rock for including Kobolds but I can't believe you made them level 6 monsters! They are definatley level 1 or 2 monsters.

    What compiler(s) were you guys using?

    EDIT:: Oh yeah, I forgot to add. You guys should consider encrypting the save-game file. It is way to easy to cheat by just editing the file to give me 1000 gold. Just a thought, I know you aren't going to release this or anything.
    Last edited by biosx; 03-18-2002 at 01:59 PM.

  14. #14
    Registered User
    Join Date
    Mar 2002
    Posts
    2
    i cant take credit for any of the programing of it i only helped by giving him ideas on stuff to program into the game and by writing a storeyline to the game (sould apear in the next update) and we already knew about how easy it is to edit the caracter info i was haveing fun with it before

  15. #15
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    I'm using Bloodshed Dev C++.

    How should we encrypt the file then?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how do the game engine and the api interact?
    By Shadow12345 in forum Game Programming
    Replies: 9
    Last Post: 12-08-2010, 12:08 AM
  2. Open Source / Semi Open source game idea. Help needed
    By CaptainPatent in forum Projects and Job Recruitment
    Replies: 10
    Last Post: 05-16-2007, 10:44 AM
  3. game engine advice?
    By stien in forum Game Programming
    Replies: 0
    Last Post: 01-23-2007, 03:46 PM
  4. My Maze Game --- A Few Questions
    By TechWins in forum Game Programming
    Replies: 18
    Last Post: 04-24-2002, 11:00 PM