how to make a mafia text based game on c++ or visual basic 6.0

    • Thread Starter

    hey well i am really intrested in making a tetx based game in c++ or visual basic 6.0 but dont have a clue how to make it does anyone know how to do and it will be great of u to tell me how to make it step by step like a example will be nice or something thanx

    Something like 'collosal caves'?
    Guess you could find the source code for some existing examples and try working out how other people have approached it or just plough in and start coding... Probably start with a simplified design using a matrix to represent the rooms in a level and create a parser to accept user commands and some code to describe room contents in english.
    I think it'll probably be quite a bit of work to come up with something really enjoyable to play, but good luck.

    If you're looking to make a text-adventure sort of game, it may be worth investigating the Z-machine interpretor and similar.

    A text based video game - wow! I had fun making those in the 80s in BASIC on my VIC-20. Uhhh, enough reminiscing.

    Anyway, I remember using a system called TADS to create a text adventure in the early 90s and, would you believe, it is still going :cool: It's based on a C++/Javascript-esqe object-oriented language.

    Why don't you make an online text-based game? Use PHP for the backend?
Write a reply… Reply
Submit reply


Thanks for posting! You just need to create an account in order to submit the post
  1. this can't be left blank
    that username has been taken, please choose another Forgotten your password?
  2. this can't be left blank
    this email is already registered. Forgotten your password?
  3. this can't be left blank

    6 characters or longer with both numbers and letters is safer

  4. this can't be left empty
    your full birthday is required
  1. Oops, you need to agree to our Ts&Cs to register
  2. Slide to join now Processing…

Updated: March 25, 2012
TSR Support Team

We have a brilliant team of more than 60 Support Team members looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

Should you wait six months before applying for a graduate job?
Useful resources

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Quick reply
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.