Skip to content

Instantly share code, notes, and snippets.

View qingwei91's full-sized avatar

Qing qingwei91

View GitHub Profile
@qingwei91
qingwei91 / multiplayer-game-networking1.md
Last active May 21, 2025 17:31
How does Multiplayer Game sync their state? Part-1

The problem in multiplayer game

In multiplayer game, one of the most complex issue is to keep all player's state in sync with server state. There are a few good articles around this topic on the internet. However, some details are missing here and there, which may be confusing for beginners in field of game programming, I hope I can clear things up in this article.

I'll present a few techniques commonly used in this problem space.

Before we jump into the problem, let's have an overview on how multiplayer game generally works.

Typically, a game program needs to simulate

@qingwei91
qingwei91 / scalajs-frp-frontend.md
Last active February 26, 2017 16:41
How scala.js match with React

This blog post will discuss what Scala.js is suitable for. I will first introduce current state of web development, and discuss why scala.js might a sensible choice for web development

State of Web Development

As of early 2017, ReactJS remain the most popular frontend framework/ecosystem.

From the point of application architecture, two notable improvements are

  • composable UI components
  • Flux Architecture (aka Uni-directional data flow)
@qingwei91
qingwei91 / getting-started-akka-stream.md
Created May 14, 2016 15:19
Getting Started on Akka-stream (Copied from StackOverflow)

DISCLAIMER: The whole content is copied from This awesome answer

To prevent lost of such useful content as the original question was too broad for SO

Full credit: content author sschaef

If you find this copied content offensive in anyway, please email me

This answer is based on akka-stream version 2.4.2. The API can be slightly different in other versions. The dependency can be consumed by [sbt][1]: