Edge Computing with Cloudflare Workers
Multiplayer Doom on Cloudflare Workers

Multiplayer Doom on Cloudflare Workers

5/18/2021 · Celso Martinho

What this post added

This post details the porting of the Chocolate Doom game engine to WebAssembly and its integration with Cloudflare Workers and Durable Objects to create a serverless multiplayer gaming experience. It highlights the challenges of adapting a UDP-based network protocol to TCP/WebSockets, the implementation of a new network driver (`net_websockets.c`), and the use of `emscripten_set_main_loop()` to handle the event-driven browser environment. The post also introduces the concept of a message routing server on the edge to manage player connections and facilitate communication.

Read the original post ↗