How to Program in C# - Classes (E07)

  Рет қаралды 409,433

Brackeys

Brackeys

3 жыл бұрын

In this final video we'll learn how to use classes in C#!
► Get the 2D Mega Pack: assetstore.unity.com/packages...
►Check out the Asset Stores big reboot sale: assetstore.unity.com/?on_sale...
● Brackeys Forum: forum.brackeys.com/
····················································································
❤️ Donate: www.paypal.com/donate/?hosted...
► Join Discord: / discord
● Website: brackeys.com/
········································­­·······································­·­····
► All content by Brackeys is 100% free. We believe that education should be available for everyone.
❤️ Donate: www.paypal.com/donate/?hosted...
········································­­·······································­·­····
♪ "ES_Dress Code_Black - oomiee" by Epidemic Sound

Пікірлер: 1 100
@Danidev
@Danidev 3 жыл бұрын
Classy video!
@PioTroXx
@PioTroXx 3 жыл бұрын
Hi Dani
@equation1321
@equation1321 3 жыл бұрын
Indeed
@saucywatermelon5024
@saucywatermelon5024 3 жыл бұрын
When’s the next devlog
@anix7533
@anix7533 3 жыл бұрын
Dani when will we get our unity's particles system tutorial
@keetheehee4206
@keetheehee4206 3 жыл бұрын
hello how are you im under the water
@pontiffsullyvan
@pontiffsullyvan 3 жыл бұрын
Well, welcome to not only the last installment of this series but rather, the last tutorial video we will ever see on this channel. It's been fun!
@RANDOMPIENINJA
@RANDOMPIENINJA 3 жыл бұрын
yeah
@ahmedthegreat3973
@ahmedthegreat3973 3 жыл бұрын
Yeah
@beatyeah8840
@beatyeah8840 3 жыл бұрын
yeah
@samuelallen6494
@samuelallen6494 3 жыл бұрын
haey
@link-kun5974
@link-kun5974 3 жыл бұрын
Yeah
@Feyhua
@Feyhua 3 жыл бұрын
He was planning this series, it was clear. Hhe wanted to leave us with one a final set of coding tutorials for the next generation to come. a legend.
@sambhav6385
@sambhav6385 3 жыл бұрын
Legit
@1ninozinho
@1ninozinho 3 жыл бұрын
he didnt finish it though
@strongforce8466
@strongforce8466 3 жыл бұрын
@@1ninozinho That's what I was wondering, can it be finished already ?? I only watched a few but I been meaning to get into it, due to the complexity it feels like c# could need many more videos to cover but then again I don't know that much about it, if he didn't finish it though then it would feel almost heartbreaking !! he can't leave us like that ? "crying smiley"
@lachy4565
@lachy4565 3 жыл бұрын
@StrongForce I get what you mean but I'm pretty sure this is just meant to be a beginners course. It teaches you the basics of c#, and from there you can pretty much learn whatever you want. You only need these few skills to actually start coding real programs that you can you and if you need or want to learn anything else you can just search up the documentation.
@Bigbadpoppaj
@Bigbadpoppaj 3 жыл бұрын
@@lachy4565 True but you notice he still does the subscribe and click the notification bell for the "Next one" bit... Nah something definitely happened that changed situations. Its his business but I press X to doubt that this was planned
@dazzlepuff8670
@dazzlepuff8670 3 жыл бұрын
Little did we know this would be his last tutorial. :( Edit: HE'S BACK
@redrumchopz5388
@redrumchopz5388 3 жыл бұрын
Depression 100
@astickman2486
@astickman2486 3 жыл бұрын
@@redrumchopz5388 For me it's depression infinite
@redrumchopz5388
@redrumchopz5388 3 жыл бұрын
stonks what’s my current stonk at at the moment
@astickman2486
@astickman2486 3 жыл бұрын
@@redrumchopz5388 -1000
@redrumchopz5388
@redrumchopz5388 3 жыл бұрын
@@astickman2486 oh no what do I do
@levibruijn1300
@levibruijn1300 3 жыл бұрын
Who’s watching this after Brackeys goodbye video? This video will go into history as Brackeys last tutorial.. this really hurts
@yafispidergaming
@yafispidergaming 3 жыл бұрын
Not really but so much hurt
@zuzanahroudova9028
@zuzanahroudova9028 3 жыл бұрын
I watched before and after too.
@theangryhat7113
@theangryhat7113 3 жыл бұрын
ikr
@Icequake.
@Icequake. Ай бұрын
Guess what
@ignorable5877
@ignorable5877 27 күн бұрын
@@Icequake. LOL
@X360DevNerd
@X360DevNerd 3 жыл бұрын
"stay tuned for the new feature" me: ok 😭
@hugimi3807
@hugimi3807 3 жыл бұрын
rip Unity Jesus
@TK-sr2hz
@TK-sr2hz 3 жыл бұрын
@Grammar nazi cause he's been busy teaching us everything. I don't know what you're butt hurt about but this community ain't the place to load off your bull.
@sundarakrishnann8242
@sundarakrishnann8242 3 жыл бұрын
At 18:29 , B=Best R=Recommended A=And C=Cool/Clever K=Kind/Key E=Educational Y=KZbinr S= Smiling Thank you so much for making game development easy Brackeys!
@gngamestudio
@gngamestudio 3 жыл бұрын
i am new to game developing , i was watching dani and brackeys for a hole month then i made my very first game play.google.com/store/apps/details?id=com.ganiglaystudio.Reflexcolorswitch Please try it and give me your feedback :)
@abrarahmed-qh4qo
@abrarahmed-qh4qo 3 жыл бұрын
Hi I need suggestions.i want to become 2 d game maker for Android and pc I am learning blender , Photoshop, illustrator,hand drawing, audicity and video editing. My question: Do I need to learn c# language. I have to learn it complete . Or just basic? 2) what other things I need to learn. I have completed my intermediate education. Now I am not doing any study. I am learning skill through online resources and course . I need your important advice.it really helped me . Best regards Student
@abrarahmed-qh4qo
@abrarahmed-qh4qo 3 жыл бұрын
I think you mis understand my comments. I want to learn c# only for 2d game . I want know what I need to learn in c# language? I don't need to learn complete language for 2d game
@mcdoubleg5211
@mcdoubleg5211 3 жыл бұрын
@@gngamestudio nice game
@filipgaming1233
@filipgaming1233 2 жыл бұрын
@@abrarahmed-qh4qo learn.unity.com is a great resource to learn unity and c#.
@MosephX
@MosephX 3 жыл бұрын
It's a real shame that this is the last installment of the series, I was really hoping that we could get a video about working with API's in C# as there are not many good tutorials available. Great series though!
@Ali-gh7rj
@Ali-gh7rj 3 жыл бұрын
I wish he did c# asp.net web development videos
@TheSpacecraftX
@TheSpacecraftX 3 жыл бұрын
@@Ali-gh7rj Why would you want to turn a game dev channel into a web dev channel. Go watch one of the thousand other C# ASP.NET channel. Corey Schafer is a good guy to go to if that's what you're looking for.
@aletzr
@aletzr 3 жыл бұрын
@@TheSpacecraftX Exactly.
@CorylusDonuts
@CorylusDonuts 3 жыл бұрын
@@Ali-gh7rj Here some web dev video that I really recommend kzbin.info/www/bejne/moLaZapvjMyLmbM
@readm5414
@readm5414 3 жыл бұрын
What is an API?
@Station1643
@Station1643 3 жыл бұрын
Console.WriteLine("F");
@pulanjuri1
@pulanjuri1 3 жыл бұрын
Console.WriteLine("Its been a good time")
@notanenglishperson9865
@notanenglishperson9865 3 жыл бұрын
@Mehmet Kara debuger: you just what??
@daydreamteam1366
@daydreamteam1366 3 жыл бұрын
Debug.Log("We Will Miss You");
@mkwraith8625
@mkwraith8625 3 жыл бұрын
@@daydreamteam1366 a fellow unity user I see
@daydreamteam1366
@daydreamteam1366 3 жыл бұрын
@@mkwraith8625 Debug.Log("indeed");
@goldenpiece7087
@goldenpiece7087 3 жыл бұрын
😥 Brackeys is my most favourite youtube channel ever. I was going to take photo with you in brackeys studio some day. Good bye man! You really hit my heart as a teacher.
@calebfurley3784
@calebfurley3784 Жыл бұрын
I remember learning about classes when I was 14 and "abstract" was a nice way of saying it.. Come back 8 years later and it didn't even click it just makes since. So glad I could finally understand the most important part of C# and OOP.
@tamajthelegend4232
@tamajthelegend4232 Жыл бұрын
im 14
@Atty304
@Atty304 Жыл бұрын
Me too.
@crockiller67
@crockiller67 3 жыл бұрын
Brackeys, you may never see this but I want to thank you from the bottom of my heart, your amazing content has helped me take the first step into this huge world which I've been too nervous to try for almost 5 years, with this simple series and the hundreds of other tutorials you have I'm sure I can make great progress and have a blast while doing it. It was a big shock to see that you've left, but I wish you the best for all your future endeavours!
@ramywahib7698
@ramywahib7698 3 жыл бұрын
You forgot to show us the best class. this one
@epiccreeper102
@epiccreeper102 3 жыл бұрын
You started this series at the exact time I needed it. Thank you so much!!
@haseebwt
@haseebwt 3 жыл бұрын
Same :D
@robertli3600
@robertli3600 3 жыл бұрын
IKR! Perfect timing! :)
@gngamestudio
@gngamestudio 3 жыл бұрын
i am new to game developing , i was watching dani and brackeys for a hole month then i made my very first game play.google.com/store/apps/details?id=com.ganiglaystudio.Reflexcolorswitch Please try it and give me your feedback :)
@StaticVoidOpen
@StaticVoidOpen 3 жыл бұрын
@@gngamestudio error 404. lol
@oozly9291
@oozly9291 3 жыл бұрын
Robert Li about that
@Biterosoficial
@Biterosoficial 3 жыл бұрын
You probably won't read this comment but I feel good hoping it happens. Thanks man, less than a week ago I got to know your channel and I feel that I have learned a lot with this mini-course. I was "studying" to be a police officer and I quit, I decided to stop wasting my time and build my future from now on, studying what I really like: Programming. In July I will enroll in the "Bachelor of Systems" career here in Argentina, so at this moment I am learning as much as possible on my own. Your channel is very valuable. Thank you very much again.
@MC-ew7sc
@MC-ew7sc 3 жыл бұрын
I'm gonna miss you dude.
@Chocoloverdude
@Chocoloverdude 2 жыл бұрын
Amazing... Even if this isn't actually Unity yet, he is already teaching us on how to make a game... Thank you Brackeys
@LordTrashcanRulez
@LordTrashcanRulez Ай бұрын
Programming is the most fundamental aspect of game development, you can make a game with terrible art skills but if you don't know how to code you're cooked
@foreignsasquatch8421
@foreignsasquatch8421 3 жыл бұрын
Brackeys : stories will be told of this day Me : Please live and tell them yourself
@kochev6708
@kochev6708 3 жыл бұрын
Thanks for everything Brackeys. This channel was a miracle and will always be a miracle.
@Tvtig
@Tvtig 3 жыл бұрын
Great series man, you’re doing a good thing for the community.
@gngamestudio
@gngamestudio 3 жыл бұрын
i am new to game developing , i was watching dani and brackeys for a home month then i made my very first game kani-master.itch.io/reflex-color-switch Please try it and give me your feedback :)
@4ether607
@4ether607 3 жыл бұрын
@@gngamestudio the link gives out an error
@Vabloath
@Vabloath 3 жыл бұрын
Goodbye Brackeys! Thank you for all the things you teached us.
@sneggulf
@sneggulf 3 жыл бұрын
Thank you for this series. I'm merely 15 years old and this has given me the best introduction I could ask for. Thank you. Edit: I MADE A FUNCTIONING CALCULATOR
@donyajohnson9637
@donyajohnson9637 Жыл бұрын
How?
@sneggulf
@sneggulf Жыл бұрын
​@@donyajohnson9637 It's been a year and there are multiple tutorials other places on youtube
@DANNYSMITH-zz5yt
@DANNYSMITH-zz5yt 8 ай бұрын
i am 14 but i made a better one
@AlanZucconi
@AlanZucconi 3 жыл бұрын
Thank you for making this! 🤩 I'll share it with my students! They've been enjoying the series!
@gngamestudio
@gngamestudio 3 жыл бұрын
i am new to game developing , i was watching dani and brackeys for a home month then i made my very first game kani-master.itch.io/reflex-color-switch Please try it and give me your feedback :)
@ahmedthegreat3973
@ahmedthegreat3973 3 жыл бұрын
The Last Tutorial Done By Brackeys :(
@zanniia7279
@zanniia7279 3 жыл бұрын
Holy cow I just started this series a week ago and was worried that it would take a while for this video. Perfect timing for the final part!!
@themeek9072
@themeek9072 Жыл бұрын
Brackeys, Thank you for starting my journey into coding.
@salahqamachi2084
@salahqamachi2084 3 жыл бұрын
only if I knew this was the final video....
@twentysixjazz
@twentysixjazz 3 жыл бұрын
Months passed and I can't still believe this is the last tutorial. Broke my heart
@sosbarnabas6522
@sosbarnabas6522 3 жыл бұрын
Finished the 6th one yesterday, perfect timing! Thank you!😄
@calebsipos5560
@calebsipos5560 Жыл бұрын
Thank you SO MUCH for making this playlist! I got a job where I had 14 days to become self-sufficient in both SQL Server and C#. There's no way in hell I would have been able to do it without these videos being clear enough to be understood AND entertaining enough to be engaging and attention-holding. Thank you so much for your time and labor on KZbin ❤😭
@pogodikoje1665
@pogodikoje1665 Жыл бұрын
Brother, I have to say thank you for your effort and commitment! Ur doing such a great job explaining everything in such a calm and natural way. I just found out about you and your videos and its helping me a lot in my programming studying. Every tutorial I watch, somehow leads to your tutorial and in the end I get the point only after listening you explaining everything. Thank you so much for your teaching!
@norescresa4349
@norescresa4349 2 жыл бұрын
I just wanna say, this one video helped me understand the concept of classes more than any other video. It's also taught me what my computer science teacher couldn't teach me in months, in 20 minutes. It was straight to the point but still very thorough I'm very sad to hear that you're quitting brackeys but very excited for you to find a new future for yourself! We will miss you and good luck with your future endeavors.
@captanaduck
@captanaduck 3 жыл бұрын
he left us a last gift before leaving 😭
@Amoul24
@Amoul24 3 жыл бұрын
This was my first brackeys tutorial that I have watched though I have viewed his work and seen so many people admire and watch him over the last couple of weeks getting started with my own game dev and somehow even though I have watched 1 vid I feel sad about him leaving, idk it just feels bad.
@fransiskus138
@fransiskus138 Жыл бұрын
Thanks so much for this tutorial. I know Java, JS, PHP and Python, and C# gave me Java memories, they are so similar. This videos are by far the best C# explanation I've seen on KZbin. Now it's time to move to Unity tutorials so I can accomplish many goals I have!
@Pref4n
@Pref4n 2 жыл бұрын
Thank you for this video series. From the first video to now you have helped my confidence in diving into the game dev stuff, even if I am a bit older. I went from being a bit scared of the coding, to being very excited to keep learning how to program what I want to happen. I hope I can continue to improve, but again thank you for these videos.
@ahmedthegreat3973
@ahmedthegreat3973 3 жыл бұрын
Ending Should Be "Thats Pretty Much It For This Video And This Series And This Channel"
@nicememe6832
@nicememe6832 3 жыл бұрын
Damn I wished this series was gonna continue on to some of the more advanced topics of c# like Tasks, Events, Async and Await, Delegates etc. But it was still really amazing was able to recount on my c# knowledge and was always waiting for them challenges at the end. Good job man.
@ransomm4838
@ransomm4838 2 жыл бұрын
hey ik ur comment is a year old but do you know where i should continue learning c#?
@wdkaza
@wdkaza Жыл бұрын
@@ransomm4838 hey ik your comment is a year old too but i have same question can you please tell me where should i continue learing?
@squarerootof2
@squarerootof2 2 ай бұрын
@@wdkaza hey ik your comment is almost a year old too but i have same questions. Can you please tell me where I can order a good burger and fries in Italy?
@sebzanardo
@sebzanardo 3 жыл бұрын
Hey Brackeys, Just wanted to thank you for releasing high quality free educational content for C# and unity. You have taught me everything I know about C# and Unity and your lessons explain complex topics so well. Thanks for making game development help so accessable to so many people : D
@AethernaLuxen
@AethernaLuxen 3 жыл бұрын
Been developing for years and this is the first video that explains classes the best
@theneoncactus2743
@theneoncactus2743 3 жыл бұрын
*Your Jedi training has been complete.*
@RANDOMPIENINJA
@RANDOMPIENINJA 3 жыл бұрын
I can't believe he left :/
@animal2837
@animal2837 Жыл бұрын
Thank you for this playlist, It has been super helpful and has taught me a hell lot! You are the only channel that actually taught me stuff super clearly compared to other teaching channels.
@Mark98T
@Mark98T 3 жыл бұрын
Thank you for the videos! Just finished watching all episodes. Really help a lot at learning C#. Episode based tutorial really great at making me stay focused on the series rather than very long video tutorial that hard to keep track on. Your presentation and jokes really help bring up the fun in the video.
@profzthecounterstrik
@profzthecounterstrik 3 жыл бұрын
Thanks for everything brackeys :"'
@testa6121
@testa6121 3 жыл бұрын
"Last Episode" ........ *Unless*
@JaggyBoi1699
@JaggyBoi1699 3 жыл бұрын
looooool
@readm5414
@readm5414 3 жыл бұрын
Last episode Everyone disliked that
@AmphibiansAreCool
@AmphibiansAreCool 3 жыл бұрын
Barkeys saw this and was like "yeah, this is the last episode"
@notlatif6214
@notlatif6214 3 жыл бұрын
Did you just shut down Brackeys lol
@Station1643
@Station1643 3 жыл бұрын
Well this aged well...
@RowanStaghorn
@RowanStaghorn 28 күн бұрын
That was a masterstroke using an rpg class to teqch about classes! That will 100% stay in my head.
@kwipxd
@kwipxd 2 жыл бұрын
Thank you so much for everything Brackeys, you are the only reason I'm still pursuing coding and gamedev and I appreciate it all so much! Its been fun learning with you and I'm just glad I found you before I gave up
@RayManAn
@RayManAn 3 жыл бұрын
When you realize he has been planning to stop youtube a long time ago and made this tutorial as a last one.
@jaivig339
@jaivig339 3 жыл бұрын
R I P brackeys we will miss you :')
@Khorvalar
@Khorvalar 2 жыл бұрын
Hi Brackeys! I just wanted to say thank you for the excellent tutorial videos, I just discovered your channel in 2022 and even though you are no longer posting videos, your channel has still helped me out a lot!
@rickjr426
@rickjr426 5 ай бұрын
Dude you are awesome, still super helpful 3 years later!!
@abeautifulwasteoftime766
@abeautifulwasteoftime766 3 жыл бұрын
Does anybody have any recommendations for tutorials or classes to go to after this, I want to keep learning!! And also, I'd really like to say thank you Brackeys, you have given me this initial set of skills during my introduction to the world of programming and I've enjoyed every second of it, so, thank you!!
@equation1321
@equation1321 3 жыл бұрын
Little did we know...
@yes4022
@yes4022 2 жыл бұрын
Brackeys, hello and thank you so much for posting your series - which the production quality goes beyond many pro courses available today. I know you probably won't see this but you have inspired me and many others to become a great developer and inspired me to stop procrastinating and create games. Thank you, -Y
@kabi19
@kabi19 2 жыл бұрын
it was a really detailed, great and useful tutorial ! i'm new here and i'm really sad to see that it's the last tutorial, but life goes on and new projects come up ! thanks to you i've been able to create a simple interactive story, i hope and believe it's the beginning of a big journey for me :) so thanks a lot Brackeys. and for the people watching this video, don't give up programing if that's really what you want in life, no matter who you are, where you from and how old you are ! big up to Brackeys and good luck to you all !
@mrfabi5943
@mrfabi5943 3 жыл бұрын
Who else just loves this series?
@samzou6255
@samzou6255 3 жыл бұрын
wait what i thought you just stopped youtube edit: wtf this was uploaded 5 days ago but i just got it in notifications, thanks youtube, very cool
@tomekcz3265
@tomekcz3265 3 жыл бұрын
watch his latest video lmao
@samzou6255
@samzou6255 3 жыл бұрын
@@tomekcz3265 i did, is there something i missed?
@ripdoxyyy
@ripdoxyyy 2 жыл бұрын
Shoutout to anyone that made it through the playlist! Lets gooooo!
@BLACKOPS1499
@BLACKOPS1499 Жыл бұрын
IF YOU SEE THIS PLEASE make more programming videos, we miss you
@kappdev
@kappdev 3 жыл бұрын
Brackeys: You made it to the 8th C# programming course The undertitles: sEIzUrE pRogRaMMinG cOuRse
@thehuman6646
@thehuman6646 3 жыл бұрын
XD i only knew that after reading the comments
@TheAzizurRahman
@TheAzizurRahman 3 жыл бұрын
SAD HES LEAVIN NOW
@kieranrutherford4818
@kieranrutherford4818 3 жыл бұрын
Hello Brackeys, I know you do not post videos anymore but I wanted to thank you for all of the great videos you have made. I have gotten back into programming, and just finished this mini series, and these videos have really helped me get the gist of C#. Thank you :)
@KavYT
@KavYT 3 жыл бұрын
just bought a Udemy course and the series really helped in giving me a much better understanding of C#! thANK YOU KING 👑
@nebzla
@nebzla 2 жыл бұрын
"And i will see you in the next video". Little did we know
@ziece1
@ziece1 3 жыл бұрын
what the teacher teaches you : cats the test : WIZARD
@Oxmond
@Oxmond 3 жыл бұрын
What a beautiful video on one of our favorite topics. Classes are the heart of Object-oriented programming. We miss you Brackeys 🧡🧡🧡🧡🧡
@joshsweig6656
@joshsweig6656 2 жыл бұрын
Perfectly tackled classes and constructors in the same video. Very well made!
@kermitkikker8121
@kermitkikker8121 2 жыл бұрын
Anyone else also still learning using this course in 2021?
@mrtanaka475
@mrtanaka475 2 жыл бұрын
Yeah, I've learned a lot from him
@GnuSnu
@GnuSnu 2 жыл бұрын
Yep
@sundarakrishnann8242
@sundarakrishnann8242 3 жыл бұрын
The class Brackeys got over abruptly with the video on classes... but hope the class is used again :/
@buhpoi8085
@buhpoi8085 3 жыл бұрын
Thanks for this great tutorial series! I've been following it with one of my friends and we've been having a lot of fun with programming!
@watermelon3894
@watermelon3894 Ай бұрын
Thank you, you really taught me some good things about C#. Your C# tutorials are really helpful for me. You're awesome guys!
@n1gh1f1re
@n1gh1f1re 3 жыл бұрын
If your looking at the comments... your a legend!!
@TheThursty100
@TheThursty100 3 жыл бұрын
What about my a legend?
@n1gh1f1re
@n1gh1f1re 3 жыл бұрын
@@TheThursty100 your a legend to
@TheThursty100
@TheThursty100 3 жыл бұрын
@@n1gh1f1re my a legend to what?
@browse7288
@browse7288 3 жыл бұрын
You're*
@n1gh1f1re
@n1gh1f1re 3 жыл бұрын
@@browse7288 😄
@coderjax6759
@coderjax6759 3 жыл бұрын
"Awesome"
@imzary
@imzary 3 жыл бұрын
fun fact : this is the last tutorial in all brackeys channel, so i hope this viddeo will still work & all brackeys tutorials for the next 5 to 10 years for all the good young, & new game devs. from 4 months later, Thanks Brackeys, we hope you are having a nice time as a Community.
@TheREALLofiat
@TheREALLofiat 7 ай бұрын
I've been trying to understand classes for a while and this tutorial has helped me finally figure it out! Thank you Brakeys, and goodbye.
@miliuskairys6595
@miliuskairys6595 3 жыл бұрын
now this is the last tutorial video :(
@bsvenss2
@bsvenss2 3 жыл бұрын
1:52 No patreon link in the description? 😳
@bsvenss2
@bsvenss2 3 жыл бұрын
Well, after the very, very LAST video I can understand it. 🥺😞
@rukna3775
@rukna3775 3 жыл бұрын
He said as he will not continue making any vids, he shut down the patron. But all of his other websites will be active. He is also active in his discord.
@LemonGuy1
@LemonGuy1 2 жыл бұрын
Ahh. I just finished this c# tutorial series for game devolopment. But I am so sad cause this is the last tutorial on the channel. We missed you brackeys. Thanks for all things
@MiScusi69
@MiScusi69 2 жыл бұрын
This is the best series I've ever followed. Now I've got a new skill!
@KyuVulpes
@KyuVulpes 3 жыл бұрын
I know this is pretty petty, but, a bit of the styling you said is wrong. Underscores are to denote either a field (a class/object variable) is to not be touched outside the property, or that it is only meant to be seen either internally or private. You should never use underscores for field names because that will be confusing. I mean, look at the main method header or anytime you create an object using a parametered constructor. None of them use that underscore for any of the parameters. Also, Pascal Casing for a "field" would tell me it is not a static field, but a property. Which, too, is seen throughout libraries and other C# programs. Onto another issue I have with this. You have made fields public, this is a major no-no for classes. The only time a public field is acceptable is when it is a struct, not a class. The reason is that structs are a ValueType, this means that they reside on the stack when used inside a method, and in the heap when used outside the method. And whenever you pass a ValueType, you are making a copy of it. With a class, it is pass by reference. Classes only live in the heap and cannot live in the stack. Which means that no matter what, access to them is going to be slow since you have to go outside the stack (which is a linear region of memory) into the heap (which is not arranged in any way). If anyone who sees this wants to know how to choose between a struct (ValueType) and a class (ReferenceType), check out this StackOverflow answer (stackoverflow.com/a/1951243/9116918).
@phoxsty
@phoxsty 3 жыл бұрын
I agree with the first paragraph you wrote, especially the part where he says "it is standard practice to always capitalize the first letter in a static variable". But in the second paragraph, there are some more subjective parts. Using public variables in a class is not all bad. While yes it might be slower it is still easier and you have to remember this is a beginner's course. There is optimization that can be done for sure but teaching that to someone who does not even know what a class is would just overwhelm them with information and it's better to let them use this "worse" way for now and then teaching them another way later.
@menyus777
@menyus777 3 жыл бұрын
Then how would you add a value type to a class, if not via a field?
@phoxsty
@phoxsty 3 жыл бұрын
@@menyus777 That's the whole point. You don't. ValueType would have to be a Struct instead.
@menyus777
@menyus777 3 жыл бұрын
@@phoxsty Sounds kinda stupid a class should not contain value types? O.o
@marc-antoinegirard2178
@marc-antoinegirard2178 3 жыл бұрын
​@@menyus777 It's because it is stupid. There are 3 basic rules to use a struct. 1: It should represent a single value (Unity, for instance, uses struct for Vector3, because it represents ONE coordinate, and for many other optimization reason). 2: It should be immutable. 3: It should not be boxed and unboxed frequently. Unless you are excessively certain that a struct is the best option for your application, and I mean it (like that you know what is a readonly struct, you understand clearly the "in" parameter modifier, that you understand boxing and unboxing, that the specific needs you have require a struct like in DTO pattern, that you understand the importance of passing a struct by ref, that you care immensely about optimization (like in ECS, which would mean you understand what is a cache miss and what the cache line is), you should not even use a struct. If you are a beginner, you should know what a struct is, how to use it, but not declare one because "it's optimal". A slight messup in its usage and it becomes slower than a class. So to conclude, value types in a class is as normal as clouds in the sky. If you pass a class as a parameter, you're only passing its reference (an int sized pointer), nothing else is passed, so chill.
@kokakolasquad8803
@kokakolasquad8803 3 жыл бұрын
Why is the thumbnail red It scared me
@discode1753
@discode1753 3 жыл бұрын
Cuz it's the last vid
@ahmetemiruludag
@ahmetemiruludag 3 жыл бұрын
E02 was even scarier It was light mode
@oozly9291
@oozly9291 3 жыл бұрын
Coding ID it truly was :(
@rigersuliu3965
@rigersuliu3965 3 жыл бұрын
These tutorial series have been great! Thanks a lot for the help!😁
@mistergiea9758
@mistergiea9758 3 жыл бұрын
This was an amazing tutorial-series. Done in a fun way and engaging! Keep up the good work whatever it is!
@rabotkx2792
@rabotkx2792 3 жыл бұрын
Me watching tutorial: Damn this looks so easy, ill make magic out of this! Me actually writes code: Omg castspell doesn't work pls help
@gngamestudio
@gngamestudio 3 жыл бұрын
i am new to game developing , i was watching dani and brackeys for a home month then i made my very first game kani-master.itch.io/reflex-color-switch Please try it and give me your feedback
@4ether607
@4ether607 3 жыл бұрын
@@gngamestudio man the link does work ._.
@gngamestudio
@gngamestudio 3 жыл бұрын
@@4ether607 i m very sorry , The game has many errors and I am now busy fixing it. You can download it from the same link when I complete it
@4ether607
@4ether607 3 жыл бұрын
@@gngamestudio did you delete your vids?
@gngamestudio
@gngamestudio 3 жыл бұрын
@@4ether607 ah yes ! I will upload a new version of the game within two days, Thanks for your interest!
@happyman6701
@happyman6701 3 жыл бұрын
I've been waiting (but how do I use this info in unity?)
@gower1973
@gower1973 3 жыл бұрын
Noodley Boi Everytime you write script in Unity, you are more or less writing a class but it inherits from mono behaviour, if you wanted to write your own class you just wouldn’t inherit from mono behaviour.
@happyman6701
@happyman6701 3 жыл бұрын
@@gower1973 that does help me but I just can't make the connection between text and a 2d or 3d landscape, with movement and stuff
@johnes2337
@johnes2337 3 жыл бұрын
You're supposed to write code that modifies the properties of a GameObject's components.
@happyman6701
@happyman6701 3 жыл бұрын
@@johnes2337 k thanks now I just need to figure out which components to refrence
@johnes2337
@johnes2337 3 жыл бұрын
@@happyman6701 you can play around with the components in the Unity Editor and you can also find out what each property means in the Unity documentation.
@jtsnon
@jtsnon 8 ай бұрын
Completed this tutorial 3 years later. Thank you.
@doggyyesyes6650
@doggyyesyes6650 3 жыл бұрын
Console.WriteLine("F in the chat");
@ordnehp1790
@ordnehp1790 3 жыл бұрын
F
@sh0unakgg274
@sh0unakgg274 3 жыл бұрын
Console.Writeline("F");
@ghouldrago360
@ghouldrago360 3 жыл бұрын
int i = 0; while (i == 0); { Console.WriteLine("F"); }
@J_E_N_T
@J_E_N_T 3 жыл бұрын
Please don't go :(
@_georgesh
@_georgesh 3 жыл бұрын
Great video! Thorough without being boring
@friedkid2225
@friedkid2225 3 жыл бұрын
Thanks for the awesome tutorial. I recommend this to anyone learning c#.
@thescientificboy4602
@thescientificboy4602 3 жыл бұрын
Fun fact the word long is shorter than short
@svampfredde
@svampfredde 3 жыл бұрын
8?
@davisbesses4362
@davisbesses4362 Ай бұрын
thank you, i watched the whole series because unlick most codign tutorials, it was easy to follow along and fun to do the challenges at the end
@g5haco
@g5haco 3 жыл бұрын
Final series thank you brackeys thank you for everything
@WUILabs
@WUILabs Ай бұрын
Please continue this to higher lessons, it is very useful to us. Pls 😊
@highattn
@highattn 3 жыл бұрын
Thanks for these awesome videos Brackeys, it really help me getting started with programming and hopefully also making games. I already wanted to start with the old series but couldn't stick to it, so the start of this new series was the perfect moment to start on what I was putting off.
@gngamestudio
@gngamestudio 3 жыл бұрын
i am new to game developing , i was watching dani and brackeys for a home month then i made my very first game kani-master.itch.io/reflex-color-switch Please try it and give me your feedback :)
@objectivefly734
@objectivefly734 2 жыл бұрын
Thank for these tutorials. Really helped me and im pretty sure it helped everyone else.
@bonelearn2980
@bonelearn2980 Жыл бұрын
Thank you for making the concepts so crisp and simple You made my struggle easier with programming thanks again
@tylerdurden7659
@tylerdurden7659 3 жыл бұрын
Best HomeWork assignement EVER! Thanks Brackeys!!!!!!!!!!!!!!!