Title: Hi HN, this is Harsh, I am the developer behind Hathora. I tried making a simple multiplayer game a few years ago and, as someone with software engineering experience but no gamedev experience, I found it to be very challenging. On top of the challenges of building a single player game, you now have to constantly battle the network and latency, find ways to prevent cheating, and figure out how to make a scalable backend architecture. With Hathora my goal was to encode best practices for online multiplayer game development into a framework so developers can simply focus on implementing their game logic.<p>Some technical pieces of Hathora I wanted to highlight:<p>- Hathora includes a system I think of as “gRPC for games”. You define your API in Hathora’s declarative format and the framework spits out typesafe data models, clients, and server endpoint stubs across multiple programming languages (although currently only Typescript is implemented). Minimal packet sizes are achieved through a binary serialization format which includes a delta encoding feature, allowing the framework to efficiently synchronize state by sending data diffs.<p>- Hathora includes a Swagger-like Prototype UI generated from the API definition. This allows you to view the game state and call server methods all in realtime, letting you interact with your backend logic without writing a single line of frontend code. Once you are happy with the backend logic, you can create a fully custom frontend using any framework&#x2F;technology you’d like and just use the Hathora client to communicate with the backend.<p>- By handling generic game functionality (state synchronization, messaging, persistence, etc) for you, Hathora lets you create multiplayer games with very few lines of code. For example, see chess which is implemented in under 200 lines of user code: <a href="https:&#x2F;&#x2F;github.com&#x2F;hathora&#x2F;hathora&#x2F;tree&#x2F;develop&#x2F;examples&#x2F;chess" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hathora&#x2F;hathora&#x2F;tree&#x2F;develop&#x2F;examples&#x2F;che...</a>. I also made (a massively simplified version of) Among Us in under 200 lines of code: <a href="https:&#x2F;&#x2F;github.com&#x2F;hathora&#x2F;among-us-tutorial" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hathora&#x2F;among-us-tutorial</a><p>I am looking for developers interested in making online multiplayer games to try out Hathora and give me feedback. Additionally, if the roadmap seems interesting to you I would gladly welcome contributions: <a href="https:&#x2F;&#x2F;docs.hathora.dev&#x2F;#&#x2F;roadmap" rel="nofollow">https:&#x2F;&#x2F;docs.hathora.dev&#x2F;#&#x2F;roadmap</a>. I’ll be around to answer questions, let me know what you think!
Upvote: