
Multiplayer without netcode - a TypeScript game engine where the server draws
Terminal Bomber TL;DR Primitiv Engine is a multiplayer-first TypeScript game engine (pre-alpha). The server sends draw commands, the client just displays (think server-side rendering, but for games). No prediction, no reconciliation, no desync. Write one class, run it standalone in the browser or on a Node.js server with connected clients: same code, zero changes. Website - Try the live examples What it looks like The display is a grid of cells (up to 256×256). Each cell holds three things: a character (CP437 by default: ║═╗ , ░▒▓█ , ♥♦♣♠ , or a custom sprite if you load your own atlas) a foreground color a background color To draw on that grid, you issue draw commands : const orders = [ OrderBuilder . text ( 8 , 0 , `Score: ${ data . score } ` , TEXT_COLOR , BG_COLOR ), OrderBuilder . char ( data . food . x , data . food . y , ' ♦ ' , FOOD_COLOR , BG_COLOR ), OrderBuilder . polyline ( data . snake , ' █ ' , SNAKE_COLOR ), OrderBuilder . char ( data . snake [ 0 ]. x , data . snake [ 0
Continue reading on Dev.to
Opens in a new tab




