
How to make Snake in Unity (Complete Tutorial) ๐๐
Zigurous
Views: 104124
Like: 3144
Learn to make the classic 2D arcade game Snake in Unity. Snake is the common name for a video game concept where the player maneuvers a line which grows in length, with the line itself being a primary obstacle. The concept originated in the 1976 arcade game Blockade, and the ease of implementing Snake has led to hundreds of versions for many platforms.
0:00โ – Introduction
0:50 – Project Creation
1:45โ – Scene Setup
14:17โ – Snake Movement
21:28โ – Food Placement
30:00โ – Segments & Growing
39:34โ – Game Over
46:04โ – Outro
๐ฅ๏ธ Source code and assets:
โค๏ธ Support my work on Patreon:
๐ Subscribe for more Unity tutorials:
๐ฌ Join our Discord community:
โญ Download my Unity assets:
ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยญยญยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยญยทยญยทยทยทยท
โบ Learn more about my work:
โบ Follow for news and updates:
#unity #unitytutorial #gamedev #unity3d #unity2d #gamedevelopment #indiegame #indiedev #madewithunity
09.01.2023
TNice tutorials is going in my helpful tutorials playlist.
Social Justice Warrior O had the sa problem. click GMS and inside the Program push app and Analog 1 TE. Hope tNice tutorials helps โ
I don't get it, I don't see Nice tutorialm make a lody in tNice tutorials video?
Tks for ur msg i though i was alone โคโค
–/ who is
MR. Loldapop
Hahaha! too brother, too.
Sa
36:07 body parts reloacation is the key of this game. I was trying to remake this game for two nights and messed up. The right solution is so simple and elegant.
good job male, thanks!
What is wrong
Thanks you so much ๏ ๏
Thanks for the tutorial! I'm just learning how to use unity and this helped a LOT! I have no game dev experience but do have a background of C and JavaScript (fairly basic understanding of JavaScript), so learning the syntax of C# is… well it feels weird haha and this tutorial helped me pick up the syntax!! Plus this is my first ever game made in unity! I got a great mobile game idea but have no idea how to implement it, so your tutorial was my first step in my process of learning unity to a point where I can make my game idea a reality!
I know that I am late. but I really need help on this one. I used the same method as you to add body segments to the snake but the body segments just have the same position as the snake's head. So rather than growing, all the prefabs just instantiate on the head. is there a way to get around this.
I am using a bit different input method than yours but that shouldn't have any effect, would it?
here is my grow snake function :-
void GrowSnake()
{
Transform segmentIncrease = Instantiate(this.bodySegment);
segmentIncrease.position = segments[^1].position;
segments.Add(segmentIncrease);
}
and here is the for loop that i am calling in the update method:-
for (int i = segments.Count – 1; i > 0; i–)
{
segments[i].position = segments[i – 1].position;
}
Excelente muy practico, 100% recomendado
Corel paintshop pro 2022 please ๏
I hope you get what you're looking for!
"Well well well, look who's co crawling back" ~ five stringed spanish guitar
Way to call out…. lol
When it come to quality content this guy never dis
The truth is that the unknown scares all of us, but we just have to practice so we can get well with the software.
For once, the software is actually really useful
i hate it. itโs like asmr
The soft of Gaia it really isnโt
Hello Zigurous! I was following your tutorial and encountered an issue here… If you eat the first food, then the second food spawns excactly adjacent to the snake head, then you take to bite the second food, you won't grow immediately and the food doesn't respawn(it just stays where it was). I presume this would be a collision problem but am not very sure. Have you encountered such a problem?
OMG, it really worked. Thank you so much!!
thanks legacy
super! cheatwas easily installed
hey just wondering how to i make the snake with teleport like when you collide with right wall you get teleported to the left side
an make the snake segments increase when I eat 2 food instead of increasing segment when I only eat one food
I dะพwnloaded everything is okay
Thank you very much! ^_^
TNice tutorials
there is a probleme they say the scrip is missing but its not why? thx.
OMG THANKS SO SO MUCH THIS HELPED!!!
worked!
Cannot implicitly convert type 'string' to 'bool' … how can help me in this sh*t
plse
Thank you very much for this tutorial! It was super easy to understand and very helpful! ๐
Can someone tell me how I can make a score and a highscore?
Dude thank you. Im grateful
such a good tutorial
OMG tysm
jak ty to kopiujesz ?
Best! Thanks Very Much for your tutorials!
The code wont work for me
i love your tutorial
plzzzzzzzzzzzzzzzzzzzzzzzz make a video on
how to create an 8-ball pool game in unity
Game Devs,I got a doubt how do you make the snake not to go reverse I mean if u r going right if you press "A" It will go left
Thank you!
Thanks that helped me very much.
I'll post a link to my final product later.
The walking doesnโt work for me the code is the same as in the tutorial but the snake doesnโt move help