---
title: Tide Engine | Deterministic Multiplayer Game Engine
description: "Build multiplayer games with Tide Engine: deterministic
  simulation, rollback netcode and an ECS language that compiles to native code
  or WebAssembly."
source_url: https://tide-engine.dev/
source_file: docs/index.md
source_revision: 36904d8e07dd044bd665de823e6b8022ed4f4248
source_worktree: modified
documentation_sha256: ea38a553efadfaf8a016c33e947825b8c4d3d2005abcf32eb4f4a64094909e97
documentation_scope: Website source checkout; not matched to an installed Tide
  release. Check tide version and the project toolchain.
---

<a id="tide-engine"></a>

# Tide Engine

A networking-first game engine. One deterministic simulation that every player shares, on desktop or in the browser, written in a language made for it.

[Get started](https://tide-engine.dev/guide.md) · [Browse samples](https://tide-engine.dev/guide/samples.md) · [Install](https://tide-engine.dev/guide/install.md)

**Multiplayer by default**: Rollback netcode with full server authority. Clients have no input delay, and single-player is a match too, so there's only one path to get right.

**Deterministic floats**: The same build and the same inputs give the same bits on every platform, the web included. Plain floats, no fixed point.

**A language for the ECS**: Games are written in Tide, a language of its own, built around the ECS. Systems say what they read and write, and the compiler works out the rest. It compiles to C, then to native code or WebAssembly.

**A schedule you can read**: The compiler knows every system's data, so it plans which ones can run at the same time, and tells you why the others wait.

**The web is a real platform**: Every game also builds as one self-contained web page on WebGPU, running the same simulation as desktop.

**Nothing to set up**: One tide command, with clang built in. Write a .tide file and run tide run. Editor support for VS Code and JetBrains IDEs.


Explore the [ECS benchmarks](https://tide-engine.dev/benchmarks.md) for measured workloads, implementation details and comparison methodology.

<a id="a-whole-game"></a>

## A whole game

A game is a folder of `.tide` files, and needs no other code. This one bounces a ball:

```csharp
component Ball
{
    float2 position;
    float2 velocity = float2(160, 120);
}

scene Main { }

event(Spawned) Setup(with Main)
{
    Spawn(Ball);
}

system Move(mut Ball ball, Time time)
{
    ball.position += ball.velocity * time.dt;
    if (Math.Abs(ball.position.x) > 300) ball.velocity.x = -ball.velocity.x;
    if (Math.Abs(ball.position.y) > 200) ball.velocity.y = -ball.velocity.y;
}

view DrawBalls(Ball ball)
{
    Draw.Circle(ball.position, 20, Color.red);
}
```

Save it as `game.tide`, then run `tide run --stats` in its folder. [Install tide](https://tide-engine.dev/guide/install.md) to get started, or see [your first game](https://tide-engine.dev/guide/first-game.md) for a longer tour.
