Special (non) Keyboard Characters

This is a discussion on Special (non) Keyboard Characters within the C++ Programming forums, part of the General Programming Boards category; I'm making a Pac Man style of game (at least those are my intentions as of now) in console mode, ...

  1. #1
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050

    Special (non) Keyboard Characters

    I'm making a Pac Man style of game (at least those are my intentions as of now) in console mode, and I'm trying to find special characters to use. The plain, basic characters of

    Code:
    X
    *
    $
    o
    etc...
    just aren't cutting it. I know of only one way to do a special character, and I know there are more by screwing up badly on applications before. Here is how I create my special character:

    Code:
    char b;
    
    b = SetConsoleTextAttribute (GetStdHandle(STD_OUTPUT_HANDLE), 6 | FOREGROUND_INTENSITY);
    
    cout << b;
    This outputs a yellow smiley face onto the screen. To change the color of the smiley face, simply change the number of 6 to whatever number-to-color representation you want.

    Please post some of the ways you know how to get a special character or else my pac man game is going to be bla!

    Btw, just to let everyone know, my game is going to have a random map editor so that means hours of pac man fun for everybody!

  2. #2
    Registered User Liam Battle's Avatar
    Join Date
    Jan 2002
    Posts
    114
    thats jokes man a pac man editor,
    anyhow just use the extended ascii table.. at

    www.asciitable.com


    there are some kewl stuff there...
    if not make ur own small bit maps
    LB0: * Life once school is done
    LB1: N <- WakeUp;
    LB2: N <- C++_Code;
    LB3: N >= Tired : N <- Sleep;
    LB4: JMP*-3;

  3. #3
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    Ooops, that was supposed to read "a random map generator". No kidding, who would want a random map editor for pac man lol?

    Typically most pac man games have predertimened maps so you don't get as much reply value. But with my game there will be many many maps to play, which will create more replayabilty.

    EDIT: Dammit I forgot to include this part, thanks for the link.
    Last edited by TechWins; 05-01-2002 at 01:07 AM.

  4. #4
    Registered User Liam Battle's Avatar
    Join Date
    Jan 2002
    Posts
    114
    no prob man.. any other probs with source code or something post away
    LB0: * Life once school is done
    LB1: N <- WakeUp;
    LB2: N <- C++_Code;
    LB3: N >= Tired : N <- Sleep;
    LB4: JMP*-3;

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Detecting keyboard and mouse in linux
    By sameer.nalwade in forum C Programming
    Replies: 3
    Last Post: 11-22-2008, 04:24 AM
  2. Keyboard port using other that a keyboard
    By antoinelac in forum C++ Programming
    Replies: 4
    Last Post: 06-12-2008, 03:46 PM
  3. Convert string of characters to integers
    By Digital_20 in forum C++ Programming
    Replies: 2
    Last Post: 04-02-2008, 10:40 PM
  4. Special Characters
    By mikeman118 in forum Windows Programming
    Replies: 18
    Last Post: 12-09-2007, 12:49 PM
  5. ascii characters video displaying on tv screen
    By deian in forum C Programming
    Replies: 6
    Last Post: 10-12-2004, 10:46 PM

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