Click to See Complete Forum and Search --> : Snake in VB
Nancy Boy
Feb 14th, 2000, 07:58 PM
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
Fox
Feb 15th, 2000, 11:47 AM
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...
-
------------------
fox_mccloud@gmx.net
...
Every program can be reduced to one instruction which doesn't work.
Buzby
Feb 15th, 2000, 08:53 PM
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
BuzbyB@HotMail.Com
Nancy Boy
Feb 17th, 2000, 03:39 PM
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!
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.