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

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024

Комментарии • 103

  • @Zigurous
    @Zigurous  2 года назад +9

    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 года назад +11

    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!

  • @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

  • @torysciacca6907
    @torysciacca6907 2 года назад +4

    Just in time for Donkey Kong December

  • @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!

  • @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 👍

  • @dogo1604
    @dogo1604 2 года назад +2

    This channel is very underrated.

  • @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 ;)

  • @TheSteveTheDragon
    @TheSteveTheDragon 2 года назад +5

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

  • @Cyberkillr
    @Cyberkillr 2 года назад +3

    Cant wait to make this :)

  • @jamesandhaz971
    @jamesandhaz971 2 года назад +2

    So excited to make this!

  • @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.

  • @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 2 месяца назад

      can I get the source code please? 🥲🥲

  • @abhilashlr9259
    @abhilashlr9259 2 года назад +2

    Thanks for the great vids Adam!

  • @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.

  • @keremakin33
    @keremakin33 2 года назад +1

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

  • @Gokun1102
    @Gokun1102 2 года назад +2

    mario the next plsssss !

  • @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

  • @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 6 месяцев назад

    great tutorial

  • @shonelifting
    @shonelifting 2 года назад +2

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

  • @jaycn4115
    @jaycn4115 2 года назад +1

    Thanks for the tutorials.

  • @byRocksterunderscore
    @byRocksterunderscore 2 года назад +2

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

  • @mattbegnoche8429
    @mattbegnoche8429 2 года назад

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

  • @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.

  • @yourkodi3945
    @yourkodi3945 2 года назад +2

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

  • @funlightfactory6031
    @funlightfactory6031 2 года назад

    Your channel deserves more subs. Thanks!

  • @OmeedNOuhadi
    @OmeedNOuhadi 2 года назад +1

    Thank you for the tutorial!

  • @lazzzy5514
    @lazzzy5514 2 года назад

    thank you zigrous for this

  • @darkdoom907
    @darkdoom907 Год назад

    ily zigurous💛💛💛

  • @RossTubes
    @RossTubes Год назад

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

  • @Shadowz.belgium
    @Shadowz.belgium Год назад +1

    👌

  • @griffinbrooks6748
    @griffinbrooks6748 2 года назад

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

  • @gokhankaptan7863
    @gokhankaptan7863 2 года назад

    great tutorial thanks man

  • @marcusmaximum2145
    @marcusmaximum2145 11 месяцев назад

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

  • @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!

  • @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?

  • @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

    • @fongaming101
      @fongaming101 2 года назад

      @@random_precision_software create 3D scene and change orthographic camera

  • @shonelifting
    @shonelifting 2 года назад +2

    When new tutorial comming?

    • @Zigurous
      @Zigurous  2 года назад +1

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

  • @biged606
    @biged606 Год назад

    Cool man👌

  • @snrdell1449
    @snrdell1449 2 года назад +1

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

  • @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 :)

  • @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

  • @duksonmitch
    @duksonmitch 6 месяцев назад

    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 :)

  • @aphroslepus9856
    @aphroslepus9856 Год назад

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

  • @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

  • @mariaparicida9734
    @mariaparicida9734 Год назад

    joao muito legal

  • @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

  • @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

  • @나이수-u5i
    @나이수-u5i Год назад

    Cool

  • @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

  • @grandbase2720
    @grandbase2720 Год назад

    Nice

  • @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

  • @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.

  • @fabriziomunoz963
    @fabriziomunoz963 2 года назад

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

  • @SkidMania
    @SkidMania 2 года назад

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

  • @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 6 месяцев назад +1

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

  • @babakmoghaddasi9460
    @babakmoghaddasi9460 2 года назад

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

  • @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.

  • @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.

  • @jayveegipal4330
    @jayveegipal4330 2 года назад +1

    can you make a match 3 game?

  • @joaocarlosp.p.6550
    @joaocarlosp.p.6550 Год назад

    Make original Lode Runner. Mainly AI enemy.

  • @Idkdabadabada
    @Idkdabadabada 2 года назад +2

    Can you teach us how to turn it into vr

  • @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?

  • @gamerasabot7756
    @gamerasabot7756 9 месяцев назад +1

    Can anyone share the whole script

  • @fallzitos
    @fallzitos Год назад

    32:46

  • @oguzhancakr-cn8rg
    @oguzhancakr-cn8rg 2 года назад

    34:00

  • @fallzitos
    @fallzitos Год назад

    44:08