How to make Dino Game in Unity (Complete Tutorial) 🦖🌵

Learn to make the 2D Google Chrome "Dinosaur Game" in Unity. The Dinosaur Game is a browser game developed by Google and built into the Google Chrome web browser. The player guides a pixelated Tyrannosaurus rex across a side-scrolling landscape, avoiding obstacles to achieve a higher score. The game was created by members of the Chrome UX team in 2014.
0:00 - Intro
0:39 - Project Creation
1:23 - Importing Sprites
5:30 - Scene Setup
7:50 - Jumping
21:27 - Game Speed
28:15 - Ground / Side-scrolling
36:39 - Animated Sprites
46:00 - Prefabs
54:21 - Spawner
1:08:23 - Obstacles
1:15:40 - Game Over
1:20:30 - UI
1:28:17 - Scoring
1:37:51 - Hiscores
🖥️ Source code and assets: github.com/zigurous/unity-din...
👍 Subscribe for more Unity tutorials: kzread.info?sub...
💬 Join our Discord community: / discord
👑 Become a Patreon supporter: / zigurous
❤️ Support my work: www.paypal.com/donate?hosted_...
⭐ Download my Unity assets: zigurous.com/assets
········································­­·······································­·­····
► Learn more about my work: zigurous.com
► Follow for news and updates: / zigurous
#unity #unitytutorial #gamedev #unity3d #unity2d #gamedevelopment #indiegame #indiedev #madewithunity

