Can anyone help me??? How can I make the "Snake" game off Nokia phones in VB. How would I start, and what would I use to draw the graphics?
Thanks in advance,
Mark
Printable View
Can anyone help me??? How can I make the "Snake" game off Nokia phones in VB. How would I start, and what would I use to draw the graphics?
Thanks in advance,
Mark
Well I think the easiest way to make *this* game is using PSet. It should be fast enough ;). For saving the positions of each pixel you can make a type and store them in an array like this:
-
Type tPosition
x as Long
y as Long
End Type
Dim Snake(100) as tPosition
-
You can also make the snake larger using the ReDim function:
-
ReDim Snake(200)
...
ReDim Snake(300)
and so on...
-
------------------
[email protected]
...
Every program can be reduced to one instruction which doesn't work.
If you want a snake game in VB take a look at the one I wrote ages ago;
http://www.mbeeton.freeserve.co.uk/pages/worms.htm
------------------
Mark "Buzby" Beeton
VB Developer
[email protected]
Thanks for the help, but I'm still a bit confused. I have only just begun VB and if anyone could send some **basic** code to show how to draw and move the snake I would be very grateful!