   collision detect--VB
  To practice and explore with my game programming skills i made a simple snake game (the one on the cell phones where you eat the little dot and each time it gets bigger) but i ran into something i didnt know how to do: make it so there is a border around the walls so that the food does not make it outside that border. i was hoping if some of you could find an article or piece of code that would lead me in the right direction.also, it has to be in Visual Basic.net 2002   -james 
  How do you check if the snake is touching the border?You can use the same method to check if the food is touching the border, and if it is, move it somewhere else.  The nice part is that will still work if you want to put walls on the inside of the level as well as along the border.If you are asking how to store the walls to make that easy, it might make sense to make an array that represents the level.  You could make your level, say, 30 tiles by 30 tiles, and then make the corresponding array also be 30x30.  If there is a wall in one tile, put a 1 in that entry of the array - otherwise put a zero.  Then to see if a wall is at a particular spot on the screen, just look in the array.HTH ;  the same is for the snake as it is for the food. im going to try that 30x30 array though 