Stream: show and tell

Topic: I'm using Roc for scripting in my game engine


view this post on Zulip Lars Frogner (Sep 26 2025 at 13:35):

I've been working on a game engine in Rust for a few years as a hobby project.

https://github.com/lars-frogner/Impact

When I learned about Roc, I thought it would be really nice to use it as a scripting language for the engine. It took a couple of attempts, but I think it has turned out quite well so far.

There are still some things that will require more experimentation, especially when it comes to state management, but I have gotten to the point where the Roc scripts are actually useful.

For anyone who's interested, the readme contains a description of how it works.

view this post on Zulip Anton (Sep 26 2025 at 14:03):

Very cool @Lars Frogner! :smiley:

view this post on Zulip Richard Feldman (Sep 26 2025 at 14:17):

wow, super awesome!!! :smiley:

view this post on Zulip Isaac Van Doren (Sep 26 2025 at 23:05):

Let’s go!!

view this post on Zulip Hannes (Sep 27 2025 at 04:13):

Amazing! That asteroid mining example looks great! Now I want to see a Roc remake of Deep Rock Galactic called Deep Roc Galactic :joy:

view this post on Zulip Lars Frogner (Sep 27 2025 at 08:35):

Thanks!

Hannes said:

Amazing! That asteroid mining example looks great! Now I want to see a Roc remake of Deep Rock Galactic called Deep Roc Galactic :joy:

I love that idea :joy:

I do have a particular game in mind that's driving the engine development, and I'm getting close to being able to prototype it. It's a physics-oriented space survival game. My background is in astrophysics, so I have lots of ideas for cool physics to include. :grinning_face_with_smiling_eyes:

view this post on Zulip Luke Boswell (Oct 01 2025 at 07:03):

@Dan G Knutson @JovisFilius in case you guys missed this. :smiley:


Last updated: Oct 20 2025 at 12:16 UTC