VB.net Game of Snake

preview_player
Показать описание
and

To find the KEY PRESS have a look at these screen shots:
Рекомендации по теме
Комментарии
Автор

"Hope you can hear me"
Actually, my ears are destroyed.

xyon
Автор

Thankyou so much it helped me with my school works

johncrw
Автор

The case 'Press a' is inside the "Key Press" event for the the "Form Events". To get to this sub you need to select from the Drop down "Form Events" on the left, and the then "Key Press" on the drop down on the right. To answer the second question, I use this to teach grade 10 high school, 15 year olds.

CoachBoughen
Автор

Great job. its working well. but how can i add the score and start button

candoradavid
Автор

I get the error message end of statement expected


select case e.KeyChar
*Case "a" left_right_mover = -10*
end select
end sub

killerbee
Автор

The score is actually pretty simple.

Whenever the head of the Snake hits mouse you need to increment the score.

So, something like:

Score.text += 10

This would increase the score by 10. And you would place it in the Collission withmouse sub.

CoachBoughen
Автор

How would you add multiple body parts to the snake? Right now I'm working on it and I can only move one piece.

rsisthecoolest
Автор

It is in the drop down window on the RIGHT. The drop down window on the LEFT needs to set to FORM EVENTS, I just added a link in the Video Description, it has some screen shots. In the screen shots I use the click event. So in this case you will need to select Key Press not Click


CoachBoughen
Автор

Yo, can you put the code on the website? I think it would be a bit easier to follow along.

cheepdude
Автор

what part of the video wherr you put a code on scoreboard ?

arvinbanzuela
Автор

Hi, Im still teaching myself VB. Why do you write -1 at 4:07 ? Thanks

MrLiamfa
Автор

we need more rolling and coding videos.*dabs*

steamwhale
Автор

How to make it so the snake goes out of the other side of the border when hitting the other side?

igalko
Автор

Is it possible to have an image for the mouse?

SuperMarlysaa
Автор

Great vid Corbin
By the way im trying to do this in Vb 6.0 and when i try to create the head (im using shapes instead of pictureboxes) gives me Error "91", im working with "with" too and the error is in this line
With Vibora(tamano)
.height = 300
when i play it, its says  Object variable or With block variable not set (Error 91)
even though i've created an array (i declared it as shape) . Please help me!! i'm trying to do this game for a long time.

charlieCmC
Автор

I'm not sure if I wanna try this. It's quite complicated.

XTheDarknessOfLightX
Автор

Hi I've been trying to follow this tutorial to incorporate it into a school assignment and it was working up until the keypress. My knowledge with code is really basic, is there something I'm missing?

AllU
Автор

i havent try it but my VB version is 2008's. will the codes work on my VB?

Winniethepoohfan
Автор

Can you Give us Tutorial of the SCORE CODE?

ashuraboy
Автор

where is the keypress form event... driving me crazy

ccbaseball