Making Snake in Java: Part 11 - Fixing a Self-Collision Bug

preview_player
Показать описание
In this tutorial I will fix the previously unnoticed Self-Collision bug that went unnoticed due to me accidentally deleting a line of code. But we re-add the line of code and fix the problems it causes in this tutorial! What's interesting is that before we added the end game, the bug was occurring, it just went unnoticed!

Thanks for watching!

View the source/discuss:
Рекомендации по теме
Комментарии
Автор

I've learned a lot from you, especially in vb.net and you was the one that inspired me to learn coding. Huge thanks to you for making this videos!

Hugoxl
Автор

thanks heaps brandon. long pauses were so funny!

deanthomson
Автор

this is a1 video, just mind blowing blowing ....and only mind blowing...

javedkhan-sdgp
Автор

Like HugoxI99 i also started on your vb.net tutorials at quite a young age. When your java tutorials came out i thought id give them a try. Now i'm thankful i did not do i only love programming because of you but i also want my job to be in java game development thank you so much man.

ZeinFakhreddine
Автор

Found all these snake tutorials brilliant. I learnt so much. Your a very good teacher. Thank you very much.

Tggfredcsawsdfgbhhhhu
Автор

Great videos and tons of help, thanks!

michaelhastings
Автор

BrandonioProductions, your videos are so cool an interactive that I have learnt Java. Thank you so much, you are truly a great teacher! :)

danieltrethewey
Автор

thank you very much !! i need the source code for this tutorial :)

amrelsayed
Автор

i need help!! An empty applet is shown when i run it. Can someone please help?

destxn
Автор

Please make a tutorial to run this without eclipse open so we can give the game to others to try out.

SlimPostor
Автор

Hi! i tried to make this game applet, and it worked :)
But now I want to convert/transform the code to make an desktop application. I googled what i can do to make this, but it didn't worked... 
Could someone help me, please?

oanaS
Автор

Is it possible that using a lot of this and modifying it i could make a 3-d snake game (im sure it is)

throwaway
Автор

Hi BrandonioProductions,

First off I would just like to say can you please make a video showing us how to turn this into a web applet?

Second, I would like to point out another problem caused by pressing two keys simultaneously: say you're travelling right and you press down + left right after each other within less than 100 milliseconds, the game ends when it's not supposed to.

Please fix this. Thanks!

packabsandbeer
Автор

I would like to point a problem "Bug" when the user loses the EndGameScreen shows and tells the user to press "space" to play the game again, but when the user presses escape key instead of that, the user can continue the game as if he never loses.
This thing can be fixed using an if statement in case the user presses escape key
The if statement is as follows
case KeyEvent.VK_ESCAPE :
if (!isAtEndGame)
{
isInMenu = true;

}
break;
at the end I would like to thank you a lot

saleh
Автор

I was wondering is it at all possible to export this as a desktop application e.g. runnable jar (p.s. im on a mac).

danielcharlton
Автор

Thanks for the tutorial. I was wondering how you would put a background image or change the colour of the background?

ruqayyahalibhai
visit shbcf.ru