Results 1 to 4 of 4

Thread: Snake in VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    Reading, Berkshire, UK
    Posts
    2

    Post

    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

  2. #2
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Post

    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.


  3. #3
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670

    Post

    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]



  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    Reading, Berkshire, UK
    Posts
    2

    Post

    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!

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