How to Program in Unity: State Machines Explained

Sdílet
Vložit
  • čas přidán 1. 07. 2024
  • Learn the fundamentals of programming State Machines in Unity with this new video break down!
    This tutorial explains important concepts of the State Pattern, and how to use State Machines when programming! Today we will walk through an example project to showcase the benefits of using state, the state pattern and state machines in Unity!
    This is the first episode in a new series of videos on this channel: Programming for Production. In this series, we'll take relatively complex software development topics and try to break them down in easy-to-understand way. Let's take our programming skills to the next level!
    SUPPORT THE CHANNEL:
    💛 / iheartgamedev
    iHeartGameDev Merch:
    💛 www.iheartgamedev.com
    WANT MORE?
    Interested in learning more about animating characters in Unity? Check out my growing series of tutorials:
    ✅ • Unity's Animation System
    ✦ Like the vid? Please consider Subscribing!
    bit.ly/2YdIb6j
    ✦ Missed out on the last episode?
    • How to Move Characters...
    SOCIAL:
    ✦ Discord
    / discord
    ✦ Twitter
    / iheartgamedev
    LINKS FROM THE VIDEO:
    🤖 Download Jammo for YOUR game:
    assetstore.unity.com/packages...
    ⭐ And Check Out ‪@mixandjam‬ !
    / mixandjam
    GEAR:
    Lumix G7 Camera: amzn.to/3Kks1gZ
    Epomaker GK68 Keyboard: amzn.to/3Ke87EB
    Samson C01U Pro Mic: amzn.to/33kDdtG
    LG 27" Monitor: amzn.to/3qAHFwS
    Lepow 15.6" Portable Monitor: amzn.to/3287OtL
    Logitech G604 Mouse: amzn.to/3A6jNV4
    Audio-Technica ATH-M50X Headphones: amzn.to/3tBaeMT
    X-Pen Artist 15.6 Pro Drawing Tablet: amzn.to/3FE5HLI
    Apple 15in MacBook Pro Laptop: amzn.to/3AbKdFc
    ►TIMESTAMPS:
    Intro: 0:00
    The Problem: 0:40
    What is State: 0:57
    Anything Can Have State: 1:42
    What does State do: 2:04
    What is the State Pattern: 2:38
    Bad-Implementation Apple Pseudocode: 3:08
    Making it more complex: 5:04
    Why This is bad: 5:55
    How do we use the state pattern to fix this: 6:51
    Finite State Machine Explained: 7:18
    State Machine Implementation Explained: 8:25
    Implementation Example Begins: 9:48
    Creating Current State and Instances: 11:17
    Defining Methods: 11:50
    Setting Current State and using State Methods: 13:20
    Running Update within State: 14:15
    Switching States: 14:59
    OnCollisionEnter: 16:44
    Finishing the Example State Machine: 17:03
    Finished Product and Benefits: 17:27

