Page 3 of 3 FirstFirst 123
Results 21 to 22 of 22

Thread: C++ : Functions.

  1. #21
    Join Date
    Nov 2006
    Location
    India
    Beans
    814

    Re: C++ : Functions.

    Thanks for the reply phrostbyte. I'm using the kbhit() function which is defined in the conio.h (Borland's file) for grabbing keyboard events. I can use the if(kbhit()) , but thats not the problem , the thing is i can use infinite loops and key press events for making the snake's head and continuing it. I just cant figure out a proper way (without glitches) to erase it's tail.

    Like if S is pressed , the snake starts going downwards , but how do i erase its tail which could be anywhere.

    I've put around 15 hours into figuring out the erasing tail part and im just going nuts..but i just cant seem to figure it out ( , Please i need help .
    Last edited by ashmew2; September 27th, 2009 at 08:31 PM. Reason: Typo
    The truth is always beautiful, no matter how ugly it might seem at first.

  2. #22
    Join Date
    Nov 2006
    Location
    India
    Beans
    814

    Re: C++ : Functions.

    Thanks to CptPicard on IRC for suggesting linked lists for making the snake. Thanks CptPicard , i actually now have hope that i will finish this project
    The truth is always beautiful, no matter how ugly it might seem at first.

Page 3 of 3 FirstFirst 123

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •