r/rust_gamedev • • 1h ago

Кто-нибудь знает как отключить приглушение звука в шлеме из тяжёлого металла? RUST

Thumbnail gallery
1 Upvotes

r/rust_gamedev • • 2h ago

Coral TD v0.1.36 — Victory Coral Bloom

Post image
3 Upvotes

I wanted to give the player a feeling of restoring the coral reef after they beat a stage of my tower defense game.

Clearing the final wave triggers a 3-second staggered radial bloom of coral flora, seagrass, and unlocked towers spreading outward from the Brain Coral before the victory debrief is displayed.

I think the end result looks really cool and gives a feeling of bringing a reef back to life!

Play free in your browser


r/rust_gamedev • • 10h ago

powder toy mod im making

Thumbnail reddit.com
1 Upvotes

r/rust_gamedev • • 1d ago

I started my first game engine in Rust without SDL using Vulkan/ash (No Editor yet/source first)

Thumbnail
github.com
1 Upvotes

r/rust_gamedev • • 1d ago

question QUIC vs UDP for Rust MMO (Devlog Week 11)

Thumbnail
youtube.com
1 Upvotes

r/rust_gamedev • • 2d ago

I love mathematics, vibe coded a codec after an idea struck me, and it outperforms leading competitors in my tests. How do I validate and license it?

Thumbnail reddit.com
0 Upvotes

r/rust_gamedev • • 2d ago

Building an FPS inside my own apartment using Bevy + Solaris

Thumbnail gallery
2 Upvotes

r/rust_gamedev • • 2d ago

Making a 3D renderer on Rust. Day 2.

2 Upvotes

r/rust_gamedev • • 3d ago

question Should I add support for Rust?

3 Upvotes

Hi, I am the developer of Leadwerks Game Engine. I'm looking for a mid-difficulty language, somewhere in between C++ and Lua. C# would work nicely, but the lag spikes caused by the garbage collection seem like it ruins the language for realtime 3D games, especially for VR. I'm not that familiar with Rust but I hear a lot of good things about it, and it appears to use shared pointers, which eliminates the performance problems full garbage collection would introduce.

Support for Rust can be added by piping all the commands through a C interface and writing some structure/class code on the Rust side that wraps everything up nicely for the end user.

I'm aware of the open-source Bevy 3D engine, but it's lacking a visual editor. Leadwerks 5 has a very capable level editor / visual designer that's been refined over years with lots of user feedback. To be clear, Leadwerks is closed-source commercial software (with a low price point and no royalties).

Do you think Rust would be a good match for what we are looking for in a language? Would adding support for the Rust programming language would be of interest to developers here? Please let me know your thoughts and if you have any questions.


r/rust_gamedev • • 3d ago

Far Worlds: a co-op voxel RPG that runs in the browser on a Rust + wgpu renderer compiled to WebAssembly

5 Upvotes

Hey all! Wanted to share the game I've been working on and a bit about how it's put together, since most of the heavy lifting is in Rust.

Far Worlds is a free co-op voxel RPG for up to 8 players in a party. You start at a home camp, head out on an expedition to a world you've never seen, then bring what you find home to grow the camp.

The Rust side:

  • The renderer is Rust on wgpu, compiled to WebAssembly. It runs in a web worker and draws with WebGPU in the browser.
  • Terrain meshing, lighting and physics are their own Rust crates, also compiled to WebAssembly.
  • The game logic around them is TypeScript.

It plays in Chrome, Brave or Edge with no install and no sign-up: https://farworlds.com/play

It's in alpha with updates every week. Ask away if you want more detail on any part. Thanks!


r/rust_gamedev • • 4d ago

OpenSacred an open-source engine for Sacred Gold

Thumbnail
reddit.com
1 Upvotes

r/rust_gamedev • • 4d ago

Rust Game Engine

Thumbnail
reddit.com
0 Upvotes

r/rust_gamedev • • 4d ago

Rewrote the rain in my Bevy game: one draw call, every drop placed in the vertex shader, anchored to the world and slanted by the wind

85 Upvotes

The old version was 22,000 quads in one rigid mesh, snapped to a 1 m lattice and turned with the camera, so the whole field jumped and swung as you moved. 😂😭

For the new one, each drop is a seed in a box that tiles the world. The shader adds how far the wind has carried the field and how far the drop has fallen, and draws the copy of the tile nearest the eye. Moving the camera moves no drop, and half the quads give the old density.

Game is Steadfall, an open world survival sandbox on a full Earth size planet. Happy to answer anything about it.


r/rust_gamedev • • 4d ago

Character Customization

Thumbnail
youtu.be
2 Upvotes

r/rust_gamedev • • 4d ago

Game site with Rust and WASM

Post image
2 Upvotes

Hi everyone,

I've spent a while building a web based Rust game engine. Here is the link https://rust-game-app-b5nt8.ondigitalocean.app/

I use a ECS-like implementation for the engine and I use github actions to compile each of the games to WASM.

Let me know if you guys have feedback and if I get some love I'll make a tutorial / breakdown.


r/rust_gamedev • • 5d ago

Making 3D renderer on Rust. Day one.

0 Upvotes

r/rust_gamedev • • 5d ago

Added weapons to my incremental roguelike. Rust + WGPU

13 Upvotes

Game is called Lucremachine :)


r/rust_gamedev • • 5d ago

StarFrame Devlog #10 - Performance Optimisation

3 Upvotes

r/rust_gamedev • • 5d ago

Native, Zero-VM Rust Engine & Multi-Platform Runtime for Prehistorik 2 (1993)

Thumbnail
github.com
0 Upvotes

Over the past weeks I have been working on rustypre2, a standalone native Rust engine and multi-platform runtime for Titus Interactive's 1993 MS-DOS platformer Prehistorik 2 (PRE2.EXE, LZEXE-packed 16-bit real-mode x86).

Repository:https://github.com/murat-saglam/rustypre2
Releases (Windows, macOS Apple Silicon, Linux x86_64/ARM64):https://github.com/murat-saglam/rustypre2/releases/tag/v0.1.0

This project builds on the reverse-engineering groundwork of missingno7/pre2_port, which showed that PRE2.EXE could be lifted out of a 16-bit CPU emulator by recovering its leaf functions against lockstep memory and VRAM checkpoints. My goal with rustypre2 was to rewrite the entire engine and runtime in native Rust (2024 Edition) with zero compiler warnings, zero per-frame heap allocations on the hot path, no external audio DLLs, and deterministic 23.333 Hz frame pacing across Windows, macOS, and Linux.

Even without a CPU VM, the original game logic is tightly coupled to static lookup tables in DGROUP (0x1A0F) and CS, including jump parabolas, sine/cosine tables, camera scroll speed curves, sprite hitbox and draw-offset tables, animation scripts, and deterministic attract-mode input streams. rustypre2 embeds the 64 KB initial DGROUP image (assets/dgroup.bin) and CS table windows directly into the binary and loads decompressed .SQZ level and sprite assets at the exact paragraph boundaries ([0x2875]) the DOS allocator used.

Gameplay runs in planar EGA Mode 0x0D (320x200, 16-color planar with an 18-bit VGA DAC). Instead of redrawing the whole screen every tick, the original engine maintains a 20x12 tile ring buffer in off-screen VRAM (0xA000:0x3F40..0x5E80), a 256-slot planar sprite/tile cache at 0x5E80..0x7E80, and pans the CRTC start address with sub-byte pel-panning. In rustypre2, the four 64 KB EGA bitplanes are recycled through a thread-local PLANE_POOL to avoid 256 KB per-frame allocations. When SPRITES.SQZ is loaded (1030:2DFA), each 4-plane sprite is expanded by 1.25x into a 5-plane bank by prepending a union OR-mask silhouette plane. The sprite blitter (paint_sprite) emulates the EGA Map Mask and Data Rotate (ROR) hardware registers using unrolled 4-plane AND-mask and single-plane OR passes. Secret passage foreground tiles (flag & 0x40, routine 1030:3721) are pre-screened directly on live memory slices so we never clone the 64 KB tilemap grid or 64 KB tile graphics buffer unless an active sprite overlaps a secret passage.

Titus's .SQZ container dispatches across three different compression schemes based on the header byte: LZSS for level tilemaps and sprite sheets, LZW for front-end bitmaps (TITUS.SQZ, PRESENT.SQZ, CASTLE.SQZ, KEYB.SQZ), and Huffman + RLE for digital audio (SAMPLE.SQZ) and ending screens (THEEND.SQZ).

For audio, the .TRK music files decompress via .SQZ into 4-channel, 31-sample ProTracker (M.K.) modules. Rather than shelling out to libxmp or writing temporary files to disk, rustypre2 includes a pure-Rust 44.1 kHz stereo synthesizer (ModSynth) using Amiga PAL clock timing (3,546,895.0 / period), 4-point Catmull-Rom cubic spline interpolation, and anti-click volume ramping, mixed in real time in a single SDL2 audio callback alongside the 11 digital 8 kHz PCM sound effects from SAMPLE.SQZ.

The original game paces its main loop to 3 VGA 70 Hz vertical retraces (42.857 ms per tick). rustypre2 uses an Instant deadline pacer that subtracts simulation and render time from the wait budget and polls input at 1 ms intervals, keeping the tick rate steady even when the screen is full of enemies and particles. I also refined the vertical camera follow (1030:5663) in live play so landing (yvel == 0) no longer aborts upward camera re-centering mid-scroll.

On the desktop QoL side, pressing Alt+Enter (or Cmd+Enter on macOS) switches between a 960x600 (3x) window and borderless desktop fullscreen with a custom 1920x1080 prehistoric stone bezel overlay around a centered 960x600 viewport. Pressing P (or minimizing the window) freezes simulation and audio at the exact sample position and waits for P on restore. And for Windows builds, build.rs generates a raw x86_64 COFF .rsrc object (RT_GROUP_ICON + RT_ICON) directly in pure Rust at compile time without needing windres or rc.exe.

