# Niwrad: Distributed multiplayer sandbox evolution simulation

**URL:** https://forum.heroiclabs.com/t/niwrad-distributed-multiplayer-sandbox-evolution-simulation/1202
**Category:** Showcase
**Tags:** sdk-unity, server-framework
**Created:** [December 5, 2020, 8:43am UTC](https://forum.heroiclabs.com/t/niwrad-distributed-multiplayer-sandbox-evolution-simulation/1202 "2020-12-05T08:43:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![louis030195](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/louis030195/32/297_2.png) [@louis030195](https://forum.heroiclabs.com/u/louis030195)
#### Post date: [December 5, 2020, 8:43am UTC](https://forum.heroiclabs.com/t/niwrad-distributed-multiplayer-sandbox-evolution-simulation/1202/1 "2020-12-05T08:43:30Z")

</div>

Hey I used Nakama for fun several times, wasn’t easy at first to find examples projects so I thought about sharing my code

> **[louis030195/niwrad](https://github.com/louis030195/niwrad)**
>
> Distributed multiplayer sandbox evolution simulation - louis030195/niwrad

I use both a unity server and Nakama because I needed to handle the physics on back-end side.  
The back-end architecture roughly and the distributed strategy using Octree data structure.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/heroiclabs/original/1X/419b3622a18755edf43beeaface4b8278924dc2a.png)  
My Plan was to use Nakama as a sort of stateless “coordinator” and the unity server as a sort of stateful “executor”(game logic …).  
I used Protobuf to implement more messages.  
There is a bit of ugly code but I hope it can guide few people into building things with Nakama !

**PS: It would be nice to have a “awesome-nakama” on Github, so people add their projects to the list etc.**

---

<div class="post-metadata">

### Author: ![novabyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/novabyte/32/1324_2.png) [@novabyte](https://forum.heroiclabs.com/u/novabyte)
#### Post date: [December 5, 2020, 3:50pm UTC](https://forum.heroiclabs.com/t/niwrad-distributed-multiplayer-sandbox-evolution-simulation/1202/2 "2020-12-05T15:50:24Z")

</div>

@louis030195 This is a very complex project to take on. Huge congratulations on the work and thanks for sharing it with the rest of the Nakama community! 🙏
