Thread: need an ascii lib!

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    305

    Exclamation need an ascii lib!

    I'm looking for a library that can be used to make an ASCII graphics game/AI.

  2. #2
    Registered User kitten's Avatar
    Join Date
    Aug 2001
    Posts
    109
    printf() and gotoxy() will do the ASCII graphics for you. If you need more complex keyboard input routine than getch() or you need to use mouse look for gamedev.net for libraries.
    Making error is human, but for messing things thoroughly it takes a computer

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    I need things like walls and junk.

  4. #4
    Registered User kitten's Avatar
    Join Date
    Aug 2001
    Posts
    109
    Code:
    for(char i=0; i<255; ++i)  printf("%d: %c  ", i, i);
    This prints you all the ASCII characters and the numbers representing them. So printing an ASCII character really goes

    printf("%c", 64); // this prints 'A'
    Making error is human, but for messing things thoroughly it takes a computer

  5. #5
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669

    Talking

    Wrong! printf("%c", 65); prints 'A'.
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. using VC6 link VC7 static lib error
    By George2 in forum C++ Programming
    Replies: 5
    Last Post: 06-29-2006, 10:58 PM
  2. Replies: 11
    Last Post: 03-24-2006, 11:26 AM
  3. Office access in C/C++ NOT VC++!! :)
    By skawky in forum C++ Programming
    Replies: 1
    Last Post: 05-26-2005, 01:43 PM
  4. Making a LIB file from a DEF file for a DLL
    By JMPACS in forum C++ Programming
    Replies: 0
    Last Post: 08-02-2003, 08:19 PM
  5. ascii values for keys
    By acid45 in forum C Programming
    Replies: 2
    Last Post: 05-12-2003, 07:13 AM