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
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!
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
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 👍
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)
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 ;)
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
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 :)
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?
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?
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".
@@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
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 :)
@@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
@@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.
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
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
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
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.
@@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
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 ???
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.
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);
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.
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
Thanks a lot for sharing!
I have many issues with private void OnCollisionEnter2D(Collision2D collision), help please
@@fabriziomunoz963 good question, maybe post some videos?
Hi! I've made the game but I want to add a life counter How can I do it? Thank you for you tutorial!
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!
Just in time for Donkey Kong December
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
This is crazy, thank you for putting the effort to put this together!
@DurVids, yes, exactly! Thank you @Zigurous!
This channel is very underrated.
This is so awesome! I've always wanted to learn how to do this in Unity!
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 👍
So excited to make this!
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)
can I get the source code please? 🥲🥲
Cant wait to make this :)
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 ;)
Thanks for the great vids Adam!
OMG Thank you so much! You helped me get some extra credit in my coding class! Looking forward to more tutorials.
Just wanted to say thank you for all the hard work you put into these videos amazing channel, hope you continue doing this.
Great Vid man! Its so helpful. Hope you keep uploading from this series
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.
Your channel deserves more subs. Thanks!
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
Thanks for the tutorials.
ily zigurous💛💛💛
Awesome Tutorials!!!
Love these videos and can only imagine the amount of work for each video.
I found that bridge constructor Walking Dead and portal bridge constructor are sou fun to play can u make tutorial how to make it?
great tutorial
thank you zigrous for this
amazing tutorial thank you please keep making more! also maybe cover some ground on sound to add sound to this game? just an idear.
Thank you for the tutorial!
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 :)
mario the next plsssss !
Can u make tutorial how to make game like Offline Dino Rex Chrome Endless Runner Game?
great tutorial thanks man
well done, great video for people to see how a 'known' game works, can you do the same for godot ;)
Cool man👌
Sir can you make a series for Android games because Android games need touch control
Thanks for the lesson. Many of me are also interested in the question. What is the configuration of your PC. ?
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?
in the intro i didnt realize you werent playing the original lol (i realized once you climbed up the ladder)
👌
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
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.
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?
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".
@@Zigurous ok I will check
Thanks
@@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
Cool
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 :)
joao muito legal
Nice
Hello thanks for your tutorials , This 3-step game, can you learn all the stages?
It's a little bit buggy when a barrel hits you but really good tutorial, thank you
What kind of bugs are you running into?
@@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
@@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.
@@Zigurous no, really good effort for a tutorial, awesome work
@@Lara__ Thanks, I appreciate your support!
for me in unity even after what u did , my red arrow always faces right side only, other than that everything good
When new tutorial comming?
Hopefully soon. I have been a little busy lately unfortunately.
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
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
what should I do if Mario doesn't move even after using ( direction.y = Mathf.Max(direction.y, -1f); ) code ?
Also do you know of a way to link the score and lives to a UI?
Search on youtube, there should be plenty of tutorials for that
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
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.
@@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?
@@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
@@random_precision_software create 3D scene and change orthographic camera
can you make a match 3 game?
Make original Lode Runner. Mainly AI enemy.
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 ???
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.
Is there any way to make a game menu without messing up the level loading?
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);
@@Zigurous thanks
When you say you designed your sprites to be 16 pixels per unit, what exactly does that mean?
Adam can you send me whole unity project of game
There's a link in the description of the video: github.com/zigurous/unity-donkey-kong-tutorial
i have a problem, when the game starts, Mario falls without the platform :( and i have exactly the same code
The tutorial did not work for me. There is a black screen loop all the time
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.
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.
And I am having the same issue looks like I am not the only one.
Can you teach us how to turn it into vr
No hammers on this one?
Unfortunately not. This is a simplified version of the game so it is missing a number of mechanics.
When I did the code to move Mario, I didn't find moving speed
Did you makke it public or private?
32:46
34:00
44:08
Can anyone share the whole script
have you gotten it ??