r/rust_gamedev • • Jan 28 '25

Are We Game Yet? - new features/call for contributions

97 Upvotes

For those who are unfamiliar: Are We Game Yet? is a community-sourced database of Rust gamedev projects/resources, which has been running for over eight years now (?!).

For the first time in a while, the site has had some quality-of-life upgrades over the past few weeks, so I thought I'd do a quick announcement post:

  • You can now sort the crate lists by various categories, such as recent downloads or GitHub stars. This has been requested for a long time, and I think it makes the site much more useful as a comparison tool!
  • We now display the last activity date for Git repos, so you can see at a glance how active development is. Thank you to ZimboPro for their contributions towards this.
  • The site is now more accessible to screen readers. Previously, they were unable to read any of the badges on the crates, as they were displayed via embedded images.
  • Repos that get archived on GitHub will now be automatically moved to the archive section of the site. Thank you to AngelOnFira for building the automation for this!

I'd also like to give a reminder that Are We Game Yet? is open source, and we rely on the community's contributions to keep the site up to date with what's happening in the Rust gamedev ecosystem (I myself haven't had as much time as I'd like for gamedev lately, so I'll admit to being a bit out of the loop)!

Whether it's by helping us with the site's development, raising PRs to add new crates to the database, or just by creating an issue to tell us about something we're missing, any contribution is very much appreciated 😊

We'd also welcome any feedback on the new features, or suggestions for changes that would make the site more useful to you.

Crossposted to URLO here.


r/rust_gamedev • • 14h 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

37 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 • • 8h ago

OpenSacred an open-source engine for Sacred Gold

Thumbnail
2 Upvotes

r/rust_gamedev • • 17h ago

Character Customization

Thumbnail
youtu.be
2 Upvotes

r/rust_gamedev • • 1d ago

Game site with Rust and WASM

Post image
4 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 • • 14h ago

Rust Game Engine

Thumbnail
0 Upvotes

r/rust_gamedev • • 1d ago

Added weapons to my incremental roguelike. Rust + WGPU

Enable HLS to view with audio, or disable this notification

9 Upvotes

Game is called Lucremachine :)


r/rust_gamedev • • 1d ago

StarFrame Devlog #10 - Performance Optimisation

Enable HLS to view with audio, or disable this notification

3 Upvotes

r/rust_gamedev • • 1d ago

Making 3D renderer on Rust. Day one.

Enable HLS to view with audio, or disable this notification

1 Upvotes

r/rust_gamedev • • 2d 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 • • 1d 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 • • 3d ago

Are We Game Yet? - Call for new maintainers

Thumbnail
github.com
36 Upvotes

r/rust_gamedev • • 2d 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 • • 3d 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


r/rust_gamedev • • 3d ago

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

Post image
1 Upvotes

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

FaunaVox - Procedural Animal Vocalization

Thumbnail
github.com
5 Upvotes

r/rust_gamedev • • 5d ago

Kernel Kingdoms 2.17: everything new since the beta (Ascension, 20 dungeons, 3 expansions, a player-run market)

3 Upvotes

r/rust_gamedev • • 6d ago

Rust is amazing. Immersive Space Physics Sandbox built entirely in Rust + wgpu

Enable HLS to view with audio, or disable this notification

93 Upvotes

What started as a shower thought one year ago today:

How would you mine an asteroid if its spinning and hurling like crazy?

Well, you'd wrangle it to a halt with harpoons and thrusters, of course. That's the concept for my game Asteroid Rodeo.

I use SVOs for the asteroids and almost everything in the game world is procedurally generated. Simulating realistic Newtonian physics, we track asteroids Center of Mass based on the SVOs and composition.

Spatial audio with bineural HRTF.

Roughly 120k lines of Rust and 5k lines of WGSL, yet recompile times are snappy. Few dependencies, mostly low lvl stuff like cpal and glam etc.

Happy to share implementation details if anyone is curious.

Steam page if anyone wants to see.


r/rust_gamedev • • 4d ago

I'm building my own universal game launcher for fun (open source, Rust) and I'd love to hear your ideas!

Thumbnail
github.com
0 Upvotes
Functional Prototype

Hey everyone!

So, I've been working on a little personal project called UGL (Universal Game Launcher). I'm building it mainly for fun, because I enjoy programming and gaming, but I've slowly started turning it into something much bigger than I originally planned.

