How to make Snake in Unity (Complete Tutorial) ๐Ÿ๐ŸŽ - playproduction.de

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

354 Comments

  1. feel like ti is ticking way too fast for lol. but hey, as long as you do what you love- the sky is the limit! also just a little advice to

  2. TNice tutorials is going in my helpful tutorials playlist.

  3. Social Justice Warrior O had the sa problem. click GMS and inside the Program push app and Analog 1 TE. Hope tNice tutorials helps โœŒ

  4. I don't get it, I don't see Nice tutorialm make a lody in tNice tutorials video?

  5. Tks for ur msg i though i was alone โคโค

  6. 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.

  7. 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!

  8. 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;

    }

  9. Corel paintshop pro 2022 please ๏‘

  10. I hope you get what you're looking for!

  11. "Well well well, look who's co crawling back" ~ five stringed spanish guitar

  12. When it come to quality content this guy never dis

  13. The truth is that the unknown scares all of us, but we just have to practice so we can get well with the software.

  14. For once, the software is actually really useful

  15. 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?

  16. 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

  17. I dะพwnloaded everything is okay

  18. there is a probleme they say the scrip is missing but its not why? thx.

  19. Cannot implicitly convert type 'string' to 'bool' … how can help me in this sh*t
    plse

  20. Thank you very much for this tutorial! It was super easy to understand and very helpful! ๐Ÿ˜€

  21. Can someone tell me how I can make a score and a highscore?

  22. Best! Thanks Very Much for your tutorials!

  23. i love your tutorial

    plzzzzzzzzzzzzzzzzzzzzzzzz make a video on

    how to create an 8-ball pool game in unity

  24. 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

  25. I'll post a link to my final product later.

Leave a Reply

Your email address will not be published.