How to make Donkey Kong in Unity (Complete Tutorial) 🦍🍌

Поділитися
Вставка
  • Опубліковано 14 лис 2024

КОМЕНТАРІ • 103

  • @Zigurous
    @Zigurous  2 роки тому +10

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

    • @OmeedNOuhadi
      @OmeedNOuhadi 2 роки тому +1

      Thanks a lot for sharing!

    • @fabriziomunoz963
      @fabriziomunoz963 2 роки тому +1

      I have many issues with private void OnCollisionEnter2D(Collision2D collision), help please

    • @OmeedNOuhadi
      @OmeedNOuhadi 2 роки тому

      @@fabriziomunoz963 good question, maybe post some videos?

    • @darizamora
      @darizamora Рік тому

      Hi! I've made the game but I want to add a life counter How can I do it? Thank you for you tutorial!

  • @sn0man
    @sn0man 2 роки тому +13

    Best Unity tutorials I've encountered yet. I have a backlog of old games to make and your channel is perfect for the practice. I know these must be a ton of work to create, so thank you!

  • @torysciacca6907
    @torysciacca6907 2 роки тому +4

    Just in time for Donkey Kong December

  • @drradium1616
    @drradium1616 2 роки тому +12

    Best, tutorials, ever
    Thanks for all of your content, even though I haven't done all of them I know I will enjoy learning. Keep doing these arcade games and I think some good ideas for next time would be
    1. Centipede
    2. Racing games
    3. Super Street Fighter
    4. Mario (maybe)
    5. Adventure

  • @durvids474
    @durvids474 2 роки тому +9

    This is crazy, thank you for putting the effort to put this together!

    • @OmeedNOuhadi
      @OmeedNOuhadi 2 роки тому

      @DurVids, yes, exactly! Thank you @Zigurous!

  • @dogo1604
    @dogo1604 2 роки тому +2

    This channel is very underrated.

  • @TheSteveTheDragon
    @TheSteveTheDragon 2 роки тому +5

    This is so awesome! I've always wanted to learn how to do this in Unity!

  • @mrworldwide9172
    @mrworldwide9172 2 роки тому +5

    Hey Adam hope you are doing good
    Today i finished your pong tutorial
    Learned a ton
    Now I'm watching snake tutorial
    I'm willing to comeback and update the games aa i learn new stuff
    And thanks for your tutorials
    They are awesome
    I have request can you make videos on these games
    1) 2d car racing game
    2) 2d Convey game of life
    3) 2d minesweeper
    4) 2d chess
    Thanks 👍

  • @jamesandhaz971
    @jamesandhaz971 2 роки тому +2

    So excited to make this!

  • @cardsfanboy
    @cardsfanboy Рік тому +1

    I love your tutorials, the way you explain things actually makes it easy mentally to make adjustments to the original project, which is something I've struggled with in other tutorials as they felt so "rigid" in their construction. I added la text field for score and lives, along with sounds on the asteroid game (I also used a different graphic set) so even though most of the code is yours, it makes me feel that I'm still doing stuff, same with this one, adding sound, modifying the level design, and creating a random so that there is a 10% chance the barrels go down the ladder if it makes contact. Still not comfortable with background sounds right now, so haven't added that yet. (The Frogger game is next for me, going to make it a chicken though--and give a text message that answers why he crossed the road, with about 10 different texts/answers)
    Now that you added the Mario brothers game, the other styles that I would like to see is a Double Dragon type of side scroller, A Sinistar type of space fighter (Camera centered on a craft) , and of course others but then you really jump the difficulty when talking about fighting games, sport games(even simple ones) etc. What you have provided, has given me endless hours of games I can make, and not feel overwhelmed. Even games that don't fit fully into what you have, are makeable because of what you have taught. If you can do Donkey Kong, you can do Donkey Kong Jr, and Mario Brothers (the original one with two player co-op play) If you can do mario world, you can do Shinobi, Missile Command, Moon Patrol. If you can do Bomberman, you can do Dig Dug etc... (Tempest still needs a tutorial though, but there is at least one of those online)

    • @mohamedfathi5551
      @mohamedfathi5551 4 місяці тому

      can I get the source code please? 🥲🥲

  • @Cyberkillr
    @Cyberkillr 2 роки тому +3

    Cant wait to make this :)

  • @maikkaune
    @maikkaune 2 роки тому +4

    Such a funny coincedence - Today(!!!) during my dog-walk I started humming and whistling some short melodies... all of them came from Donkey Kong and especially Donkey Kong Jr.!!! And I thought about my old arcade days and memories and how simple and entertaining those games were. My second thought was "How to re-create something similar..." and booom there is a DK video. Spookie ;)

  • @abhilashlr9259
    @abhilashlr9259 2 роки тому +2

    Thanks for the great vids Adam!

  • @moderate.fortclips
    @moderate.fortclips 2 роки тому +2

    OMG Thank you so much! You helped me get some extra credit in my coding class! Looking forward to more tutorials.

  • @joshuabadgett7987
    @joshuabadgett7987 2 роки тому +3

    Just wanted to say thank you for all the hard work you put into these videos amazing channel, hope you continue doing this.

  • @keremakin33
    @keremakin33 2 роки тому +1

    Great Vid man! Its so helpful. Hope you keep uploading from this series

  • @sherminshams9647
    @sherminshams9647 2 роки тому +2

    I like your game very much and I have made two of them, continue your tutorial
    And I have a suggestion too, please make a car ranking game.

  • @funlightfactory6031
    @funlightfactory6031 2 роки тому

    Your channel deserves more subs. Thanks!

  • @schnappifx7104
    @schnappifx7104 Рік тому

    thanks for the tutorial. i think you forgot to mention that in order to see the red line in the right direction you have to set the viewport to local space but anyway very helpful tutorial. Kept short and easy to follow

  • @jaycn4115
    @jaycn4115 2 роки тому +1

    Thanks for the tutorials.

  • @darkdoom907
    @darkdoom907 Рік тому

    ily zigurous💛💛💛

  • @mattbegnoche8429
    @mattbegnoche8429 2 роки тому

    Awesome Tutorials!!!
    Love these videos and can only imagine the amount of work for each video.

  • @shonelifting
    @shonelifting 2 роки тому +2

    I found that bridge constructor Walking Dead and portal bridge constructor are sou fun to play can u make tutorial how to make it?

  • @davidvieira16
    @davidvieira16 8 місяців тому

    great tutorial

  • @lazzzy5514
    @lazzzy5514 2 роки тому

    thank you zigrous for this

  • @RossTubes
    @RossTubes 2 роки тому

    amazing tutorial thank you please keep making more! also maybe cover some ground on sound to add sound to this game? just an idear.

  • @OmeedNOuhadi
    @OmeedNOuhadi 2 роки тому +1

    Thank you for the tutorial!

  • @alisaabary5224
    @alisaabary5224 2 роки тому

    If you cannot switch the rotation arrow, there is a button toggle that can be switched between "Local" and "Global", located towards the top-left of the Unity editor. toggle it to local :)

  • @Gokun1102
    @Gokun1102 2 роки тому +2

    mario the next plsssss !

  • @shonelifting
    @shonelifting 2 роки тому +2

    Can u make tutorial how to make game like Offline Dino Rex Chrome Endless Runner Game?

  • @gokhankaptan7863
    @gokhankaptan7863 2 роки тому

    great tutorial thanks man

  • @yourkodi3945
    @yourkodi3945 2 роки тому +2

    well done, great video for people to see how a 'known' game works, can you do the same for godot ;)

  • @biged606
    @biged606 Рік тому

    Cool man👌

  • @byRocksterunderscore
    @byRocksterunderscore 2 роки тому +2

    Sir can you make a series for Android games because Android games need touch control

  • @snrdell1449
    @snrdell1449 2 роки тому +1

    Thanks for the lesson. Many of me are also interested in the question. What is the configuration of your PC. ?

  • @karlnilsson2051
    @karlnilsson2051 2 роки тому +1

    Hello, nice video. I was wondering how I would write the script if wanted to include inheritance. Another question is that if I wanted to add a board that icludes score, lives and maybe highscore how would i do that?

  • @griffinbrooks6748
    @griffinbrooks6748 2 роки тому

    in the intro i didnt realize you werent playing the original lol (i realized once you climbed up the ladder)

  • @Shadowz.belgium
    @Shadowz.belgium Рік тому +1

    👌

  • @tomasvykydal5447
    @tomasvykydal5447 2 роки тому +1

    hello zigurous i love your videos thank you so much and i have one question how can i turn of the fererences in visual studio code

    • @Zigurous
      @Zigurous  2 роки тому

      You have to disable codelens. You can search for it in the VS Code settings, or add `"editor.codeLens": false` to your settings.json fie.

  • @arunabhrakshit
    @arunabhrakshit 2 роки тому +2

    Hi Zigurous
    I really love your channel and all of the amazing tutorials you have made, it really helps beginners like me learn the fundamentals of Unity.
    I had a problem while making this game. My CheckCollision() function is not working and the boolean “grounded”. I have written the code but when I test it in the debug menu, it shows the grounded boolean but it does not update upon jumping. Can you give a solution to this problem?

    • @Zigurous
      @Zigurous  2 роки тому +2

      It might be that your platform game objects do not have the correct layer set. The code is looking for the platforms to have their layer set to "Ground".

    • @arunabhrakshit
      @arunabhrakshit 2 роки тому +3

      @@Zigurous ok I will check
      Thanks

    • @arunabhrakshit
      @arunabhrakshit 2 роки тому +2

      @@Zigurous I have checked it and it has the layer 6 Ground
      I am using visual studio 2022 and when I’m declaring the private bool grounded it says that the boolean grounded can be removed as its value is never read. I have changed it to public bool grounded and now it works

  • @나이수-u5i
    @나이수-u5i 2 роки тому

    Cool

  • @duksonmitch
    @duksonmitch 9 місяців тому

    Good tutorial! I just have one error and that is NullReferenceException: Object reference not set to an instance of an object
    Movement.OnCollisionEnter2D (UnityEngine.Collision2D collision) (at Assets/Movement.cs:158) if you can tell me how to fix it it would be awesome :)

  • @mariaparicida9734
    @mariaparicida9734 Рік тому

    joao muito legal

  • @grandbase2720
    @grandbase2720 Рік тому

    Nice

  • @babakmoghaddasi9460
    @babakmoghaddasi9460 2 роки тому

    Hello thanks for your tutorials , This 3-step game, can you learn all the stages?

  • @Lara__
    @Lara__ 2 роки тому +2

    It's a little bit buggy when a barrel hits you but really good tutorial, thank you

    • @Zigurous
      @Zigurous  2 роки тому +2

      What kind of bugs are you running into?

    • @Lara__
      @Lara__ 2 роки тому +1

      @@Zigurous there was one that a barrel squeezed me into the left corner and every other barrel behind it would move my Y position upward a little at a time until some point that I wedged out and flew up out of the screen lol

    • @Zigurous
      @Zigurous  2 роки тому +1

      @@Lara__ Oh jeez haha. When making this game I didn't really bother to do much between the interaction of the player and the barrels since you lose right away and immediately the screen goes black and reloads.

    • @Lara__
      @Lara__ 2 роки тому +1

      @@Zigurous no, really good effort for a tutorial, awesome work

    • @Zigurous
      @Zigurous  2 роки тому +2

      @@Lara__ Thanks, I appreciate your support!

  • @aphroslepus9856
    @aphroslepus9856 Рік тому

    for me in unity even after what u did , my red arrow always faces right side only, other than that everything good

  • @shonelifting
    @shonelifting 2 роки тому +2

    When new tutorial comming?

    • @Zigurous
      @Zigurous  2 роки тому +1

      Hopefully soon. I have been a little busy lately unfortunately.

  • @elizabethlewis6908
    @elizabethlewis6908 2 роки тому

    Do you recommend creating this type of game for a beginner? Im taking a game design class and never made a game before. Im wondering I this is too difficult for someone with no code experience

  • @hightechv8531
    @hightechv8531 2 роки тому

    hello great tutorial i have 1 question though is there a way to make the checCollision() function but using OnCollision2DEnter() logique ,i could detect if the player is grounded or not using it but i couldn't make it work while using ignoreCollision aswell , i know the video is a bit old but i appreciate it if you could tell me is it possible or not

  • @marcusmaximum2145
    @marcusmaximum2145 Рік тому

    what should I do if Mario doesn't move even after using ( direction.y = Mathf.Max(direction.y, -1f); ) code ?

  • @drradium1616
    @drradium1616 2 роки тому +1

    Also do you know of a way to link the score and lives to a UI?

    • @float506
      @float506 2 роки тому +1

      Search on youtube, there should be plenty of tutorials for that

  • @random_precision_software
    @random_precision_software 2 роки тому +1

    How can I get snow build up on ground for a snow ball fight game? Without shaders ..I've tried basic particles with collision but after 30 secs the frame rate bogged down to 1 fps cos of the amount on the screen

    • @Zigurous
      @Zigurous  2 роки тому +1

      Maybe try a combination of a particle effect (without collision), and then have some snow game object that slowly grows in size to make is appear as if it is building up. You have to sort of fake it unless you do it the really complex way with shaders and stuff like that.

    • @random_precision_software
      @random_precision_software 2 роки тому +1

      @@Zigurous that's an idea! But making it look good is another thing. You mean like spheres and cubes along the floor increasing in scale?

    • @random_precision_software
      @random_precision_software 2 роки тому +2

      @@Zigurous thanks for your feed back on the snow problem I had..good news is.. I've sorted it!
      World you consider recreating the old Pole position Atari game? Reason being is that I want to know how to do the 3d road in a 2D scene. If not could you give me some ideas of how to do the 3d road in 2D? Thanks

    • @foncode101
      @foncode101 2 роки тому

      @@random_precision_software create 3D scene and change orthographic camera

  • @jayveegipal4330
    @jayveegipal4330 2 роки тому +1

    can you make a match 3 game?

  • @joaocarlosp.p.6550
    @joaocarlosp.p.6550 2 роки тому

    Make original Lode Runner. Mainly AI enemy.

  • @yazanjordan3103
    @yazanjordan3103 2 роки тому +1

    i need help here please my red rotation arrow it wont turn to left when i change rotation it stay on right but the platform rotate why is that did i miss somthing ???

    • @Zigurous
      @Zigurous  2 роки тому +3

      I forgot to mention in the video that you want to switch your rotation mode from Global to Local in order to visualize the rotation. There's a button near the top left of the Unity editor that you can use to switch it. It doesn't actually affect how it plays, but it helps you visualize the correct direction.

  • @drradium1616
    @drradium1616 2 роки тому +1

    Is there any way to make a game menu without messing up the level loading?

    • @Zigurous
      @Zigurous  2 роки тому +3

      Yes you can still have another scene. Let's say your scenes were this 0 - Preload, 1 - Menu, 2 - Level 1, etc
      You would need to update the code so it loads at the correct index: SceneManager.LoadScene(level + 1);

    • @drradium1616
      @drradium1616 2 роки тому +2

      @@Zigurous thanks

  • @SkidMania
    @SkidMania 2 роки тому

    When you say you designed your sprites to be 16 pixels per unit, what exactly does that mean?

  • @syedahadali4274
    @syedahadali4274 2 роки тому +2

    Adam can you send me whole unity project of game

    • @Zigurous
      @Zigurous  2 роки тому +1

      There's a link in the description of the video: github.com/zigurous/unity-donkey-kong-tutorial

  • @fabriziomunoz963
    @fabriziomunoz963 2 роки тому

    i have a problem, when the game starts, Mario falls without the platform :( and i have exactly the same code

  • @qosku
    @qosku 2 роки тому

    The tutorial did not work for me. There is a black screen loop all the time

    • @Zigurous
      @Zigurous  2 роки тому +1

      This is probably caused because you have a game manager in your level scenes. The game manager should only be in the "Preload" scene, and then it will persist upon loading new scenes because we tell it to not be destroyed.

  • @cyrusstephen329
    @cyrusstephen329 2 роки тому

    Hey @Zigurous i am facing "NullreferenceException: object reference is not set to an instance of an Object"
    How can I fix this? Please Lemme know.

    • @duksonmitch
      @duksonmitch 9 місяців тому +1

      And I am having the same issue looks like I am not the only one.

  • @Idkdabadabada
    @Idkdabadabada 2 роки тому +2

    Can you teach us how to turn it into vr

  • @random_precision_software
    @random_precision_software 2 роки тому +1

    No hammers on this one?

    • @Zigurous
      @Zigurous  2 роки тому +1

      Unfortunately not. This is a simplified version of the game so it is missing a number of mechanics.

  • @arammkrtchyan5009
    @arammkrtchyan5009 2 роки тому

    When I did the code to move Mario, I didn't find moving speed

    • @Lechteron
      @Lechteron 2 роки тому

      Did you makke it public or private?

  • @fallzitos
    @fallzitos Рік тому

    32:46

  • @oguzhancakr-cn8rg
    @oguzhancakr-cn8rg 2 роки тому

    34:00

  • @fallzitos
    @fallzitos Рік тому

    44:08

  • @gamerasabot7756
    @gamerasabot7756 11 місяців тому +1

    Can anyone share the whole script