Skip to content

Latest commit

 

History

History
368 lines (262 loc) · 17 KB

File metadata and controls

368 lines (262 loc) · 17 KB

+++ title = "This Month in Rust GameDev #52 - June 2024" transparent = true date = 2024-07-03 draft = true +++

Welcome to the 52th issue of the Rust GameDev Workgroup's monthly newsletter. Rust is a systems language pursuing the trifecta: safety, concurrency, and speed. These goals are well-aligned with game development. We hope to build an inviting ecosystem for anyone wishing to use Rust in their development process! Want to get involved? Join the Rust GameDev working group!

You can follow the newsletter creation process by watching the coordination issues. Want something mentioned in the next newsletter? Send us a pull request. Feel free to send PRs about your own projects!

Announcements

TODO: I'll be working on adding an email subscription this weekend, so I'll write about it here once that's done :) - Jan

Game Updates

{{ embed_video(type="video/mp4", src="untitled-pixel-wizards-game.mp4", caption="Enemies now perceive, pursue and attack.. and occasionally get burned to death.") }}

Untitled Pixel Wizards Game is a local-multiplayer Noita-like platformer about killing baddies using spells powered by pixel physics. This month was focused on juicing up said baddies:

  • Pew Pew Pew: baddies learned to shoot at players.
  • Hot Pursuit: baddies also learned to chase players! (They're real smart.)
  • Status Update: physically-simulated pixels learn to burn & poison players & baddies.
  • Ragdolls: corpses of dead baddies learn to tumble around all realistic-like.
  • Fiddling with Fire: the fire mechanic figures out how to better burn baddies.

Engine Updates

godot-rust logo

godot-rust (GitHub, Discord, Mastodon, Twitter) by @Bromeon provides Rust bindings for the Godot engine.

After quite a bit of development on GitHub, the Godot 4 bindings are now available on crates.io -- you can immediately get started using cargo add godot. Furthermore, the GDExtension API level can now be specified with a Cargo feature, e.g. api-4-1.

The ScriptInstance API has matured a lot over the past months. This feature allows users to write Godot scripts in Rust, which can be attached to nodes (just like GDScript). Scripts allow for quickly attaching/detaching functionality in a scene.

The overall API has seen several consistency improvements: reorganized modules, self/&self receivers on geometric types, easier element access for Array/Dictionary/Packed*Array. The library has also benefited from Rust's #[diagnostic::on_unimplemented] to improve user-facing error messages.

Discussions: /r/rust, Mastodon, X

See also the devlog article.

Learning Material Updates

The community-beloved unofficial Bevy Cheatbook by Ida "Iyes" is a collection of Bevy tutorials, recipes and advanced documentation. The cheatbook is currently in the process of being updated to Bevy 0.14 and now features the following new chapters:

Olle Wreede of Agical published a complete guide on how to develop a classic 2D shoot 'em up game using the game library Macroquad and the Rust programming language.

It covers everything from a simple Hello World Macroquad application to adding graphics, audio, a shader, a graphical menu, and how to release the game on multiple platforms.

Other learning materials

Tooling Updates

The Playdate console
The Playdate console

Rusty Playdate (GitHub, Mastodon) by @boozook is the large set of crates with bindings, toolset for the full cycle of creating games for the Playdate handheld console.

Big part of the Rusty Playdate project is the cargo-playdate tool (Crates.io, GitHub) that helps to build games for Playdate hardware or a simulator. It works as a cargo-plugin as well as standalone. The tool

  • manages the compilation of your program,
  • builds assets for the crate and its dependencies,
  • generates a manifest,
  • and assembles it all into a bundle that runs on the device or a simulator.

In this month cargo-playdate v0.5 has been released and received massive refactoring, bugfixes and new features:

  • support of cargo's auto-targets (targets such as bin or example that aren't declared in the Cargo.toml)
  • target-specific package-info inheritance from the main package-info
  • package.metadata.playdate.options inheritance from the workspace.metadata
  • incremental builds now work as expected - fixed an old problem where the tool corrupts cargo's cache, which triggered full rebuild

The register decoder in the pd-symbolize-crashlog was also updated. It now properly decodes all available registers such as PSR, CFSR, and HSFR.

Discussions: GitHub, Matrix.

Library Updates

egui_ratatui running in Bevy egui_ratatui running in Bevy

egui_ratatui by gold-silver-copper is an egui widget that is also a ratatui backend. It allows you to create Terminal User Interfaces (TUIs) inside egui. You can try out the web demo to see it in action.

The current release is the product of months of iteration, and is now "stable". It is Wasm compatible and engine agnostic: use it in Bevy, *Quad, eframe, pixels, etc.

egui_ratatui is currently being used for the development of a game and educational software at a startup with no issues so far.

Safe rust bindings to the FMOD sound engine. This crate tries to be as rusty and low-cost as possible, without comprimising on any APIs. Certain APIs, such as loading banks from a pointer, are marked as unsafe, but are still available for use.

Other Library Updates and Releases

  • gdext-coroutines: Run Rust coroutines in Godot 4.2+ (through GDExtension), inspired on Unity's Coroutines design.
  • FunDSP 0.18: FunDSP is an audio DSP (digital signal processing) library for audio processing and synthesis. This release is a rewrite that adds no_std and SIMD support.

Popular Workgroup Issues in GitHub

Interviews

image/GIF description
Arcade cabinet close up

Metalmancy are creating custom and configurable arcade machines. Their flagship game Thetawave is coded in Rust.

Hyelim of Framework interviewed Carlo and Joanna on their games and arcade machines at OpenSauce.

An idyllic scenery made in Tidy Glade
An idyllic scenery made in Tidy Glade

To celebrate the release of Tiny Glade's demo version, Pounce Light's Anastasia Opara and Tomasz Stachowiak have joined 80 Level in an interview to discuss the game's history, proceduralism, Bevy, Rust, self-publishing, and the "cozy games" genre.

Blog Posts

This post by the founder of Dioxus Labs is a direct response to the recently published "Leaving Rust gamedev after 3 years" by LogLogGames. If you've missed the original post, it has made its rounds as a well-written critique of Rust's gamedev ecosystem and shortcomings inherent to the language itself.

Dioxus Labs + "High-level Rust" is a detailed response to the original post, outlining concrete steps to improve the situation and signaling the author's readiness to fund the development of features they see as necessary for the ecosystem to thrive.

Discussions: lobste.rs, /r/rust, Hacker News

Requests for Contribution

Jobs

Ubisoft Montreal is searching for an online Rust programmer for an unannounced project.

Misc. Links

Notable GDC talks

Newsletters

Future news

Editing this newsletter wouldn't be possible without your contributions. Thanks to everyone who helped us this month!

If you want something mentioned in the next newsletter, send us a pull request.

You can also get an early look at pending issues for the next newsletter.


That's all news for today, thanks for reading!

Also, subscribe to our socials if you want to receive fresh news!