Visualizing PATHFINDING Algorithms in C++ - SFML Devlog

Поделиться
HTML-код
  • Опубликовано: 9 сен 2024
  • I wrote Breadth-first search, Dijkstra and A* (A star) pathfinding algorithms in C++ and SFML.
    Discord: / discord
    Github: github.com/Kof...
    Itch io: kofybrek.itch.io
    Patreon: / kofybrek
    Subreddit: / kofybrek
    Twitter: / kofybrek
    Code: github.com/Kof...
    #code #coding #programming

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

  • @Kofybrek
    @Kofybrek  Год назад +22

    I'm back! Hope you enjoyed this video! if you did, please press that like button and subscribe for more content like this. It costs you nothing, but for me it's everything!
    Consider supporting this channel on Patreon for exclusive content as well as early access to future videos and projects: www.patreon.com/Kofybrek

  • @sukiio..9631
    @sukiio..9631 Год назад +16

    honestly compared to a lot of other coding youtubers you by far have the most personality and i’m here for it 😁

  • @awix637
    @awix637 Год назад +7

    Finally, It's been a while since the last video. Don't leave us again, there is no other SFML guy that i like to watch. Thanks for the video

  • @soykiokin
    @soykiokin Год назад +9

    Finally!!!! Thank you Kofybrek!!!!

  • @jammincoder
    @jammincoder Год назад +5

    I really like the ways you summarize the algorithms and code in such a fast but understandable way.
    Thanks for the video!

  • @scottpinkston5571
    @scottpinkston5571 Год назад +4

    absolutely loved the review of some of these data structures and algorithms! very entertaining !

  • @erc0re526
    @erc0re526 Год назад +1

    I MISSED YOUR VIDEOS SO MUCH, the other day I was just rewatching the platformer one. Nice!

  • @Mati2k03
    @Mati2k03 Год назад +1

    Damn your videos are truly inspiring. Lately I have to study to my final exams so I totaly abandoned SFML and rn I feel kind guilty that you made such amazing project when I just spend time recovery after math class.

  • @Test-iv4pm
    @Test-iv4pm Год назад

    It's good to see you again! Of course, with another certified Kofybrek banger: a complex topic explained extremely well, put into simple terms, made easier to understand, and visualized intuitively, uploaded on a criminally undersubscribed channel.

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

    In my opinion, this is an excellent visualization of how the algorithms work.

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

    you describe things clearly, you get my sub. congratulations.

  • @jimishukurow2286
    @jimishukurow2286 4 месяца назад

    I can finally compile your codes and run them in my ubuntu, nice jobs ... keep going

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

    I’m working on a simple project right now in SFML that’s going to require pathfinding, and I was like “wow where do I start”
    Then I saw the discord notification that you were going to post a pathfinding video and I was like “awesome I’ll just wait for Kofybrek” 😂
    Great video, thank you!

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

    Welcome back! It's been a long time and it's worth the wait :D

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

    Hi, I m french student in an engineering school (Pleased excuse my bad english) and to pass the competive exam to join it, I made a project about comparison of a lot of pathfinding algorithms. A pretty cool way to think about mathematical pathfinding is to compare pathfinding in discrete space (where the precision of your path is directly related to the precision of the discretization of the space, so obviously if you want a straight path you need a very thin discretization and your path will be made up of a large number of cells so calculus will be pretty long) to pathfinding in continous space by considering polygons and path between vertex of polygons. In continuous pathfinding, the minimal distance path is the perfect answer at the problem of minimization of the distance because you pass from vertex to vertex straight on. A lot of optimization can be implement in continuous pathfinding to reduce calculus (because there is also a lot of vertex to take into account) for example by considering only appropriate vertex because a lot of them are useless to make a minimal distance path considering they form a convav or a convex corner.
    I forgot to congratulate you for your amazing videos, a lot of fun while speaking about smart codes !

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

    So nice to see you back Kofybrek ! All I have to say is

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

    Bro I love your content, hope you won't leave the channel for so long, just keep it up👍👍👍

  • @user-lg7td1he3s
    @user-lg7td1he3s Год назад

    i have watched every video of yours i really like your videos keep up the good work

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

    Fantastic!!

  • @twistedillusion-u4s
    @twistedillusion-u4s Год назад

    i was making a game and saw this video, very good video!

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

    Maybe your best video so far (after the Mario one!)

  • @airguillo31
    @airguillo31 8 месяцев назад

    include a NN here man! to see if it really outperforms an heuristic.. that'll be a great video

  • @mxblong
    @mxblong Год назад +1

    waited for so long

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

    EPIC!

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

    love your videos bro❤❤

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

    Keep going man

  • @The_master_of_frogs
    @The_master_of_frogs Год назад +1

    W

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

    Hey Dude can you help me? I am trying to make a platformer but my player kept passing through walls, I know how to detect collision but not able to stop it if it pass through wall, i also use sfml

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

    oh. my. god. You are back!!

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

    Would you ever consider doing a C++ and SFML tutorial for beginners? I only know C# and basic HTML, JavaScript and Python, but I would love to know how to use C++ as I feel it would be very good to know

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

      Yes, definitely!

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

      @@Kofybrek Are you going to do it? If so, when?

    • @airguillo31
      @airguillo31 8 месяцев назад +1

      yeah man.. I understand everything but SFML lol

  • @anon1963
    @anon1963 10 месяцев назад

    Hey Kofybrek, at 1:58 I'm pretty sure the formula for x is actually x = (y - b) / m. I was using x = y / m and I was getting incorrect results

  • @paulogabriel1122
    @paulogabriel1122 7 месяцев назад

    @Kofybrek Awesome video and explanation, but can I make a pathfinding without moving through diagonals?

    • @Kofybrek
      @Kofybrek  7 месяцев назад +1

      Yes. Just remove that part from the function that gets the neighboring cells.

  • @Test-iv4pm
    @Test-iv4pm Год назад

    One really neat "side note" in this video is when you showed that you changed the algorithms so that they find the LONGEST path.
    It's inspiring. What could we add to a game that uses the longest path? How can we make an interesting gameplay mechanic out of this?
    Just some rhetorical questions. Interesting to think about.

  • @brain-freeze7995
    @brain-freeze7995 Год назад

    روعة واصل 👏👏

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

    Bro is back!

  • @Retardness
    @Retardness Год назад +1

    Nice video

  • @danhoward7697
    @danhoward7697 Год назад +1

    Same old map with blocks. This is the simplest way. Try Having walls around the squares where the move depends on where the current Node is and what direction it needs to go. Show me that code.

  • @drmechehoudabdelhamid9381
    @drmechehoudabdelhamid9381 Год назад +1

    please please from a coder to a coder what version of sfml you are using?

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

    G'day friend

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

    2:44 lmao

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

    finally

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

    Make a game using wave function collapse.

  • @KristOFF-T
    @KristOFF-T Год назад

    0:07 The actually special people are the ones who don't read these "secret" messages.

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

    Yoo First
    Also good work !

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

      @@MenaceInc he made the comment before he posted...
      It was second second when i saw the post and commented 😅

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

    raylib api is cleaner than SFML :)))

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

      raylib is developed in c sfml is developed in c++ and this video is about c++ so...

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

      I'm planning to try raylib at some point. Everyone keep saying how amazing it is.

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

      @@Kofybrek It's just another library that does all the graphics and window stuff that SDL and SFML do but IMHO it outclasses the competition in terms of architecture and simpleness of the public api. Plus the community is so fun. Also very nice implementation of those algorithms. :)) Its very cool to see the effort that goes into coding something like this

    • @anon1963
      @anon1963 10 месяцев назад

      Nah c++ is goated

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

    Bro what's your Brian's mass

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

    Ok

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

    All you need is just a math! 😂

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

    You upload literally once in 2 - 8 months 💀