SShortSingh.
Back to feed

Developer builds serverless multiplayer browser game using real orbital physics

0
·1 views

A developer has released Lagario 3: Órbita, a free multiplayer browser game inspired by agar.io where players navigate planets governed by inverse-square gravity and real momentum. The game runs entirely without a dedicated game server — the room creator's browser hosts the simulation via a Web Worker, while other players connect through WebRTC using Nostr relays for signalling. To handle host disconnections, the system automatically migrates hosting to the next peer in roster order, restoring the latest world checkpoint and bumping an epoch number to resolve conflicts. Physics are shared between host and client through a single module, with gravity tweaked for playability by scaling pull relative to each planet's thrust capacity. The game is playable for free on desktop and mobile at lagario.thomasar.dev with no account required.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

How to verify drand randomness beacons in your app using 30 lines of code

Developers building agents that rely on random numbers often use HTTP relay APIs, but these relays cannot be independently trusted to deliver unaltered data. The drand project, operated by the League of Entropy, publishes a public randomness beacon every three seconds using BLS signatures, allowing anyone to verify results offline with a pinned public key. By fetching the same round directly from drand's own endpoint and comparing it against the relay's response, developers can confirm the beacon has not been tampered with or replayed. A small code example using the drand-client npm package demonstrates how to perform this cross-verification in under 30 lines. The approach reduces reliance on relay trust and enables reproducible, auditable random sampling for use cases like reviewer selection, tie-breaking, or raffles.

0
ProgrammingDEV Community ·

Developer releases npm tool to auto-generate aligned comment dividers in code

A developer frustrated with manually aligning comment-based section dividers in code files has published an open-source npm package called code-divider. The tool replaces lightweight inline markers like @reg and @sec with fully formatted, centered header blocks that consistently end at column 79. Users can run it from the command line, point it at a specific file or directory, or configure it to trigger automatically on save via editor extensions. The package supports over a dozen languages including TypeScript, Python, Go, Rust, and SQL, using each language's native comment syntax. Unlike editor snippets, the tool dynamically sizes the filler characters around each label so all headers remain uniform regardless of label length.

0
ProgrammingDEV Community ·

12-Week Roadmap Outlines How Developer Tools Should Use Full Repo Context

A newly published 12-week Developer Tools and Code Intelligence roadmap lays out a structured approach to building smarter, safer developer tooling. The plan begins with code review, static and dynamic analysis, and testing infrastructure as distinct but complementary evidence sources. A middle phase focuses on repository context, including codebase graphs, blast-radius analysis, and IDE or CLI integration to reflect real workflows. The final phase introduces coding agents, supply-chain health checks, and automated remediation, with an emphasis on transparency around why changes are suggested and how outcomes will be verified. The roadmap argues that effective developer tools must be repository-aware rather than generic, with measurable value and clearly visible limitations.

0
ProgrammingDEV Community ·

How Multi-Agent AI Swarms Cut a 45-Minute Task to Minutes Using Hive Logic

Software engineer Derek Wang argues that running AI agents serially creates a hard ceiling on efficiency, with elapsed time growing linearly and coordination costs mounting quickly. Drawing on Kevin Kelly's observations about decentralised bee colonies, Wang proposes splitting large tasks into independent parallel subtasks rather than relying on a single sequential agent. Instead of a central scheduler, his team adopted a work-stealing model where idle agents pull jobs from busier agents' queues, eliminating the bottleneck of fixed task assignment. A recurring failure mode — agents hanging unattended and wasting 30-plus minutes before human intervention — was resolved by adding a watchdog that automatically detects stalled agents, redistributes their work, and recovers within five minutes. Wang frames the key insight as structural: parallel task design provides automatic fault recovery, not just speed gains.