Text-Based Game Help

This is a discussion on Text-Based Game Help within the Game Programming forums, part of the General Programming Boards category; Hello, I have been creating a text-based strategy game set in the Medieval era. What I have so far is ...

  1. #1
    For Narnia! Sentral's Avatar
    Join Date
    May 2005
    Location
    Narnia
    Posts
    719

    Smile Text-Based Game Help

    Hello, I have been creating a text-based strategy game set in the Medieval era. What I have so far is a menu, story, and a type of rating system. The game grants you with a certain amount of gold to buy your units with, and uses a type of rating system to score the units. Such as Strength, Defense, Damage. It incorparates the strengths and weaknesses of the units into the battles. But I am not sure if this would be the best way to do it. I am rating the defense and such on a scale of 1-10. Then I take the average of each units rating. I use this to fight the battles with. Ex. If 50 Cavalry units have an average of 7 per unit. And the 60 Pikemen have an average of 8 per unit, the pikemen would clearly win. Is this a good way of doing things?
    Videogame Memories!
    A site dedicated to keeping videogame memories alive!

    http://www.videogamememories.com/
    Share your experiences with us now!

    "We will game forever!"

  2. #2
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    That's up to you, as the person who's coding the thing. It isn't some set rule.
    Away.

  3. #3
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,479
    I am half way through a text game called Crystal of Myth, I am using DevC++ for it, as using my other compiler which is Microsoft Beta 2005 will no run as it is too updated!! lol, I get loads of silly errors such as Sleep(2000); is not defined and in DevC++ it defines it without error, strange I know..

    anyway, in this game I am using the same sort of logic as you, and it is a good logic to use, but you must make sure that you decalre all your values as int and if you are using a player name system, use string get.line() as you get the entire name.

    So far I have used 5000 lines of code and have spread it across 5 diffrent files, using the link feature to call each file when needed. Concidering I have only been learning C++ from January 05, It's not bad in my oppionin. I will post it on the game board when I finish it, but I will of course run through the whole thing first and eradicate errors and indent it a little better before I post it. Good luck in your game

  4. #4
    For Narnia! Sentral's Avatar
    Join Date
    May 2005
    Location
    Narnia
    Posts
    719
    Thanks for the support. I am currently swithing my game, to something more futuristic. I wasn't feeling the Medieval Strategy game, if you know what I mean . So I am planning on doing something more like Half-Life. It should be quite cool. It is going to startout in the console window, then I am going to move it up a notch each time. Since Half-Life is one of my inspirations, why not make a cheap replica.
    Videogame Memories!
    A site dedicated to keeping videogame memories alive!

    http://www.videogamememories.com/
    Share your experiences with us now!

    "We will game forever!"

  5. #5
    C++ Beginner
    Join Date
    Jun 2005
    Posts
    39
    is this text based game in a regular window, or in iostream dos window?

  6. #6
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    Quote Originally Posted by swgh
    I am half way through a text game called Crystal of Myth, I am using DevC++ for it, as using my other compiler which is Microsoft Beta 2005 will no run as it is too updated!! lol, I get loads of silly errors such as Sleep(2000); is not defined and in DevC++ it defines it without error, strange I know..
    If you want to use the beta of visual c++ you'll need to download the platform SDK and make sure Visual c++ is looking in the correct places for the includes and libraries. Devc++ is fine though.

  7. #7
    For Narnia! Sentral's Avatar
    Join Date
    May 2005
    Location
    Narnia
    Posts
    719
    My game is in the console window (DOS style window). I hope to eventually make it in a Win32 type window. With a scroll bar and buttons. Then eventually make it in 2D graphics.
    Videogame Memories!
    A site dedicated to keeping videogame memories alive!

    http://www.videogamememories.com/
    Share your experiences with us now!

    "We will game forever!"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Text based game
    By wipeout4wh in forum C Programming
    Replies: 12
    Last Post: 03-26-2009, 05:39 PM
  2. Text based game
    By beene in forum Game Programming
    Replies: 10
    Last Post: 05-12-2008, 08:52 PM
  3. New Project, text game, design stage.
    By Shamino in forum Game Programming
    Replies: 9
    Last Post: 05-23-2007, 07:39 AM
  4. Saving a text game
    By Unregistered in forum C++ Programming
    Replies: 4
    Last Post: 03-27-2002, 01:33 PM
  5. Text Based Game
    By drdroid in forum C++ Programming
    Replies: 2
    Last Post: 02-18-2002, 06:21 PM

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