The repository is licensed under GPLv3 and contains only the engine code and static tables. To play, drop the .SQZ and .TRK files from your own legal copy of Prehistorik 2 (GOG or Steam) into the game_data folder next to the binary.

Happy to answer any questions about the disassembly, EGA planar tricks, or the Rust port!


r/rust_gamedev • • 6d ago

[Showcase / Feedback] Coral TD - Underwater pixel art TD with Roguelike Upgrades & Survivors-Like Meta Perks (Bevy 0.20 + Avian2D WASM)

8 Upvotes

Hello!

I've been working on a pixel-art tower defense meets roguelike card drafts and Survivors-like meta progression. I'm so excited to share it, and I would love any and all feedback! I am preparing a demo consisting of the first 3 stages. I've just added persistent saves and 3 difficulty levels along with meta perk upgrades.

Tech Stack: Rust, Bevy 0.20, Avian2D physics, and custom Tiled isometric elevation sorting, compiled directly to WASM.

Playable demo in browser: https://jilminator.itch.io/coral-td?utm_source=reddit_rust_gamedev&utm_medium=social&utm_campaign=story_ocean_trench_w3_t1473


r/rust_gamedev • • 6d ago

I'm experimenting with multithreaded Minecraft entity ticking in Rust

1 Upvotes

Hey everyone!

I've been working on a project called Voxaryn, based on the open-source Rust Minecraft project Horizon.

My goal is to explore how much of Minecraft's server-side simulation can actually be parallelized across CPU cores without breaking game behavior.

So far, I've been experimenting with parallel entity ticking using Rayon.

The basic idea is to group interacting entities into independent "islands" and process those groups on separate threads.

In some controlled experiments, this showed promising results, including up to 3.9x speedup for the parallelized workload with 12 threads.

But things get much more complicated when entities are densely packed together.

For example, testing 2,000 cows in one dense group creates a completely different situation compared to splitting them across eight separate pens.

When many entities interact with each other, splitting the workload becomes much harder, and simply adding more threads doesn't solve the problem.

I've also been working on deterministic correctness checks and reproducible benchmarks, because performance improvements mean nothing if the simulation starts behaving differently.

I use AI coding agents extensively for implementation and testing, while focusing on directing experiments, reviewing results, and understanding the technical decisions.

The project is still experimental, and there's a lot left to figure out.

I'm sharing it because I'd love to hear from people with experience in parallel game loops, ECS architectures, or multithreaded simulation.

How would you approach parallelizing entity updates when many entities depend on each other?

GitHub (experimental P2.5 branch with more recent implementation and research):
https://github.com/1wairesd/Voxaryn/tree/experimental/entity-islands-p2.5

The main branch is currently behind the experimental development work.

I'm planning to keep sharing progress, experiments, and failures as I continue working on it.


r/rust_gamedev • • 6d ago

Code Mode: I built a Rust tool to cut >60% of your Agent API Costs?

Thumbnail
github.com
0 Upvotes

Hey all, I'm trying to share this across a few places and hopefully my free tool saves you some money if you're building a Rust agent for your game!

TLDR; Code Mode is a feature that Anthropic announced a few days ago that can save >60% of token costs for agent tool calls. Since token cost dominates agentic software for people like me building Spookery, my AI RPG game engine, I built a Rust tool called Ghost Mode to open source this technique (and also because it's fun to build stuff!). You can find it at the link above! It's a drop-in for your existing MCP servers/clients with only a little boilerplate.

Details;

So I don’t know if you saw the news from Anthropic, but they released this feature called ‘Code Mode’ for Claude Code. Basically it ‘batches’ LLM tool calls into scripts instead of constantly asking the LLM for the next tool. They claim 95% token savings (Haven't benchmarked it myself yet, but independent research claim more like a 60% savings, depending on workload). Up to now, this is mostly used by established coding agent products like Claude Code and Codex.

I immediately became obsessed, because I wanted it for Spookery to run AI-powered RPG games & private servers. So I took a look around, and there’s not much in Rust. There’s a few libraries like with TypeScript and other backends, but they’re like 5x slower (execution) to 100x slower (startup) compared to claims of modern options like Pydantic’s Monty (Python backend written on Rust).

So I went temporarily insane, didn’t sleep, and built/released my own in the days I had off… I call it Ghost Mode. It’s MIT-licensed, because I wanted to share it with others. To use it, just run:

cargo add ghostmode

Give it a try if you’re looking to save tokens in your new Rust agents for your games (or if you just want to flatter me by testing it). If anybody tries it and likes it, I think we can build a really powerful Code Mode implementation together (extend it for other languages, add new features, etc.).

I hope you get something useful out of it.

And if you get nothing out of this, just keep an eye for code mode in your code harnesses soon. I think Anthropic’s is still in the experimental features… But I think it’ll change the game if it’s as powerful as the research says.


r/rust_gamedev • • 7d ago

Are We Game Yet? - Call for new maintainers

Thumbnail
github.com
36 Upvotes

r/rust_gamedev • • 7d ago

[Showcase / Feedback] Hakodoku — A tactile 3D Star Battle puzzle built in Bevy 0.20 (playable WASM demo)

Post image
1 Upvotes