Thread: DOS character animation

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    17

    DOS character animation

    I am writing the connect 4 game. When the player chooses a position for their marker, I would like to create a simple animation of the marker sliding into that position (as any who have played the actual game know, chips are inserted from the top and "slide down" into the first available <empty> slot). I'm thinking of drawing the grid, clearning the screen, updating the grid, drawing it again, etc., but realize that that is a sloppy way to go about it. The system(); command is what I use to clear the screen, but it flickers (as it's supposed to), and I don't like the flicker in the game. Any suggestions?
    ------------------------------------------
    Normally I'd put something clever, but that isn't the point of being here now is it?

  2. #2
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    you could just tinker with b800:0000 and have a double buffer to it... so it'd be instant... no flicker...
    hasafraggin shizigishin oppashigger...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sorting number
    By Leslie in forum C Programming
    Replies: 8
    Last Post: 05-20-2009, 04:23 AM
  2. Using a character array in a switch question.
    By bajanElf in forum C Programming
    Replies: 10
    Last Post: 11-08-2008, 08:06 AM
  3. pipe
    By smart girl in forum C Programming
    Replies: 4
    Last Post: 04-30-2006, 09:17 AM
  4. winver, winminor, winmajor can it be found from dos?
    By ronin in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 10-02-2002, 10:32 AM
  5. UNICODE and GET_STATE
    By Registered in forum C++ Programming
    Replies: 1
    Last Post: 07-15-2002, 03:23 PM