Text adventure game GUI

This is a discussion on Text adventure game GUI within the Game Programming forums, part of the General Programming Boards category; Since there has been a rash of recent questions about text games I decided to cook up a little framework ...

  1. #1
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596

    Text adventure game GUI

    Since there has been a rash of recent questions about text games I decided to cook up a little framework in MFC that will greatly aid in the presentation of the game. Since presentation is really not about the game this can let you concentrate on the game and story rather than the nitty gritty of displaying information.

    It is currently setup as an MFC SDI doc/view application with a splitter window. The top pane is controlled by the RespView class and the bottom view is controlled by the ParserView class.

    I'll provide basic text functions and some other utility functions but the parser code and display code will be up to the programmer.

    Here is a screenshot illustrating the two views.

    If anyone is interested in using this you must at the bare minimum have the standard edition of MSVC 2005. This will not work with Express. Please let me know if you are interested in using this and I will explain more about how to use this framework. It's actually quite simple.
    Last edited by VirtualAce; 03-12-2011 at 10:41 AM.

  2. #2
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    964
    I'd like to play around with that, I need something to get me motivated to program again, making a simple text game would be fun. The thing is I only have the express edition of VC2005..

    I have modified settings to make it work with win32 apps tho, it may work.
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

  3. #3
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    My Eyes!!!!

  4. #4
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    Shamino, Win32 is fine with express, but MFC isn't included, and it is intended that you can't use MFC with express.

  5. #5
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    Why woudl you want to use MFC anyway, all it does is bog down your performance.

    P.S. I like spending a whole day implementing a stateful menu, because when its said and done my menu runs 10 times faster than yours, and performance is important, development time is (mostly) not.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  6. #6
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Quote Originally Posted by abachler View Post
    performance is important, development time is (mostly) not.
    Funny, that's exactly the opposite of what nearly all my university courses (including the one about efficient programming), plus nearly all the things I've read on the web, say.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  7. #7
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Quote Originally Posted by CornedBee View Post
    Funny, that's exactly the opposite of what nearly all my university courses (including the one about efficient programming), plus nearly all the things I've read on the web, say.
    Industry would agree with you too.

  8. #8
    Registered User
    Join Date
    Jun 2007
    Location
    Usa, Pa
    Posts
    39
    It will work with Express Editions if you install the Platform SDK.
    IDE and Compiler - Microsoft® Visual C++® 2005 Express Edition
    Operating System - Microsoft® Windows® XP Home Edition SP2

  9. #9
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    No, it won't. The EE doesn't have MFC. Nor does the PlatformSDK.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  10. #10
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,252
    Quote Originally Posted by abachler View Post
    P.S. I like spending a whole day implementing a stateful menu, because when its said and done my menu runs 10 times faster than yours, and performance is important, development time is (mostly) not.
    Good luck getting a job with that sort of outlook on things. Actually, you might -- at some crappy code house with huge turnover where priorities are set by smoking a lot of cannabis and praying to the oracle. And you certainly won't find ME working there.

    If industry is not your bag, then write code however you feel like it. Just giving a piece of advice.

  11. #11
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    964
    Quote Originally Posted by brewbuck View Post
    -- at some crappy code house with huge turnover where priorities are set by smoking a lot of cannabis and praying to the oracle.
    Sounds like fun to be quite honest.
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

  12. #12
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    There is nothing wrong with using MFC as opposed to creating my own Win32 wrapper which would take much longer and probably would not be as good.

    But if you want to reinvent the wheel then be my guest. I was not aware that text adventure games were performance oriented.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. text based mmo type game.....
    By SONAR in forum Game Programming
    Replies: 0
    Last Post: 12-09-2008, 04:17 AM
  2. C Programming 2d Array Question
    By jeev2005 in forum C Programming
    Replies: 3
    Last Post: 04-26-2006, 03:18 PM
  3. OpenGL - 2d text in 3d game
    By mikeb1986 in forum C++ Programming
    Replies: 1
    Last Post: 03-22-2006, 12:24 PM
  4. Please help (Text Adventure Game)
    By C++angel in forum C++ Programming
    Replies: 9
    Last Post: 02-23-2006, 03:33 PM
  5. Ok, Structs, I need help I am not familiar with them
    By incognito in forum C++ Programming
    Replies: 7
    Last Post: 06-29-2002, 09:45 PM

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