Thread: Reading a .TXT map in a text game

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373

    Reading a .TXT map in a text game

    I want to have a text game map that looks like this:

    ***********
    *+++---------*
    *--------------*
    *------- &----*
    * -----#------*
    ***********

    Then have the program run like this:
    if the square the user is on is a + sign, then heal him/
    If the square is &, give him a gun,
    if the square is #, take 25 health from him.

    How could i do that.
    Last edited by Blizzarddog; 03-03-2003 at 01:01 PM.
    This war, like the next war, is a war to end war.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 2D Game project requires extra C++ programmers, new or experienced
    By drallstars in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 05-16-2007, 10:46 AM
  2. game map format preference
    By valis in forum Tech Board
    Replies: 2
    Last Post: 07-02-2006, 02:16 PM
  3. struct question
    By caduardo21 in forum Windows Programming
    Replies: 5
    Last Post: 01-31-2005, 04:49 PM
  4. reading from a text file help......
    By jodders in forum C++ Programming
    Replies: 2
    Last Post: 01-25-2005, 12:51 PM
  5. Outputting String arrays in windows
    By Xterria in forum Game Programming
    Replies: 11
    Last Post: 11-13-2001, 07:35 PM