How to implement Tilemap Pathfinding (BFS) using MonoGame

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ธ.ค. 2024

ความคิดเห็น • 21

  • @vhsdelux
    @vhsdelux ปีที่แล้ว

    Perfect. I never could grasp this type of algorithm. Thanks to you i finnaly got it.Big THX

  • @lewallen1971
    @lewallen1971 ปีที่แล้ว

    These are just fantastic! Keep them coming!

  • @williamoliveira105
    @williamoliveira105 ปีที่แล้ว

    Awesome! Love your videos, please keep bringing this type of content to us!

  • @namtodev
    @namtodev 10 หลายเดือนก่อน

    Thanks!

  • @Oyyou
    @Oyyou ปีที่แล้ว

    Good stuff!

  • @jackiedaytona1017
    @jackiedaytona1017 ปีที่แล้ว

    Nice!

  • @isimbulamadmobenibulsun660
    @isimbulamadmobenibulsun660 ปีที่แล้ว

    I guess a* pathfinding could be explained as simple as that. I am so grateful.

    • @GameDevQuickie
      @GameDevQuickie  ปีที่แล้ว

      Thanks. I want to cover A* too.

    • @isimbulamadmobenibulsun660
      @isimbulamadmobenibulsun660 ปีที่แล้ว

      @@GameDevQuickie wait this wasn't a* ? I Thought this is a* and I got happy because I was almost about to understand all the logic

    • @GameDevQuickie
      @GameDevQuickie  ปีที่แล้ว

      ​@@isimbulamadmobenibulsun660 it is not. A* is a little more complex. But we will get there one day.

  • @dMaxps
    @dMaxps ปีที่แล้ว

    Good

  • @halocrash7994
    @halocrash7994 5 หลายเดือนก่อน

    This work perfect but I have a small issue. When I resize the screen (with a Matrix or RenderTarget2D, tried both) the mouse is offset and i dont know how to fix it. (Im new with MonoGame)

    • @GameDevQuickie
      @GameDevQuickie  5 หลายเดือนก่อน

      Hey, just scale the Vector2 of the mouse position by the same amount as the screen.
      Example:
      Original screen size 800x600
      Resized screen size 1600x1200
      Ratio = 2 (new size / old size)
      Real mouse position on the screen is 500, 500
      Game mouse position is Real / Ratio = 250, 250

    • @halocrash7994
      @halocrash7994 5 หลายเดือนก่อน

      ​@@GameDevQuickie I can't believe it was this simple, thank you so much

  • @jayroi1814
    @jayroi1814 ปีที่แล้ว

    This doesn't allow for diagonal movement on the tilemap though, does it? I assume not but maybe I'm wrong and the wall is affecting it, because wasn't a show case for pathfinding through a larger area (at least 3x3)

    • @GameDevQuickie
      @GameDevQuickie  ปีที่แล้ว +1

      Hey, the diagonal movement was intentionally restricted (1:46) but can be very easily allowed by adding the diagonal indices into the row and col arrays.
      row = { -1, 0, 0, 1, -1, -1, 1, 1 }
      col = { 0, -1, 1, 0, -1, 1, 1, -1 }

    • @jayroi1814
      @jayroi1814 ปีที่แล้ว

      @@GameDevQuickie Awesome, thanks for the quick reply! Joined the discord:)

  • @adhamaborabie7854
    @adhamaborabie7854 ปีที่แล้ว +1

    Nice video, very interesting, it would be nice if you have a discord for the channel so we can talk to you and each other and build a community, also nice video 😁

    • @GameDevQuickie
      @GameDevQuickie  ปีที่แล้ว +1

      Thanks. I will setup one.

    • @williamoliveira105
      @williamoliveira105 ปีที่แล้ว

      Agreed! I'd love to join as well

    • @GameDevQuickie
      @GameDevQuickie  ปีที่แล้ว

      Here we go: discord.gg/UrsNc7Kaz5 (I'll play around with the channels, etc. as we go)