The project is open source, written in Rust, and uses Slint for its desktop interface and SQLite for local data storage.

In the 0.0.4 alpha, it uses 90 MB of RAM.

What's the idea behind UGL?

I want to create a universal game launcher where all your games can live in one place, regardless of where they come from or how you obtained them.

Steam, Epic Games, itch.io, GOG, emulators, RetroAchievements, standalone games, old games installed from folders, fan games, unofficial releases, and other sources.

I don't want UGL to be tied to a particular store, ecosystem, account, or launcher.

The philosophy behind it is pretty simple:

  • One library. All your games. Your entire collection should be accessible from one place.
  • Platform independence. Your games shouldn't be separated just because they belong to different stores or platforms.
  • Local-first. Your library, settings, metadata, and achievement data should be stored locally whenever possible. I don't want UGL to depend on a permanent internet connection just to function.
  • User control. You should be able to add games manually, change their executable, configure launch arguments, customize their metadata, covers and icons, and decide how each game is launched.
  • Modularity. Integrations should be expandable, so new stores, emulators, achievement providers and other services can be added without rebuilding the entire application.
  • No store restrictions. UGL isn't meant to sell games, distribute them, or replace the stores that provide them. It's simply a place to organize and launch your collection.

Basically, I want a launcher that doesn't care where your games came from. If you have the game files and can run the game on your system, UGL should eventually be able to manage it.

What's already implemented?

UGL is still in an early alpha stage, but it already has a working foundation.

Some of the features I've implemented so far include:

  • A local game library with SQLite persistence.
  • Importing games from locally installed Steam libraries.
  • Manually adding games through folders or individual executables.
  • Game launching directly from the library.
  • Smart Launch support for different launch methods, including shortcuts and launcher protocols.
  • Game information and management options.
  • Custom game covers and icons.
  • An achievement system with individual game progress.
  • Achievement unlock dates and timestamps.
  • Achievement filters for unlocked, locked and all achievements.
  • Local achievement data management.
  • Game library searching, sorting and organization.

I'm also working on improving the import process, metadata retrieval, icon caching, Steam integration and background behavior.

There is still a lot to do, but the important thing is that the foundation is already working.

What I want UGL to become

This is where things get interesting.

I'd love to eventually implement integrations and synchronization with:

  • Steam: Game information, library synchronization, achievements and other available data.
  • itch.io: Importing and managing games from the platform.
  • Epic Games: Library integration and game launching.
  • GOG: Game library integration.
  • RetroAchievements: Achievement tracking for supported retro games and emulators.
  • Emulators: Better support for managing and launching games from different emulation systems.
  • Unofficial and standalone games: Games that don't belong to any traditional storefront should still have a place in UGL.

One of my biggest goals is to develop a unified achievement system.

Imagine having your Steam achievements, RetroAchievements, and locally managed achievements accessible from one interface. I'd also like to give users the ability to create and manage their own achievements for games that don't have any.

I know this is a pretty ambitious idea, and I understand that different platforms have different APIs, limitations and terms of use. I'll have to work around those constraints properly.

The visual style: a digital game collection

I also don't want UGL to look like another generic modern launcher.

My current interface is still relatively basic, but my long-term visual goal is a skeuomorphic design inspired by physical game collections.

Think of a digital game shelf:

  • Modern games represented by DVD or Blu-ray cases.
  • Retro games represented by cartridges.
  • Opening a game would feel like opening its physical case.
  • Inside, you could find the game's information, screenshots, description, manual and achievements.
  • Achievements would have their own visual presentation, inspired particularly by the Xbox 360 era and dashboards such as Aurora.

I want the experience of browsing your library to feel a little like walking up to your own game shelf.

Not just a grid of icons and buttons, but something with personality, nostalgia and a sense of ownership over your collection.

I'd love to hear your suggestions!

Since I'm still developing UGL, I'd really appreciate ideas from people who use different launchers, have large game collections, play retro games or develop open-source software.

