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; Is there a way to change the color of the background in the text game? I know I can change ...

  1. #1
    Registered User
    Join Date
    Jun 2007
    Location
    Usa, Pa
    Posts
    39

    Text Based Game Help!

    Is there a way to change the color of the background in the text game?

    I know I can change the text color but what about the black background?

    I am building it ion a console app.

    Using C++
    Last edited by TylerMoyer; 06-25-2007 at 09:22 AM.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,659
    http://msdn2.microsoft.com/en-us/library/ms682087.aspx
    Keep reading until it starts talking about backgrounds
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Jun 2007
    Location
    Usa, Pa
    Posts
    39
    Couldn't find it. Can you possibly copy and paste it on here for me please?

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,659
    It took me all of about 20 seconds, try harder.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  5. #5
    Registered User
    Join Date
    Jun 2007
    Location
    Usa, Pa
    Posts
    39
    FillConsoleOutputAttribute = Writes a text and background color attribute combination to a specified number of consecutive cells in a screen buffer. found it.

  6. #6
    Registered User
    Join Date
    Jun 2007
    Location
    Usa, Pa
    Posts
    39
    Is there a way I can implement music in text based games?

    .midi, .ogg or .mp3?


    I doubt it but just wanting to make sure.

  7. #7
    Registered User
    Join Date
    Dec 2005
    Location
    Canada
    Posts
    267
    fmod

    OS: Windows 7, XUbuntu 11.10, Arch Linux
    IDE: CodeBlocks
    Compiler: GCC

  8. #8
    Registered User
    Join Date
    Jun 2007
    Location
    Usa, Pa
    Posts
    39
    Quote Originally Posted by h_howee View Post
    fmod
    umm.. explain please.

  9. #9
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129

  10. #10
    Registered User
    Join Date
    Jun 2007
    Location
    Usa, Pa
    Posts
    39
    https://msdn2.microsoft.com/en-us/library/ms711566.aspx


    Found it.


    I am leaving this forum, people here are not too helpful all I get is links and words, not explainations for anything, it's liek you know nothing.

  11. #11
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,659
    Well if all you ask is "Is there a way" questions, then that's all you're going to get.

    We could have just said "Yes" and left you with this.
    http://www.catb.org/~esr/faqs/smart-...ons.html#prune
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 04:39 PM
  2. Text based game
    By beene in forum Game Programming
    Replies: 10
    Last Post: 05-12-2008, 07:52 PM
  3. New Project, text game, design stage.
    By Shamino in forum Game Programming
    Replies: 9
    Last Post: 05-23-2007, 06:39 AM
  4. Saving a text game
    By Unregistered in forum C++ Programming
    Replies: 4
    Last Post: 03-27-2002, 12:33 PM
  5. Text Based Game
    By drdroid in forum C++ Programming
    Replies: 2
    Last Post: 02-18-2002, 05:21 PM

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