Results 1 to 3 of 3

Thread: Border?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    216

    Border?

    Okay i know this is simple but i started making my very own snake game. It is basically finished exept i dont know how to make the food (the little dot that the snake has to eat) just show up in a certain area. What happens is that ill eat the dot and the next dot will be somewhere to the side that i cant see.

    So how do i form a border around my picture box so the snake and the dot dont go outside of it?

    thanks!
    James
    (btw im using VB.Net '02
    Quote Originally Posted by randem
    You think you are confused? Try reading what you wrote...

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Use Random Class to generate randomized number that will be used to draw (x,y) dots . Then you'll need collision detection function to detect when the snake is eating a dot . Well , a lot of calculations need to be done . Get any snake game example (I've seen a lot but for VB6) and just apply the same concept in VB.NET .

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    216
    ok ill try that out. thanks
    Quote Originally Posted by randem
    You think you are confused? Try reading what you wrote...

Posting Permissions

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



Click Here to Expand Forum to Full Width