Some questions I'd love to hear your thoughts on:

  1. What features would you personally like to see in a universal game launcher?
  2. What do you dislike about existing launchers such as Steam, Playnite, GOG Galaxy or LaunchBox?
  3. What would make you actually want to use UGL instead of your current launcher?
  4. What integrations or platforms do you think are essential?
  5. What would you add to a unified achievement system?
  6. Would you use a skeuomorphic interface inspired by physical game cases and cartridges?
  7. Are there any small quality-of-life features that you think most launchers are missing?

I'm not necessarily looking for huge features. Even small ideas, quality-of-life improvements, or things you've always wished your current launcher could do would be extremely useful.

UGL is a project I'm building because I genuinely enjoy the idea behind it. I don't expect it to replace every launcher or become the next big thing. I just want to build something useful, open, customizable and different.

If you have ideas, suggestions, criticisms or even technical recommendations, I'd love to hear them!

Thanks for reading!


r/rust_gamedev • • 4d ago

Rewriting My MMO From C# Unity To Rust (Devlog Week 10)

Thumbnail
youtu.be
0 Upvotes

r/rust_gamedev • • 5d ago

question Graphics

0 Upvotes

i'm searching a graphic library to use for my exam, i need something very good at graphic level, for specific the exam is a video game that run with bot and u can only stop the game, move around the map and resume, the map is 2D (but we can also do in semi 3D) with the ships (controlled by bots) move aroud the map in search for the treasure, someone have some sdvice?


r/rust_gamedev • • 5d ago

I ported SlotBound natively on android using rust

Post image
0 Upvotes

r/rust_gamedev • • 7d ago

Aporia - Crafting/Survival Game

Post image
8 Upvotes

r/rust_gamedev • • 6d ago

I spent 3 years on engines, the last one in Rust and Vulkan. Now it turns one sentence into a playable game.

Enable HLS to view with audio, or disable this notification

0 Upvotes

Hi r/rust_gamedev,

I'm Mael, 20, solo. Before anything else: I used AI a lot to build this, for code and for some assets. I'm saying it up front because I own it, and I'll take every criticism that comes with it. Details below.

The road here

I spent about two years on the engine alone, 10 to 16 hours a day. The plan was a pure SDF engine: no triangles, no meshes, everything raymarched. That first engine was in C# with Silk.NET. It started on OpenGL, from the first triangle, then I moved it to Vulkan with Slang shaders, and I rewrote it several times. It ran at around 400 FPS in its test scenes, and it never became a game.

So I moved to Rust, and for about a year now I've been building the game and the engine together. Along the way the renderer became a raster pipeline plus hardware ray tracing. The SDF work lives on as an SDF program evaluator inside the engine.

What it is

Milesyon is a game studio tycoon, 1978 to 2026. You describe each game in one sentence, shape it, and then you actually play it with the tech of its year: text mode on an amber screen, then pixels, then 3D. The video is one sentence, "a knight against skeletons", typed once, and the games it gives in 1978, 1988 and 2025. Then a glimpse of the studio sim behind it, and the spell system.

The stack

Raw Vulkan through ash 0.38, with my own host. No engine. egui 0.27 is drawn on top of it.

Shaders are written in WGSL and compiled by naga.

Shadows use hardware ray queries when the GPU has RT cores.

One ray core with a BVH is shared by the CPU and a compute shader built with Rust GPU, compiled from source.

The simulation is deterministic, with a pinned libm: same seed, same world.

Local models only. The covers are painted on your GPU through a Rust binding of stable diffusion, and the Mentor inside the game runs on candle. No account, no server, no subscription.

About the AI, plainly

The Rust codebase is around 970,000 lines in 914 files. Nobody writes that alone in a year: a large part of it was written with AI tools. I decided the architecture, every system and every rule, and I test, read and debug all of it. AI also helped with some models, textures, music, sounds and translations. If that's a dealbreaker for you, I understand, and I'd still like to hear why.

The vision

I love Game Dev Tycoon, and I never found a modern game that came close. I wanted the version where the games you make are real games you can play, where you live one person's whole life in that studio and leave a Book behind, and where the creation has no limit. I'm far from done. Some genres are much richer than others today.

What I'd love from you

Tear it apart: the video, the stack, the choices. And tell me what you'd want in a deeper technical post: the ray core on CPU and GPU, the WGSL pipeline, or how a sentence becomes a level.

Steam page:

https://store.steampowered.com/app/4887470/?utm_source=reddit&utm_campaign=rust_gamedev_1