Some things I learned, retrofitting a browser-based RTS for network multiplayer.

This page summarizes the projects mentioned and recommended in the original post on /r/gamedev

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • ArmorAlley

    A browser-based interpretation of Armor Alley, a combat strategy game originally released in 1990 for the Macintosh and MS-DOS PCs.

    Clock sync I never really had to pay attention to framerate, before. Previously, it was just "target 30FPS." Thanks to some friends, I found that my requestAnimationFrame()-based game loop was running up to 36 FPS vs. 30 on computers with 144-Hz monitors. I had to tweak my "minimum frame time" logic slightly, to get everyone at 30. For the curious, here is the commit - a two-line change, before comments. https://github.com/scottschiller/ArmorAlley/commit/01f9f435424c6b61f8765b13dd52504cd9b3d397

  • peerjs

    Simple peer-to-peer with WebRTC.

    I'm using the client-side PeerJS https://peerjs.com/ library for networking. As the name may imply, a direct connection is established between two peers using WebRTC via "handshake" through an intermediary server they host - and, they provide source for the server as well. I have found it to be quite reliable, thus far.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts