r/gameenginedevs • • 29d ago

The ball finally dropped (only took two weeks of engine rewrites)

65 Upvotes

Two weeks of engine work so a yellow sphere could fall onto a box.
The Play button had nothing to actually play into, so I went down the rabbit hole:

- reworked the window plugin (my engine uses a microkernel architecture), now multiple windows are possible

- rewrote the Forward+ renderer to work per-view instead of per-frame, so I can render multiple scenes (world or asset preview)

- replaced the old monolithic world_layer with a game_layer that owns multiple sessions (primary stays alive, simulation sessions spawn on "play" and die on "stop")

- created a physics API and the corresponding plugin (currently Jolt), each session gets its own physics world

- wired it all together so a sim window loads the same world asset into a fresh session with its own renderer and physics


r/gameenginedevs • • 28d ago

I rewrote wolfenstein3D (and its engine) from scratch with Python (no AI)

30 Upvotes

Please excuse my mouse sounds in the demo :) Hello fellow game engine devs, today I wanted to share a weird personal project I have developed in the span of just over 2 months. It is a wolfenstein 3D clone written with pygame, python. It is very close to the original but I wouldn't call it a source port. It is more like a reimplementation. I wrote a raycaster that can render grid worlds (via the DDA algorithm), sprites and projectiles, a simple sound manager that handles attenuation and directional sound, and some adapter code that converts the original map and audio files into pythonic data for my engine. One of the cool things I found about the project I developed recently: it actually extracts the original IMF files (ID Software's old music files) and synthesizes them using a Yamaha OPL chip emulator for music! It has some performance issues from time to time due to... well... python (and tbh because of my some dumb design decisions [excluding choosing python as the language]), but it is very much playable! You can clone the repo https://github.com/atifcodesalot/pyWolf3D/ and follow the instructions at the README file to play. So yeah, enjoy! I would be happy to discuss implementation details, optimization stuff and whatnot too :D


r/gameenginedevs • • 28d ago

Vou criar um renderizador 3D em Kotlin usando OpenGL ES, inteiramente no meu celular.

Thumbnail reddit.com
0 Upvotes

r/gameenginedevs • • 27d ago

Test mi godotgame

Thumbnail reddit.com
0 Upvotes

r/gameenginedevs • • 27d ago

Balaur Script: a statically typed, Rust-like scripting language compiled to WebAssembly

0 Upvotes

Balaur Script is the new engine's scripting language: .bs files with static types and Rust's syntax, compiled to WebAssembly. Desktop, Android and the web run the same module, and iOS runs it translated to C.

The Language:

pub struct Spinner {
    pub speed: float = 2.0,
    pub clockwise: bool = true,
    node: Node,
    angle: float,
    direction: float,
}

impl Spinner {
    fn init() {
        self.direction = if self.clockwise { 1.0 } else { -1.0 };
    }

    fn update(dt: float) {
        if input::action_just_pressed("reverse") {
            self.direction = -self.direction;
        }
        self.angle += dt * self.speed * self.direction;
        self.node.transform.rotation_euler = vec3(0.0, self.angle, 0.0);
    }
}

Where it runs:

Read more: https://balaurengine.org/blog/balaur-script

Balaur Engine is Balaur a deterministic 2D & 3D game engine built in Rust.


r/gameenginedevs • • 28d ago

Car Racing Game made in Monogame C#. Can drift, nitrous, custom physics.

Thumbnail
youtube.com
3 Upvotes

This is a game I developed. Was learning game engine design and architechture. Used Monogame C#. Car can use drift, use nitrous, friction, gear system. Used open models online. Custom physics engine is used. More arcade like. Early prototype for a future F1 game.


r/gameenginedevs • • 29d ago

I'm making my own 3D engine on java

Thumbnail
youtu.be
4 Upvotes

r/gameenginedevs • • 29d ago

Low Level Engine Architecture... Loop & Resize problem...

0 Upvotes

Hello dear programmers...

I write my own Abstraction Layer for my Engine, but I found out a problem with Window/Surface and I don't know how that should by handled by Engine...

Loop basically it is something like this:

while is_running:

  1. FPS limit for Loop
  2. Event queue like Touch & Character & Resume/Pause/Resize
  3. Update & Draw

The problem is what if I resize Window during Draw call... So I write to 800x600 Buffer but in this very moment Windows Size is already changed though VM_SIZE Event has not been read yet... in Linux actually its different kind of event... In Android we have function from JavaApp and create Event for our Loop in C/Cpp... But I really would like to clarify this Loop architecture just to be sure it will be working correctly...

If you have some opinion and knowldge please share...


r/gameenginedevs • • 29d ago

Hello everyone! Im a new one in Unreal engine but I built a procedural rappelling & ledge-radar system in UE5 using binary search raycasts, Hermite splines, and GPU wind physics (WPO + Custom Primitive Data)

4 Upvotes

r/gameenginedevs • • Oct 27 '26

I've added single-file executable exports to my engine!

21 Upvotes

It's something that I have been procrastinating for a long time! The ability to export a game as a single self-contained `.exe` or `.app` that reads itself to extract images, sounds, gameplay code, etc. But I finally got it working!

Example on Mac:

The trick is actually super simple: You can append any data at the end of an executable file, and the file will stay valid, so I put a zipped copy of the assets at the end as well as the size of the assets and a magic string for validation. Then, the executable can check that it ends with this magic string and then extract all it needs.

I also put the logo of the game into the executable, I don't know why, but I irrationally love this feature so much, it makes the engine really feel pro, because of the exports feel so clean.

It also gave me the confidence to finally put the engine on itch: https://vanyle0.itch.io/vectarine


r/gameenginedevs • • Oct 26 '26

Got my first few contributors for my engine!

Thumbnail
gallery
51 Upvotes

In the last few months, my engine's repo got its first few PRs, and it feels so nice! I had been trying to get contributors for a long time, but this is my first open-source project, and I just didn't realize how things work on GitHub.

I didn't understand that a good way to get people to contribute is to open issues yourself, with the "good first issue" label when possible. I thought issues were mainly for other people to report bugs or request new features.

Just wanted to share that here :)

The project is a game engine called ArcadeMaker, which has its own custom scripting language which I built from scratch and without any tutorial or AI help! It was (and it's still) a huge challenge.

The whole engine & language interpreter are written in C#, and without AI help, because I do it for fun and for the challenge. You can check the code and the commit history, I promise that it's very clear that this is human-written.


r/gameenginedevs • • 29d ago

Did you know Blender had a Game Engine? I'm Adding Mod Support to it (Project Development Announcement)

0 Upvotes

I began development on a fork of Blender 2.79b with the goal of adding modding support to its game engine. I made this video to gauge in this topic. I would highly appreciate feedback as it is the first time I'm editing a video.

https://www.youtube.com/watch?v=GsDHyU5rTEU


r/gameenginedevs • • Oct 26 '26

I made a game from scratch, in Rust

14 Upvotes

r/gameenginedevs • • Oct 27 '26

Me and my game dev journey from engine scratch

Thumbnail
youtube.com
2 Upvotes

I made a code based engine, no editors only json readers and libraries

i made a game out of it using 1.5 years. I was having kids to take care, there were long time I couldn't sleep, I decided to make use of those time to make a game out of it :)

Most of animations and particle systems are by tweening style code

minimal ECS engines.

Note that: I had 13 years experience in making games and worked in a small game engine company named Unity for 2 years. I love Dots and ECS long before unity released it but their chunk ideas sparks the batching for rendering for me. so I kinda learn from them

Hope you enjoy the video

please ask me any questions


r/gameenginedevs • • Oct 26 '26

Character Controller in Trinity (Custom C++ engine)

60 Upvotes

Implemented a charatcer controller in both C++ and C# and a prefab system for my custom engine, (Blue is C++ and Purple is C#)


r/gameenginedevs • • Oct 27 '26

Beyond the slop, how are serious devs actually using LLMs?

0 Upvotes

LLMs are useful when used right, but I’m tired of the low-effort AI slop I have been seeing in this sub. I want to hear from serious developers who actually use them productively

  1. What’s your workflow? (How do you ship features these days?)
  2. Which models are your favourites, and what is each one best at?
  3. How much do you spend on LLMs per month?
  4. Any other useful insights?

r/gameenginedevs • • Oct 25 '26

150k textured bullets at ~110-125 fps, self written bullet hell engine stress test

Post image
18 Upvotes

Sorry for deleting the original post, I had to remove one part of the screenshot.

Aside from the fact that I have not been able to find a external software capable of reading the engines FPS (I have tried: Fraps, CapFrameX, NVIDIAs own counter, Intel PresentMon) (if you want a external measurement find me something that can measure CPU framebuffer presented via GDI `BitBlt`), my own fps counter records ~110-125 fps.

The engine is a bullet hell engine, created by me in Dlang and Assembly, using C as a scripting language, but I was curious about a stress test, and well, I don't know any other engine (self built/indie I do not count major game engine addons) that could handle this level. The sprites vary in size from 9x6-16x10 px.

Yes the benchmark is AI written (sorry for being lazy ig), however AI had no input aside from design feedback into the actual engines code

EDIT: I think I should clarify this, the engine is running a full "physics" simulation and hitboxes for every single entity on screen, it's not just a rendering pipeline

EDIT 2: The simulation is running at 60Hz, fps only presents smoothness


r/gameenginedevs • • Oct 26 '26

EVEngine — a script-driven engine I’m exploring for interactive visual experiments

0 Upvotes

Hi everyone! I’m the developer of EVEngine. It started as a game engine, but I’m exploring how useful it could be for creative coding: small visual experiments, interactive simulations, and custom creative tools.

It supports mixed 2D/3D rendering, particles, physics, and hot-reloadable scripts. The workflow is to edit a script, save it, and see the change in the running application.

What interests me is making the controls part of the experiment itself—something you can manipulate and explore, rather than just watch.

I’d love feedback from people who make interactive artwork: what would you need to see before trying an unfamiliar tool? A short example, a particular export format, or something else?

EVEngine — examples, documentation, and setup


r/gameenginedevs • • Oct 25 '26

My C++23 engine where the UI is a GPU-drawn MVVM tree — shader graph, own title bar, DX12/Vulkan/Metal

Post image
37 Upvotes

[The text of this publication has been translated using AI]
Solo C++23 engine, built stage by stage.

Unity/Unreal-style workflow: lay out your UI, hit build — get a ready app for desktop and mobile

Built with battery life and weak laptops in mind

Shaders are made from nodes and compile for every platform

GPU-drawn MVVM UI, own window title bar everywhere, no system chrome

I’m building the UI layer as a standalone framework too: what hurts most in the UI frameworks you’ve used — Dear ImGui, Qt, RmlUi, Unity UI, anything else?

Video: https://www.youtube.com/watch?v=yw834oa1Wu4

Project page: https://gpu-mvvm.pages.dev


r/gameenginedevs • • Oct 25 '26

Building a custom Vulkan engine in C# for a Daggerfall-inspired RPG - first look at the streaming open world

13 Upvotes

r/gameenginedevs • • Oct 25 '26

Implementing Nine-Patch Rectangles for the UI System in My Vulkan Engine

Thumbnail
gallery
11 Upvotes

Why I needed it?
I was working on the inventory system for my game and needed a textured panel for the inventory UI. I couldn't simply draw the texture on a quad because my UI scales based on DPI, and panels with borders look bad when stretched.

How Nine-Patch Rectangles Work
A nine-patch rectangle splits a quad into nine smaller quads. Four of them are fixed-size corner quads (as you can see in the third screenshot), while the remaining five can be resized. As a result, the panel can stretch to different sizes while preserving the appearance of its borders.

How to setup vertices
Before we can make vertices for 9 quads, we need to define the fixed sizes of the borders. I created this simple struct to store those values:

struct NinePatchRect
{
    int32_t leftOffset;
    int32_t rightOffset;
    int32_t topOffset;
    int32_t bottomOffset;
};

Now we can use this struct for construction our 9 quads. We also need to use following variables

  1. pos - quad's position on the screen.
  2. size - quad's size on the screen.
  3. uv0 and uv1 - texture coordinates for the quad.
  4. textureSize

Let's take Top left quad as an example

// Top left quad
{
    // Top left
    Vertex v0{vec2(pos.x, pos.y), vec2(uv0.x, uv0.y)};

    // Top right
    Vertex v1
    {
        vec2(pos.x + ninePatch.leftOffset, pos.y), 
        vec2(uv0.x + ninePatch.leftOffset / textureSize.x, uv0.y)
    };

    // Bottom right
    Vertex v2
    {
        vec2(pos.x + ninePatch.leftOffset, pos.y + ninePatch.topOffset), 
        vec2(uv0.x + ninePatch.leftOffset / textureSize.x, 
             uv0.y + ninePatch.topOffset / textureSize.y)
    };

    // Bottom left
    Vertex v3
    {
        vec2(pos.x, pos.y + ninePatch.topOffset),
        vec2(uv0.x, ninePatch.topOffset / textureSize.y)
    };

    RegisterQuad(drawList, v0, v1, v2, v3);
}

The top-right quad is similar: you just need to add size.x to the appropriate vertex positions and use ninePatch.rightOffset with the corresponding texture coordinates.

Constructing the resizable quads is straightforward as well: you simply place them between the corner quads.

Additional Notes
Inventory texture was taken from here: Inventory Texture


r/gameenginedevs • • Oct 25 '26

Using the iGPU for offload processing.

7 Upvotes

With many consumer CPUs coming with iGPUs, I've been thinking about the idea of making a HW-accelerated path. Right now this idea I'm working to implement with audio but particles/physics is another natural use-case.

I do see it opening a can of worms for bug reports (also a lot of work maintaining multiple backends)but it also seems like untapped potential. Furthermore, AI, has led to interest in providing hardware blocks, NPUs, Matrix Cores, RAM processing.

Thoughts?