Komentáře • 579

  • @PopSusi
    @PopSusi Před 2 lety +199

    This was amazing, omg! I'm actually walking away from a tutorial understanding! Usually I gotta like watch a few times or somethin to get it, but the code and concepts was explained well!
    Also, you mentioning Class Inheritence a lot helped me actually understand that too. I've never been able to get it, but it makes a lil more sense to me now. Thanks man, this was awesome!

    • @baus_lngo
      @baus_lngo Před rokem

      I totally agree such a very well constructed video! amazing tutorial made my day, thank you so much :)

  • @OptimumSlinky
    @OptimumSlinky Před 2 lety +100

    What I dig about your approach here is you actually take the time to explain the why and the theory first, as opposed to just providing code for people to copy with no understanding. Great stuff.

    • @iHeartGameDev
      @iHeartGameDev  Před 2 lety +9

      Thanks T.C.! That's typically my approach in all videos. I try to go at it from the perspective of someone who knows the bare minimum of the subject (which was me a few weeks before researching for the video)

  • @ElSonk
    @ElSonk Před 2 lety +132

    I've watched nearly 10 tutorials on FSMs -- and this is the first I actually understand and can use. Thank you!

    • @iHeartGameDev
      @iHeartGameDev  Před 2 lety +6

      Heck yeah! Happy to hear!

    • @creeper20ps
      @creeper20ps Před 2 lety +3

      I agree. This video also included visuals and easy to follow states of the apple of what happens to it. If we interact with the apple or not.
      It helps with visuals, instead of just pure coding.

    • @Amkih4070
      @Amkih4070 Před 2 lety +2

      @@creeper20ps yeah

    • @zukarimoto_q
      @zukarimoto_q Před 2 lety +4

      It has been hell since CZcams removed the dislike counter

  • @sidahmedrekik432
    @sidahmedrekik432 Před 2 lety +19

    You know why this the BEST Tutorial ever ? Because basically there is a VISUAL storytelling + Explaining STEP by STEP as if the viewer has no knowledge + the THEORITCAL part explained with the Diagram + An Easy and Understandble EXAMPLE !
    You sure have all the qualities that a teacher must have !
    Good luck keep up the great work

    • @iHeartGameDev
      @iHeartGameDev  Před 2 lety +1

      Thanks so much Sid! Will try to keep up with the quality!

  • @ahmadel-baher2779
    @ahmadel-baher2779 Před 2 lety +138

    This is one of the best Unity programming tutorials I've ever seen. Great stuff and thank you for making this!

    • @iHeartGameDev
      @iHeartGameDev  Před 2 lety +6

      Thank you for such a kind compliment. Made me smile 😊

    • @abdullahalmamunramin3169
      @abdullahalmamunramin3169 Před 2 lety

      @@iHeartGameDev Hi, thank you very much for this tutorial.
      Will you please make a hierarchical finite state machine.
      It would be very helpful

    • @purplelizard0102
      @purplelizard0102 Před rokem

      this information is very helpful even for working with other game engines, too

  • @dogukangozum1351
    @dogukangozum1351 Před 2 lety +47

    Wow, that was a gamechanger. You should make a video about all design patterns like this and maybe SOLID principles too :) Anyone can understand with your ways. Thanks

    • @iHeartGameDev
      @iHeartGameDev  Před 2 lety +6

      Thank you so much for the kind words!! 🙌

  • @lakemonstergames32
    @lakemonstergames32 Před 2 lety +5

    Thank you for this wonderful tutorial! Your explanations are very clear, but I also really appreciate how you formatted the visual aids for easy side-by-side comparison, and re-iterated concepts so that they were clear.

  • @GeorgeWofford
    @GeorgeWofford Před 2 lety +1

    Really incredibly work with the video. I was having SO MUCH trouble trying to get my states to be able to reference whatever is managing the states to change it but this made it really simple to understand. These videos are 10/10 quality.

  • @flatikk
    @flatikk Před 2 lety +4

    Never would I think that a 20-minute tutorial will give me such a useful principle for developing games! This is amazing, and I love it!

  • @danicarco
    @danicarco Před 2 lety +2

    Honestly, I think this is the best tutorial about state machines! Your edition, examples and code are completely understandable at first view! Thank you very much

  • @Luciphear
    @Luciphear Před 2 lety +2

    This was absolutely fantastic. I'm trying to wrap my head around state machines more and this was a real huge help. Thanks!

  • @cleverestwoot
    @cleverestwoot Před rokem +1

    just the absolute exemplary game dev tutorial video, I came in not knowing much about states and with my notebook busy, have left with the ability to go integrate State Machines into my own game. Thank you so much

  • @money_hyde
    @money_hyde Před 10 měsíci +6

    I don’t know why I have never seen Pseudo code before, I’ve watched hundreds of tutorials. That simple demonstration made understanding the concepts 100x easier, I could actually see and understand what was written and why the State machine is beneficial. Great job and thank you!!

    • @iHeartGameDev
      @iHeartGameDev  Před 10 měsíci +1

      Thanks for watching and happy to hear you enjoyed the video structure!

  • @tinfoilhelmet4744
    @tinfoilhelmet4744 Před 2 lety +10

    I'm learning coding from CZcams (like many). I've gotten most all of the basics and had hit a roadblock as my scripts started becoming a big bag of noodles! This tutorial gave me the knowledge to solve ALL of those problems! Thank you SO much! you are an awesome teacher!

    • @iHeartGameDev
      @iHeartGameDev  Před 2 lety

      Thank you for watching and the compliment! Happy this helped!

  • @TheGrimKit
    @TheGrimKit Před 2 lety +3

    been using the unity animator as a finite state machine since I could never wrap my head around how this pattern worked. the animator makes it super messy when you have 24+ different states but surprisingly it worked... you definitely explained this pattern much better then any other tutorial I've seen. cant wait to try this out in my next game!

  • @NathanRohner
    @NathanRohner Před 2 lety +1

    I have been trying FOR MONTHS to understand state machines but no matter how hard my computer science friends tried I could never fully comprehend, or stay engaged long enough to piece together what they were saying. This tutorial however I understood first go.
    THANKYOU SO MUCH! This video was so helpful and so easy to follow along. Please keep making awesome videos like this, the effort you put into them is totally worth it!

  • @charuzu1397
    @charuzu1397 Před 2 lety +1

    Omg! Ive been trying to make a system like this on my own for months now! I never thought to make the different states into different classes😱thank you so much!

  • @thillsification
    @thillsification Před rokem

    Tried watching so many finite state machine tutorials and this was by far the most clear in explaining and implementing 👀 goat

  • @southsakonepangchannel
    @southsakonepangchannel Před rokem +1

    It really worked for me after I look and try some tutorials, yours is the one that worked. Owe you a lot.

  • @thelordcthulhu3684
    @thelordcthulhu3684 Před rokem +1

    Ive never seen such a clear, well made tutorial before in my entire life. The editing and structure of the video is perfect. Exactly what I was looking for.

  • @samwalter17
    @samwalter17 Před 2 lety +3

    I am only half way through but just paused to say, awesome tutorial dude! Really clear and well explained, thanks!

  • @__--_--_-----
    @__--_--_----- Před 2 lety +14

    Best Unity tutorials by far. Your series is the new standard which will likely be used for at least a few years.

  • @infernumex
    @infernumex Před rokem +7

    This is the most clear, concise, and practical tutorial on state machines in Unity I have seen in the last 10 years. Thank you!

  • @ash280
    @ash280 Před 2 lety +3

    Superb work man as always. This has now become my favourite CZcams channel for Unity tutorials 😎👍 keep up the great work!

  • @nizantei
    @nizantei Před 2 lety

    awesome job man, I'm a beginner searching for answers and WOW here are some answers!
    Its way beyond what I expected to find about state machines and it truly helped me understand more of this concept.
    me and my collage project sending our love!

  • @christopheradams2405
    @christopheradams2405 Před 11 měsíci +2

    This actually got State Machines through my skull! Thank you for your effort and love for this! ❤

  • @B3ito
    @B3ito Před 3 měsíci

    this is the most clear and soothing explaining i ever saw on youtube, thank you for the video

  • @shaikhabdulbasit5717
    @shaikhabdulbasit5717 Před 2 lety

    I love ur explanation so much.
    I didnt understood it completely the first time, but instead of switching to someone else, I wud again watch ur video

  • @monoe5270
    @monoe5270 Před 2 lety +1

    Very well edited and you explained everything simply but thoroughly, great tutorial!

  • @Community-Compute
    @Community-Compute Před rokem +3

    Awesome tutorial, thank you. I had used state machines before, but the tutorial I followed placed all of the logic for each state in a single class. This is so much better. It feels like spring cleaning.

  • @drax5.6.78
    @drax5.6.78 Před 2 lety +6

    Can't wait to see the video

    • @iHeartGameDev
      @iHeartGameDev  Před 2 lety

      Thank you! I'll be there live tomorrow morning hanging out and chatting!

    • @drax5.6.78
      @drax5.6.78 Před 2 lety

      @@iHeartGameDev yea but it will be night time for me i maybe will not able to see the livestream but will definitely see the video

  • @torleone
    @torleone Před rokem +1

    This tutorial is wonderful!! Thank you for explaining everything so well and in such an understandable way.

  • @erikoudman5084
    @erikoudman5084 Před 2 lety

    This is what a i needed, i saved the video to look at it again later.
    You showed the fundamentals indeed, and it was easy to understand i guess.
    I get the idea, just have to try this out tomorrow for my own to practise.
    And when that has been a succes, i will get to the "intermediate" videos about the State Machines.
    Thanks alot for your effort!

  • @thecout3170
    @thecout3170 Před rokem +1

    Your way of explaining is just incredible! Easy to understand, with exemples, graphics, pseudocode and step by step.

  • @joshuhigashikata9871
    @joshuhigashikata9871 Před rokem +2

    Really good video. I really apreciate game dev tutorials that incorporate visuals to enhance the viewer's understanding. Like the split screen effect when writing the same code into each script.

    • @iHeartGameDev
      @iHeartGameDev  Před rokem

      Thanks Josh! I hope it helped with your understanding!

  • @CardboardBones
    @CardboardBones Před 2 měsíci

    Thank you for this tutorial! Ive had a really basic understanding of a state machine, so this helped a lot with figuring out the actual inplementation.

  • @DrewofDonuts
    @DrewofDonuts Před 2 lety

    My man, this is by far the best FSM tutorial I've seen, and I'm measuring this against Jason Weimann's stuff.

  • @youtuber9991
    @youtuber9991 Před rokem +1

    Amazing content! Thank you so much, you make complex topics easier to understand and keep me motivated on game dev

  • @petethechin
    @petethechin Před rokem +1

    THAT WAS AMAZING! Easily the best state machine explanation out there! Subbed

  • @goxyazk751
    @goxyazk751 Před rokem

    probably best tutorial i'Ive seen overall not just unity, literally god tier!

  • @lemonlimebitta8903
    @lemonlimebitta8903 Před rokem +2

    Love it, thanks so much for the tutorial, took me ages to get this to click in my brain but watching your video all the way through and following along and I've got a nice little set up going for my enemies AI.

    • @iHeartGameDev
      @iHeartGameDev  Před rokem

      Awesome - you are most welcome. Would love to see the enemy AI in our discord :)

  • @yaoyao-ainiyo
    @yaoyao-ainiyo Před 2 lety

    Excellent! So clearly explained, so detailed. And it makes me understand so easily. Your logic is very clear.

  • @TNTCProject
    @TNTCProject Před 2 lety +11

    Great job, the level is constantly increasing! 💛

  • @ohalohuntero
    @ohalohuntero Před 2 lety

    So glad to find a video about state machines in Unity. I cant wait for the platformer version I haven't seen a decent tutorial for it.

  • @mariegrasmeier9499
    @mariegrasmeier9499 Před rokem

    You are such a great teacher! I think I am finally ready to stop queuing endless if-statements and start using a proper state machine after watching this.
    Thank you for the great video!

  • @michaelfunc8965
    @michaelfunc8965 Před rokem

    This Video helped me so much to understand state machines. Thank you very much for this really well explained tutorial!

  • @neenaw
    @neenaw Před 2 lety +46

    Coming from an AI background, this is really good. I think a lot of programmers gloss over things, but this was really thorough. I also like that you showed how complex numerous conditionals can be, which is a common issue in development, this will teach people to recognize when to use a State Machine.
    I myself have a very complex player controller, which is only going to get more complex, and I look forward to your next tutorial.

    • @iHeartGameDev
      @iHeartGameDev  Před 2 lety +1

      Thank you for watching, Neenaw! Awesome to hear you’re background and happy that my format was relatively clear 😊👍

  • @lovfall642
    @lovfall642 Před 11 měsíci +1

    Incredible tutorial! Really easy to understand, thank you! 😊

  • @regular-user
    @regular-user Před rokem +1

    Your tutorials are superior every tutorial out there not only because you are a good teacher, but you also visualize what you're explaining and to someone like me, visualizing something is a LOT easier to understand than just typing code telling you what you need to create a state machine. I have seen so many tutorials where they just type code telling you that you need these lines of code because you just need it but never say WHY. I am someone who always ask myself in my head "why am I doing this and not that? what exactly does this mean?" and you answer those questions.

    • @iHeartGameDev
      @iHeartGameDev  Před rokem

      Thank you for the kind compliment! I spend a lot of time on my videos for this exact reason. Thank you for recognizing it!

  • @oktayalpkabac
    @oktayalpkabac Před 2 lety

    This is the best tutorial I have ever seen on this website. Thank you so much.

  • @starblinky4091
    @starblinky4091 Před rokem +1

    The first half of this video was AMAZING. Probably the best breakdown of what a statemachine is and does. Watched a ton of other videos so far, I was so impressed I had to comment... Now to finish the 2nd half of the video ;)

  • @legomtv7906
    @legomtv7906 Před rokem

    Really great tutorial! You visualize everything so perfect, I LOVE it. Now I understand how FTMs work

  • @NevRS32
    @NevRS32 Před rokem

    You are a gift to the gamedev community brother! Your work is amazing! Thank you!

  • @padekz7056
    @padekz7056 Před 8 měsíci +1

    I really liked this video!! It's the best one of state machine I've ever seen! Congratulations!!!!

  • @sujyotraut9955
    @sujyotraut9955 Před 2 lety +4

    ❤️I like how thoroughly Finite State Machine is explained

  • @camonbauDuc
    @camonbauDuc Před 9 měsíci

    thank Sir, the document was too hard for me to understand State pattern, but with your tutorial, now i get it ! Again, Thank a lot ^.^

  • @MrFaciio
    @MrFaciio Před rokem

    Absolutely amazing! I had a problem with handle finitie state machine but now i love it!

  • @vaibhav4215
    @vaibhav4215 Před 4 měsíci

    Finally I understood state patterns which i was struggling to understand. Thank you mate, heart to you❤❤❤

  • @bilal.shakir
    @bilal.shakir Před rokem

    My man's dedication is over the top!

  • @alexter-sarkisov8321
    @alexter-sarkisov8321 Před rokem

    The explanation is very clear, and the flow of thought is logical and sensible, encapsulating only the necessary details and leaving out unrelated stuff.

  • @CyberCat45
    @CyberCat45 Před 5 měsíci +1

    This helped so much! I have 2 days to build a level system for a game and I think this is perfect for what I need. Thanks!

  • @hamzasaleem5957
    @hamzasaleem5957 Před 2 lety +1

    When I needed you the most you came out with a new video! Great as always!

    • @iHeartGameDev
      @iHeartGameDev  Před 2 lety +1

      Amazing! Happy to hear and thank you for watching!

  • @HadiLePanda
    @HadiLePanda Před 2 lety

    Thanks for the tutorial, I find it really well explained! I especially enjoyed a lot the animations and presentation :)

  • @babydumplinggames2032
    @babydumplinggames2032 Před 11 měsíci +1

    Great job with this video! I always come back to it to refresh. 👏

    • @iHeartGameDev
      @iHeartGameDev  Před 11 měsíci +1

      Thank you so much! A new state machine tutorial is coming soon!

  • @bobosaint7399
    @bobosaint7399 Před rokem

    Very efficient and easy to understand. Thank you for your effort.

  • @CrazyManiac274
    @CrazyManiac274 Před rokem +1

    Extremely well made tutorial! Could not have been any clearer!

  • @vinaciotm
    @vinaciotm Před 2 lety

    You are the best teatcher that I saw in my life! Congratulations :D

  • @deadbroadcastpc
    @deadbroadcastpc Před 2 lety +2

    Very solid explanations, really appreciate the time you put into this

  • @matheusalexandre4167
    @matheusalexandre4167 Před 2 měsíci

    Thanks man, your tutorials are really helpful, I hope you continue this, you know how to explain the concept and apply it on real world situations. Thanks again.

  • @fakefake6770
    @fakefake6770 Před 2 lety +1

    Bro amaziiiing tutorial🔥🔥🔥!!! Exactly what I needed!
    Have a nice day you are awesome!

  • @Ares2196
    @Ares2196 Před rokem

    Amazing tutorial pal ! wonderful explaining about the State Pattern within game

  • @chrisp1906
    @chrisp1906 Před 2 lety

    I feel like I've watched EVERY video about FSM on youtube! Your video is hands down the best and easiest to understand for beginner like me! Thank you so much!
    This other guy Sebastian Graves wasn't bad also! For anyone else struggling to understand this stuff. :)

  • @BossKillRatio
    @BossKillRatio Před 2 lety +1

    thanks, started programming my first state machine with this + sebastian lagues guard patrol behaviour tutorial. I basically mashed these two tutes together and turned sebastians guard logic into its own patrol state.

  • @keanumarquez5769
    @keanumarquez5769 Před 2 lety +2

    Please keep up the good work. I really understand all of your work ❤️❤️ btw I just found your videos today and have the time to watch it. I really enjoy it. ❤️

  • @aarontripodi1974
    @aarontripodi1974 Před rokem +1

    This is by far the best explanation of FSMs in Unity, thank you!

  • @tobiasfendt3370
    @tobiasfendt3370 Před 2 lety +1

    absolute amazing content. Best video for learning state machines

  • @MRSHERMAN-id4fx
    @MRSHERMAN-id4fx Před rokem

    Thank you very much, dude. Now I'm learning c# patterns. You really helped me to start this.

  • @FrancoisArts
    @FrancoisArts Před 2 měsíci

    I saw many video about state. It's is the first I really understand. Thank you

  • @mugnix0
    @mugnix0 Před rokem +1

    thanks for this amazing tutorials, simple and clear, easy to understand, goodjob

  • @yousefrahib1937
    @yousefrahib1937 Před rokem

    Thanks bro finally someone who isn't posting malware or fake stuff, you deserve my subscribe!

  • @minhthien5482
    @minhthien5482 Před rokem

    this really one of the best tutorial i've ever seen

  • @gopalravi6676
    @gopalravi6676 Před rokem

    Amazing work on the explanation, trying it definit

  • @jean-michel.houbre
    @jean-michel.houbre Před 2 lety +1

    Really, this is a great video. I understood all this machinery better than some tutorials in my mother tongue.
    Until now, I just used a switch in an update to go to one of the states. As long as the object had a simple behavior, it was fine, but the evolutions quickly became inextricable.
    Thank you so much.

    • @iHeartGameDev
      @iHeartGameDev  Před 2 lety

      That is wonderful to hear! Thank you for watching and I’m happy that it helped! 😊

  • @brandonjacksoon
    @brandonjacksoon Před 2 lety +1

    Thank you dude! Glad that I found your channel! Liked and subscribed!

  • @phutrancong2810
    @phutrancong2810 Před 2 lety

    Very thorough and easy to follow video, thank you very much my guy keep it up

  • @Myrelaxedlife
    @Myrelaxedlife Před 2 lety +2

    Excellent tutorial. Much better than any other I've seen.

  • @ironheavenz
    @ironheavenz Před 2 lety +3

    This is both amazing and genius
    Thanks a lot for this concept, this is pure gold

  • @MaZyYTube
    @MaZyYTube Před rokem +1

    Wow thank you for this video. I was looking for multiple resources to understand how I would need to implement. I am working on a movement system were enemy will chase multiple players (multiplayer game) and already had trouble to implement. It was not much clean. But this makes clear what I exactly should do and I already can think about it how to solve my problem. This video helps me a lot.

  • @widearchshark3981
    @widearchshark3981 Před 2 lety +3

    I think this is bang on what I'm after! I'm writing a Tower Defense game. I think the state pattern makes sense as the pattern to manage the various stages: Area Creation, User Tower Setup, Wave of Enemies, Game Over/Wave complete etc.
    I've done a similar thing to this before, but using one massive MonoBehaviour class that handles every single state.
    So I really like this approach. Thank you for making it so clear :)

  • @lordbarron3352
    @lordbarron3352 Před 11 měsíci

    Simple and elegant code, easy to understand explanation, and concise video. 10 points, beautifully done.

  • @SlenderMat5
    @SlenderMat5 Před 2 lety +1

    This is the best tutorial I ever seen. Big like

  • @Vhongsick
    @Vhongsick Před rokem

    Great review, very clear. Thank you, good luck, everything, peace and health!

  • @IFCreativefr
    @IFCreativefr Před rokem +1

    W tutorial fr you really went above and beyond explaining stuff

  • @skave7228
    @skave7228 Před 9 měsíci

    I was reluctant to use this system on my already-made code, but my God, it's a blessing to use!

  • @zorskizor152
    @zorskizor152 Před rokem +3

    I'm already doing game dev work and almost finished school so I'm familiar with most of these concepts already but when I need a refresher I'm always going to come to your channel because no one breaks it down as concisely and easy to sift through like you do. Thanks for all the work you put in to making these vids easy to learn from.

  • @louisgunning2255
    @louisgunning2255 Před rokem

    The best tutorial on this subject, thank you!

  • @hristoborisov3713
    @hristoborisov3713 Před 2 lety

    Can't wait for the character controller state machine

  • @johnx140
    @johnx140 Před 2 lety

    Thank you bro, this video was awesome! Super well done.

  • @Pablito_Dev
    @Pablito_Dev Před 4 měsíci

    This is the best explanaition of the FMS , TYSM !

  • @tienvantheten8924
    @tienvantheten8924 Před rokem

    Honestly, what a great vid. I finally understand how it works after 5 hours of trying to understand state machines