r/rust_gamedev • • 12h ago

Coral TD v0.1.36 — Victory Coral Bloom

Post image
18 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 • • 3h ago

Rain, puddle physics and ground reflections in my Rust engine (early preview)

Post image
1 Upvotes

I've been working on the weather module of QLink, my PC and VR Rust game and simulation engine for Linux. It now has rain, water and puddle physics, and the puddles on the ground show full reflections.

It's still in very early development, so this is just a first look.

https://arn-c0de.de/projects/qlink/


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

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 • • 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 • • 4d 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

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 • • 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

OpenSacred an open-source engine for Sacred Gold

Thumbnail
reddit.com
1 Upvotes

r/rust_gamedev • • 4d ago

Character Customization

Thumbnail
youtu.be
3 Upvotes

r/rust_gamedev • • 5d 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 • • 4d ago

Rust Game Engine

Thumbnail
reddit.com
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

Making 3D renderer on Rust. Day one.

0 Upvotes

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

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 • • 7d ago

Are We Game Yet? - Call for new maintainers

Thumbnail
github.com
36 Upvotes

r/rust_gamedev • • 7d 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 • • 8d ago

FaunaVox - Procedural Animal Vocalization

Thumbnail
github.com
19 Upvotes

Ive been working on a game in which all creatures are procedural and evolve based on their genes. A few weeks ago I began trying to add procedural sound to the creatures and that sent me down a really interesting rabbit hole.

After reading lots of papers about formant synthesis, trying all sorts of existing software, and a ton of trial and error i have finally put together a system that im happy with. At least for now.

The synthesis engine started as a python script and eventually became a rust crate which can be compiled into a dll and used from Unity. I can easily synthesize 20 calls per creature for 200 creatures without getting a noticeable frame lag now. My old engine was written in c# and wasnt nearly as feature complete or performant even when heavily utilizing Burst and per-frame job budgets.

The repo has a pretty thorough readme. The /native/ directory is where id go to stsrt playing around with the cli. If you have Rust and Cargo already just go into that directory and do "cargo build --release"

Edit: here are a couple calls in action along with the new feature I just finished- automatic mouth animation.

https://www.youtube.com/watch?v=30TrMccKRaU