Visualizing PATHFINDING Algorithms in C++ - SFML Devlog

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

КОМЕНТАРІ • 61

  • @Kofybrek
    @Kofybrek  Рік тому +21

    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 Рік тому +14

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

  • @jimishukurow2286
    @jimishukurow2286 Місяць тому

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

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

  • @user-lg7td1he3s
    @user-lg7td1he3s Рік тому

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

  • @cmdprmptexe
    @cmdprmptexe Рік тому

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

  • @matthieuhenocque7824
    @matthieuhenocque7824 Рік тому

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

  • @FlareGunDebate
    @FlareGunDebate 7 місяців тому

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

  • @hassanbo8200
    @hassanbo8200 Рік тому

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

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

  • @ninebysixteen222
    @ninebysixteen222 Рік тому

    love your videos bro❤❤

  • @martindejonge695
    @martindejonge695 Рік тому

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

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

  • @bakitsogtoo2421
    @bakitsogtoo2421 Рік тому

    Keep going man

  • @forgottenforever1036
    @forgottenforever1036 9 місяців тому

    Fantastic!!

  • @fanherbaty
    @fanherbaty Рік тому +1

    waited for so long

  • @sustwist730
    @sustwist730 Рік тому

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

  • @ChrisVideosGreek
    @ChrisVideosGreek Рік тому

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

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

  • @Fulbion
    @Fulbion Рік тому

    oh. my. god. You are back!!

  • @Abdalla_Osman
    @Abdalla_Osman Рік тому

    Bro is back!

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

  • @airguillo31
    @airguillo31 5 місяців тому

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

  • @TheSelfUnemployed
    @TheSelfUnemployed 11 місяців тому

    EPIC!

  • @brain-freeze7995
    @brain-freeze7995 Рік тому

    روعة واصل 👏👏

  • @paulogabriel1122
    @paulogabriel1122 4 місяці тому

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

    • @Kofybrek
      @Kofybrek  4 місяці тому +1

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

  • @anon1963
    @anon1963 6 місяців тому

    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

  • @TruthSpitter253
    @TruthSpitter253 11 місяців тому

    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

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

  • @borbzaby
    @borbzaby 11 місяців тому

    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  11 місяців тому

      Yes, definitely!

    • @borbzaby
      @borbzaby 11 місяців тому

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

    • @airguillo31
      @airguillo31 5 місяців тому +1

      yeah man.. I understand everything but SFML lol

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

  • @logik6414
    @logik6414 Рік тому

    G'day friend

  • @semajsy9667
    @semajsy9667 Рік тому +1

    W

  • @otistically
    @otistically Рік тому

    2:44 lmao

  • @thenameisluk
    @thenameisluk Рік тому

    finally

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

  • @kristoff_t2013
    @kristoff_t2013 Рік тому

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

  • @rizwanafarween7371
    @rizwanafarween7371 11 місяців тому

    Bro what's your Brian's mass

  • @rsingh5759
    @rsingh5759 Рік тому

    Make a game using wave function collapse.

  • @masterlaplace
    @masterlaplace 9 місяців тому

    Ok

  • @Sahil_Bhandari
    @Sahil_Bhandari 9 місяців тому

    All you need is just a math! 😂

  • @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 7 місяців тому

      Nah c++ is goated

  • @DaadirHusseinRoorow
    @DaadirHusseinRoorow Рік тому

    You upload literally once in 2 - 8 months 💀

  • @Retardness
    @Retardness Рік тому +1

    Nice video