-
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
-
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 .
-
ok ill try that out. thanks