Пікірлер: 84

  • @Zigurous
    @Zigurous Жыл бұрын

    Visit the GitHub page for the most up to date source code: github.com/zigurous/unity-dino-game-tutorial View the FAQ for answers to common questions: github.com/zigurous/unity-dino-game-tutorial/wiki

  • @fernandoivanalvaradovalsec7964

    @fernandoivanalvaradovalsec7964

    Жыл бұрын

    Me podrías ayudar porfavor para un scrip para el player, para que funcione el touch en Android

  • @nikolaytonchev6508
    @nikolaytonchev65089 ай бұрын

    Why are this channel so underrated ? I mean i watched a couple of your videos and this is literally one of the best guides I've seen so far!

  • @Marie-zh3yw
    @Marie-zh3yw4 ай бұрын

    Tutorial literally helped me so much to program something with similar mechanics. Very easy to understand and Zig was very quick to answer questions on discord. Super helpful

  • @skidez5717
    @skidez571711 ай бұрын

    You are a life saver!!! Loved the tutorial and keep up the great work!

  • @bencampbell2928
    @bencampbell2928 Жыл бұрын

    Thank you my friend this was a very fun project. Your tips are awesome and very straight forward. Great tutorial

  • @pinacolada6936
    @pinacolada6936 Жыл бұрын

    Thank you so much for the tutorial! Your code is so concise and easy to understand.

  • @axolotl6167
    @axolotl6167 Жыл бұрын

    The king has posted !

  • @pikachubolt2001
    @pikachubolt20016 ай бұрын

    Thank you for the tutorial, you saved me a lot of time! You are a life saver! The tutorial is nice and easy to follow, nothing too complicated. I subscribed to you for this! Keep up the good work and hoping for a better future for this channel and its videos!

  • @strahinja1910
    @strahinja1910 Жыл бұрын

    Great tutorial very detailed, man i just love your contets great job

  • @abhilashlr9259
    @abhilashlr9259 Жыл бұрын

    Thanks Adam. Great video.

  • @biged606
    @biged606 Жыл бұрын

    Thank you so much! Dont stop!👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻

  • @xxx-vz6hh
    @xxx-vz6hh Жыл бұрын

    Absolutely love your vids, clean, concise, and simple enough for beginners like me to follow! Keep it up!

  • @opalk420
    @opalk420 Жыл бұрын

    love your video, helped me with my seminary work

  • @lucasbats
    @lucasbats3 ай бұрын

    I finished this one too, great video!

  • @lourencodesouza8191
    @lourencodesouza8191 Жыл бұрын

    Acabei de descobri seu canal. Achei muito top! Vou acompanhar.

  • @danielr5805
    @danielr580510 ай бұрын

    This is a bit late but thank you so much for the video! really learned a lot!!

  • @elyyy.o_o
    @elyyy.o_oАй бұрын

    🙌hands down! good teacher thank u so muchhhhh!

  • @SRIRAMCHANDR
    @SRIRAMCHANDR5 ай бұрын

    Great work brother... regained interest in unity after following ur channel...if possible throw in a 3d game tutorial when u have time for it 👍👍

  • @luluckas1980
    @luluckas1980 Жыл бұрын

    thank you mate !

  • @rizkycrown2873
    @rizkycrown2873 Жыл бұрын

    thank you so much.... that's really helpful

  • @MrJeepty
    @MrJeepty Жыл бұрын

    great work!

  • @KrazyEdits
    @KrazyEdits3 ай бұрын

    loved this, ty

  • @mauricioandrescastromorale9647
    @mauricioandrescastromorale9647 Жыл бұрын

    Thanks you help me a lot, God Bless you.

  • @pianoatthirty
    @pianoatthirty Жыл бұрын

    the best f*cking unity channel on KZread. I would love to see how you tackle a Mortal Kombat/Street Fighter-like game.

  • @hhcdghjjgsdrt235
    @hhcdghjjgsdrt235 Жыл бұрын

    You are doin great

  • @GaBoyInKy
    @GaBoyInKy3 ай бұрын

    Thank you.

  • @yazanjordan3103
    @yazanjordan3103 Жыл бұрын

    thank you

  • @schellargschichta1638
    @schellargschichta1638 Жыл бұрын

    thx man

  • @explorerarupam4017
    @explorerarupam4017Ай бұрын

    Wow 😮

  • @SayaAslinyaDuaOrank
    @SayaAslinyaDuaOrank2 ай бұрын

    Thanks

  • @josephclapp1157
    @josephclapp1157 Жыл бұрын

    Just finished this video, I thought it was great! But in the chrome version you duck under the birds and they vary in height. How would I go about doing that?

  • @eddiecarbon146
    @eddiecarbon146 Жыл бұрын

    @Zigurous Great video! I have one question. Could you tell me how to make a responsible jumping like in the original game?

  • @nehruabuwarda4514
    @nehruabuwarda4514 Жыл бұрын

    👌😍👍

  • @freechain
    @freechain11 ай бұрын

    How can u sit there and just do this like its nothing. This video was very helpful and I learnt a lot, thank you. I just don't understand how you can do this like its nothing, you make it seem so easy, and it was easy to follow.

  • @Blankname17391
    @Blankname17391 Жыл бұрын

    I AM DEFINITELY GOING TO MAKE THIS!!!!!

  • @SirGor010

    @SirGor010

    Жыл бұрын

    Same

  • @hackee735
    @hackee735 Жыл бұрын

    I tried to but it put the Vector 3 in first IT was Green in the second IT was blue idk what od the problem

  • @_astrxx_7414
    @_astrxx_741411 ай бұрын

    THX so much, bro. You teach me program a game. 1+ Subscribe!

  • @mattix1023
    @mattix10233 ай бұрын

    nice video ,but if I wanted to implement a play button before the game, how could I do that?

  • @styline_0947
    @styline_0947Ай бұрын

    Does anyone else have this issue when the character touches the ground it starts colliding with the ground and starts shaking or something. Like in this part 35:38 his player isn't moving but mine is going up and down like shaking. If yes please reply on how to fix it.

  • @vj1403
    @vj14038 ай бұрын

    Can you make an additional tutorial on how to add a "Play" button? So that the game won't actually start on its own the moment it is loaded. Thank You!

  • @pinktrash2720
    @pinktrash27202 ай бұрын

    Does anybody know how can I have also have those dropdown choices like in 1:39:04?

  • @user-ey6bk8np5f
    @user-ey6bk8np5f Жыл бұрын

    why does on ground part say reference object not set to an instance

  • @GarrethandPipa
    @GarrethandPipa Жыл бұрын

    what no duck? say it isn't so!

  • @rosecherbet
    @rosecherbet Жыл бұрын

    But how do you add crouching action

  • @Tomic1000
    @Tomic10006 ай бұрын

    Does anybody know how to jump with mobile buttons instead of the spacebar

  • @TerraPlayzYT
    @TerraPlayzYT7 ай бұрын

    How come I can see the Canvas in-game???

  • @leosalazar9213
    @leosalazar9213 Жыл бұрын

  • @rishabhbhatia1847
    @rishabhbhatia1847 Жыл бұрын

    How to build and run this game on mobile?

  • @user-ey6hz4us3s
    @user-ey6hz4us3s7 ай бұрын

    When I finish the obstacle part in 1:20:00 it shows to me error that says name Player could not be found (missing using directive or an assembly reference)

  • @styline_0947

    @styline_0947

    Ай бұрын

    Same brother. Have you found a fix?

  • @rachelsroom8928
    @rachelsroom89289 ай бұрын

    What Visual Studio version did he use ?

  • @PhantomMurderer

    @PhantomMurderer

    Ай бұрын

    Visual Studio Code (You can also use Visual Studio Community 2022 or 2019)

  • @michaelmarshall9259
    @michaelmarshall9259 Жыл бұрын

    Hi Adam, dumb question but how do you reset the high score?

  • @Shivani_thakur01159

    @Shivani_thakur01159

    Жыл бұрын

    Did you find the solution???

  • @michaelmarshall9259

    @michaelmarshall9259

    Жыл бұрын

    @@Shivani_thakur01159 hey, I unfortunately I forgot about it!

  • @Shivani_thakur01159

    @Shivani_thakur01159

    Жыл бұрын

    @@michaelmarshall9259 my game is run fine but dinasour didn't die

  • @michaelmarshall9259

    @michaelmarshall9259

    Жыл бұрын

    @@Shivani_thakur01159 that’s no fun! I remember I got most of it to work!! I had to glue together multiple tutorial and come up with my own game

  • @Solo_man_gaming
    @Solo_man_gaming3 ай бұрын

    How to implement Ads to this game ??

  • @hammadloombri3659
    @hammadloombri3659 Жыл бұрын

    @adam plz reply me under brick breaker game

  • @VITGhassanAbb
    @VITGhassanAbb Жыл бұрын

    plesase make a 3d unity shooter

  • @theRealesmaniac
    @theRealesmaniac8 ай бұрын

    Amazing tutorial! But it is just me or is the spawnrate not parallel to the gamespeed? Does anyone have an idea on how to increase the spawnrate, as the game progresses? This code is too complex for me :')

  • @luismanuelvalencia9109

    @luismanuelvalencia9109

    Ай бұрын

    I might be a little late bit you may have used the object script twice

  • @random_precision_software
    @random_precision_software Жыл бұрын

    Great for beginners but we want better games like Defender , Q-Bert and other ARCADE CLASICS !!! PLEASE !

  • @meespadberg6235
    @meespadberg6235 Жыл бұрын

    At 13:04 it's says Can't add script component 'player'

  • @meespadberg6235

    @meespadberg6235

    Жыл бұрын

    Never mind fixt it

  • @strahinja1910

    @strahinja1910

    Жыл бұрын

    you probably changed the name of the script but it has to have the same name as the class

  • @tmusic1001
    @tmusic10018 ай бұрын

    I need help. How can I reach to you

  • @atte2038
    @atte2038 Жыл бұрын

    46:03

  • @explorerarupam4017
    @explorerarupam4017Ай бұрын

    It only works for me i think i tried it and it worked😅

  • @elaijoubert9028
    @elaijoubert90288 ай бұрын

    I know this is a tutorial but... Using Unity to make the dino game is like hunting rabbits with a .50 cal. A bit overkill😂

  • @_myoon
    @_myoon9 ай бұрын

    🔖

  • @_myoon

    @_myoon

    9 ай бұрын

    7:51 이미지 배치

  • @_myoon

    @_myoon

    9 ай бұрын

    9:45 강체 사용x , 캐릭터 마스킹

  • @atte2038
    @atte2038 Жыл бұрын

    50:37

  • @abdullahsatvilkar374
    @abdullahsatvilkar3746 ай бұрын

    my box collider does not work idk why the dino falls through it

  • @fionawiryadi7541

    @fionawiryadi7541

    5 ай бұрын

    same idk what to do

  • @patrickfarmer7793

    @patrickfarmer7793

    3 ай бұрын

    Same here I got the issue and been trying to figure it out

  • @patrickfarmer7793

    @patrickfarmer7793

    3 ай бұрын

    Just figured it out you need to make sure that the size for the box collider on the z axis is set 1 not the big number it makes

  • @raelee-jj7ty

    @raelee-jj7ty

    Ай бұрын

    Turn off 2d in the game view thing and edit your colliders, your spawner might not be aligned with your player :D

  • @sonomalim4530
    @sonomalim45303 күн бұрын

    🕋

  • @qilinguo5625
    @qilinguo5625 Жыл бұрын

    Hi Zigurous, your works are amazing! This is a design company looking for cooperation! Please check your Twitter message. Thank u!

  • @MET_X
    @MET_X Жыл бұрын

    27:47