Make an MMO with Godot 4 + Golang: WebSocket connections

Поделиться
HTML-код
  • Опубликовано: 15 янв 2025

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

  • @deviouscat0
    @deviouscat0 23 дня назад +4

    This is exactly my thing! The programming language I use the most is golang, and I've dabbled a little bit with godot and it was interesting, and I've been thinking for a while, what If I had a godot game that communicated with a server written in go, and this tutorial series is exactly that.

    • @tristanbatchler
      @tristanbatchler  23 дня назад +1

      That’s awesome! I hope the series will give you some insight, but it’s cool to see fellow Go + Godot enjoyers out there 🫡

  • @ND6K
    @ND6K 19 дней назад +1

    Do you plan on having the server validate collision/physics / how do you integrate that? I have wanted to do something like this, but didnt know how hard it would be to integrate that kind of thing consistantly and easily.

    • @tristanbatchler
      @tristanbatchler  19 дней назад +1

      @@ND6K yes! Server validation will be covered in part #8.
      Basically it’s done with a series of checks each time the client says they have eaten a spore. E.g. Godot detects collision and wants to grow in size, so messages the server, then server validates that claim by checking
      1. Does the spore the player said they ate actually exist?
      2. Was the player anywhere near the spore they said they ate?
      3. If the player ate the spore, how much should they grow?
      If you’re interested, the blog post for each part is already out so you can read ahead if you like: www.tbat.me/2024/11/15/godot-golang-mmo-part-8

  • @LawZist
    @LawZist 4 дня назад

    Great video! Can you explain why using web socket and not tcp/udp?

    • @tristanbatchler
      @tristanbatchler  4 дня назад +1

      @@LawZist websockets actually *are* TCP, but we are using them mainly for the web export. It is not possible to use a raw socket in a web-based game, you have to use either websockets or gRPC (more complicated).

    • @LawZist
      @LawZist День назад

      @ what about webrtc? As far as i know its a UDP implemenation

  • @CuberAI_
    @CuberAI_ 23 дня назад +1

    Cool!

  • @quickfixportal
    @quickfixportal 23 дня назад

    🚀

  • @ProstoLen
    @ProstoLen 22 дня назад

    Руководство только для того чтобы посмотреть на работу сокетов - поверхностно.
    Слои, разделение и расширяемость в архитектуре - важно.