r/gameenginedevs • • Oct 04 '20

Welcome to GameEngineDevs

110 Upvotes

Please feel free to post anything related to engine development here!

If you're actively creating an engine or have already finished one please feel free to make posts about it. Let's cheer each other on!

Share your horror stories and your successes.

Share your Graphics, Input, Audio, Physics, Networking, etc resources.

Start discussions about architecture.

Ask some questions.

Have some fun and make new friends with similar interests.

Please spread the word about this sub and help us grow!


r/gameenginedevs • • 5h ago

How many of you start a game engine with the intention for other people to use it?

12 Upvotes

Without fail, every time i tried making a game engine, it was because i wanted to have fun and making a game engine is just a fun activity to do. I never intended for it to actually be used by people. Am i in the minority?


r/gameenginedevs • • 1h ago

Sharing some development experiences from my 50kb JavaScript game built from scratch on a custom engine (with plenty of pictures documenting the rather painful journey from concept to playable game)

Post image
0 Upvotes

I have been a web developer for about 25 years and now run my own software company, with our main product being a fairly dull bit of financial software. Though I have considerable experience with Javascript spanning decades, I'd never really dabbled with games.

However, I came across some YouTube videos by veteran game programmer Jon Burton (co-founder of Traveller's Tales) in which he talks in detail about how he was able to achieve certain effects on the 16bit hardware of the 90s consoles. The channel is called "Coding Secrets", if anyone is interested. It really captivated me and I decided to, purely as a hobby project and challenge to myself, use some of the techniques he discusses to build my own game, using pure JS.

The plan: I wanted to build something from scratch - no engine, no assets... a completely blank canvas. I also wanted to honour the extreme memory limitations that Mr Burton had to contend with back in the day, and set myself a max file size of 50kb. Within this I wanted to build a fully fledged game that could run on modest hardware, in any modern web-browser - and not just a crappy browser game, something genuinely fun and good looking.

I decided to start with the absolute basics - to get a basic tile system up and running, with basic player movements, a basic enemy AI routine and a rudimentary map generation system. As mentioned, I had considerable JS experience, but I'd not really done much in the way of graphical work - so it was a nice change for me.

At this stage I didn't have much of a plan for the actual game, but just wanted to get some basic systems in place.

The initial build: Getting the above in place was relatively straight forward. I decided straight away, due to my limited experience of making games, to stick to a 2D JS Canvas. This was my comfort zone, and also I felt gave me a better chance of hitting my 50kb max file size.

Rough but ready!

As seen in the image above, getting these basics in place was relatively easy. I was surprised at how easy it was to work with the canvas and after looking at some examples online, I was able to throw together a very basic system that essentially allowed me to create a broadly sensible random map, navigate the map with the player, have enemies that would try and shoot the player, and an exit point.

It was basic, but it felt like a start. It also made me start thinking about what I was actually trying to build.

The concept: Like all first time gamedevs, I immediately decided I wanted to make an RPG. Thankfully, after a bit of Reddit searching, I quickly decided that was a stupid idea. To be fair, at 43 years old, I'm not really a fan of narrative heavy games, so quite why I felt qualified to build one remains a mystery. I much prefer short, pick up and play games, with a nice simple gameplay loop.

With that in mind, I decided to combine two of my favourite games - Super Meat Boy's "perfect run" mechanics and Super Hots puzzle shooter, "time moves when you do" gimmick. It was still a bit vague conceptually, but it gave me a bit of direction and a sense of where I needed to take the underlying action.

I very early on decided on the name NULLFRAME - linking to the concept in physics of frames of reference and time. It also just sounded cool.

Destruction: I decided early on that I wanted to allow for mass player destruction - maps should be shaped by the combat. As I was using a simple tile based system, this was pretty simple. Maps were essentially just represented by 0s and 1s - zero being empty space and 1 being a wall. It was easy to extend this to include other tile types, and then combined with the battle logic, update the maps accordingly in real time. Combined with some particle effects, it wasn't hard to get some satisfying destruction going, even in my early build.

A laser beam destroying anything it touches!

Time manipulation: Like Superhot, I wanted the gameplay to be less frantic and more strategic. I basically took the "time moves when you move" concept, and flexed it a bit to suit my slightly more arcade-like gameplay.

Essentially, NULLFRAME uses delta time to determine how much the simulation should advance between each rendered frame. This is calculated from the actual time elapsed since the previous frame, allowing the game to operate at a consistent speed regardless of frame rate. (An early mistake I made was linking this system, somewhat accidently, to framerate itself. This started causing enormous issues and thankfully I realised early enough to prevent having to re-write large parts of the logic).

The engine then maintains a separate time multiplier, which is dynamically adjusted based on the player's movement and actions. When the player is stationary, this multiplier gradually approaches 0.04 (so not a total standstill) and when the player moves, it returns towards 1.0.

Graphics: At this point I had a working game, though it looked rough as hell. Just squares moving about and shooting each other. I started to explore potential art options, but quickly realised a) I can't draw and b) this would immediately eat up my 50kb max file size.

With that in mind, and recognising I was much more experienced with programming logic than art, I started exploring procedurally generated enemies. Given I was working in a 2D JS canvas and needed to maintain performance with large numbers of enemies on the screen, I had to be realistic about their complexity. In the end, partly due to my lack of art skills and zero budget, I decided to lean into my blocky world aesthetic, and give my enemies a sightly childlike quality - which I thought it would be fun to juxtapose against a slightly more intimidating environment.

With that in mind, I game up with some pretty rough looking early enemy designs, that whilst still rough, were better than my squares.

At the time I was pretty pleased with my artistry. Though I was acutely aware many of the enemies looked like they had giant erections. But I thought I'd address that later.

Environment and fake 3D: Whilst the characters themselves were going to have an almost childlike quality, I knew I wanted the wider environment to feel more clinical and oppressive. I was clearly not going to be able to create a realistic world, but I felt confident I'd be create something that felt more threatening. The first step was to create a sense of 3D - I wanted the walls (that were essentially just a basic tile map) to feel like real objects. That would also make the destruction more fun.

In the end I decided to create pseudo-3D walls by projecting the upper coordinates of each wall tile away from the centre of the viewport. The engine connects the original and projected coordinates using shaded polygons, dynamically adjusting their geometry as the camera moves. This creates the illusion of three-dimensional perspective - whilst collision detection and other gameplay systems remain entirely two-dimensional. This sort of maths was also more in my comfort zone, but the effect actually worked really well.

The fake 3D walls immediately added a sense of depth to the world. They also looked really good in motion and had very little processing overhead.

Line of sight: Because I wanted the game to be strategic rather than mindless, I wanted the enemies to only attack when they could see you. This was relatively easy to implement with simple ray casting - where we essentially draw a line between every enemy in the world and see whether it is unbroken. Due to our simple, blocky tile map, this was very easy to do. Then it was very easy to update the enemy AI routine to take this into account.

Debug mode, showing how the engine checks for line of sight.

Fog of War: With the above in place, there was clearly a lack of parity - enemies couldn't see you, but you could see them. So I needed to add a form of Fog of War - that would only allow the player to see what they could realistically see from their position. Again, this was relatively easily achieved with another ray cast, this time from the player and outwards. The 2D tile map made it trivial to check for intersections and then the FoW function could do its thing relatively inexpensively. Again, using the tile system and an array, I was able to have to different types of fog:

- totally unexplored = black
- explored but not currently viewable = greyed out (you can see the map, but not enemies that might be in those areas)

Now both the player and enemies had the same vantage of the map - making things fair.

Optimisation: At this stage things still felt super rough, but the core logic was in place and I had an engine that was working. It was at this point I started optimising everything I had built, to reduce the codebase size as much as possible, but also to ensure I wasn't creating enormous processing overheads.

I was using a very basic loop model, whereby every frame the game would call various functions, to essentially deal with the logic and rendering each click. Because we were just moving around geometric primitives, rendering was cheap, but the underlying logic was starting to put pressure on the CPU. I started to implement simple AI degradation, which basically slowly turned off an enemies AI, line of sight and animation routines the further they were from the player. This immediately meant I could have large number of enemies, with little overhead at any one time. I also looked at improving functions that didn't need to run every frame to again dramatically reduce CPU overhead.

Lighting and shadows: Now it was time to start polishing the hell out of the giant turd I had made. This was by far the most fun bit of the whole process and it was amazing how relatively simple rendering hacks could massively improve the look of the whole thing.

Lighting is rendered using layered gradients and transparency effects. I fake dynamic player shadows by projecting shadow geometry away from the light source relative to the player's position. As the player moves, the shadow's direction and length are recalculated, creating the illusion of real-time light interaction within the 2D environment. The best bit is, the routine allows for essentially unlimited "light sources" and shadows, with very little CPU overhead.

I have been very pleased with the lighting effects, despite being very simple.

In terms of the floor - I found this extremely fun to experiment with. Essentially I generate the floor textures procedurally using cached, repeating canvas patterns. I then combine pixelated gradients with a secondary reflective layer that shifts relative to the camera to simulate metallic surfaces and a slight reflection.

Panel seams and decorative decals are drawn directly onto the floor, again procedually. Decal placement is determined by hashing tile coordinates, ensuring details remain consistent as the player moves without needing to store individual decal positions. Only tiles within the visible viewport are rendered, keeping the computational overhead low.

I took a similar approach to walls - wall decals are just simple additional decorative elements within the pseudo-3D rendering layer. By aligning these details with the projected wall geometry. Like everything else, they are drawn using simple geometric primitives - that look rather rough on their own, but once embedded work well.

Wall decals and an animated effect I apply to indestructible walls. This was needed to the player couldn't just blast their way to key areas,

Improving enemy and player designs: Once the environment started taking shape, I needed to revisit my enemies and character models. I didn't want to depart from the childlike look, but I needed to make them look more consistent. This took me ages and, again, as a non-artist, i found this quite painful. The main improvements were to give them actual arms, and then incorporate this into the aiming mechanism for weapons. I found that making the weapons in the game slightly comically large, added a lot of personality to the individual enemy types.

To a great extent, the large and often ridiculous weapons add a lot of personality to the player and enemies. Eye tracking and basic facial expressions also give them a lot of personality, despite the fact they are essentially squares.

Map editing and sharing: The core game allows me to use procedurally generated levels, custom-designed maps, or a mixture of both. For this, I wrote my own map editor, which allows me to import, modify and export levels using a compact, custom map encoding format. This stores the map geometry, enemy placement, weapons, items and various simulation parameters as a single string, which the game engine decodes and reconstructs at runtime. This also allows players to share custom levels directly through a URL, without requiring any additional files or server-side storage.

The public map editor that I also use to build custom levels. I can also use the procedural generation system, either fully or specify certain custom conditions. Anyone can use the map editor to build a scenario, and then the whole thing can be shared as a URL.

Polish, polish, polish: I've subsequently spent the following months simply polishing and refining existing systems. A lot of the fundamentals haven't changed much, but I have heavily optimised as much as possible. The current game (beta) looks a million miles better than where I started, but a lot of the core systems haven't changed much.

The flamethrower is particularly fun to play with.
I started playing around with modifications to the main engine, allowing people to create custom games - like "Unspeakable Horror" where you have to close corrupted rifts whilst being stalked by a monster that you can't kill, but only scare away with fire. I also added a Alien inspired "Motion tracker", to add to the dread :)

Next steps: The game is currently in beta, and I'm continuing to refine. I have no commercial aspirations for it, and anyone can play it via https://nullframe.app

For me this is just a hobby project.

The next step is to finish the campaign mode, and then look at trying to get the file size back under 50kb. At the moment it's around 61kb.

Performance wise it runs at 60fps on relatively modest hardware, although I have noted that browsers will sometimes throttle down to 30fps - particularly on laptops when running on battery. It's also a lot smoother on Chromium browsers. Firefox for example works, but the framerate can suffer - I think because of SpiderMonkey, Mozilla's JavaScript engine. I'm not sure whether I can do much about this, but am continuing to play around with optimisation.


r/gameenginedevs • • 1h ago

A System for Building from the Editor

1 Upvotes

I'm building this using a layered architecture. Regarding the blue section in the image,

I want to implement the process that runs when the user clicks the “Build” button in the editor. How should I go about implementing that process?

Should I just run CMake and link it to the .lib file?

Also, since users will be using C#, I’d like to know how to manage

public and private functions in C++. The reason is that I want to prevent spaghetti code.


r/gameenginedevs • • 13h ago

Extending Bitsy into a more capable game development engine — Shitsy

Thumbnail
gallery
4 Upvotes

I recently released the first public prerelease of Shitsy, a free and open-source fork of the Bitsy game engine.

The project started when I was developing a horror game in Bitsy and found myself repeatedly modifying exported HTML files to implement functionality that wasn't available natively.

Eventually, I decided it would make more sense to integrate those systems directly into the editor.

Some of the more interesting additions include:

  • Separating reusable sprite artwork from individual instances.
  • NPC movement and contact scripts integrated into the existing visual scripting system.
  • Enemy behaviors including chasing, fleeing, patrolling and cross-room stalking.
  • A building editor that visualizes room connections and multiple floors.
  • Persistent game states, checkpoints and configurable death handling.
  • Snapshot-based undo/redo that includes custom project metadata.
  • Electron-based desktop distribution and standalone Windows game packaging.

I wanted to retain as much of Bitsy's original architecture and editor experience as possible, keeping most of the new functionality isolated in a dedicated mods directory.

The project uses JavaScript, HTML, CSS, Node.js and Electron.

I'd particularly appreciate feedback on the architecture, implementation and potential improvements. I'm still a CS student, so this has been a pretty substantial learning experience.

Source code: https://github.com/vcscocca/Shitsy

Everything is open source under the MIT license, with attribution to the original Bitsy project.

And yes, I actually called it Shitsy.


r/gameenginedevs • • 8h ago

Is heap allocation on a string oki?

0 Upvotes

Hey yall. I’m making a string type and I’m using malloc to allocate enough memory for the string.

I know there are different ways of doing this. I’m thinking of switching over to use my arena type but I was wondering if this was oki for now?


r/gameenginedevs • • 15h ago

After 4 years of development, we’re almost ready to launch K-Engine—a modern, no-code visual game engine inspired by classic authoring tools.

Post image
0 Upvotes

Four years ago, we went looking for a game engine that didn't require heavy programming—something with the intuitive workflow of classic authoring tools (like Klik & Play, Director, or Flash), but built for modern games. We couldn't find exactly what we wanted, so we started building K-Engine.

Our goal is to combine that nostalgic, visual-first logic with modern capabilities—including advanced shaders, robust graphics, and creative extensions—all without writing a single line of code.

We’re gearing up for our first public beta soon, and we want to shape it with feedback from actual devs and creators.

What’s the #1 feature you wish modern visual engines did better? (Or drop a comment if you'd like an invite when the beta drops!)


r/gameenginedevs • • 18h ago

BinomialLLC - Deblocking compressed textures in a shader

Thumbnail github.com
0 Upvotes

r/gameenginedevs • • 20h ago

When the engine comes alive

Thumbnail reddit.com
0 Upvotes

r/gameenginedevs • • 14h ago

We're building Mirai: a native 3D engine where AI agents are first-class (Windows, macOS, Linux)

0 Upvotes

Hi! We're building Mirai, an open-source native 3D engine and editor written in Odin.

- Agent-native: every editor feature is a typed MCP, so Claude, Codex or any agent can drive it

- Native on Windows, macOS and Linux

- Fast compile times: the full engine and editor rebuild in about 13 s

- Live collaboration, built-in multiplayer and physics, real-time ray-traced GI

- No telemetry, no fees

More here: https://x.com/mirai3d/status/2127528627575116192

Repo: https://github.com/mirai-engine/mirai

Feedback very welcome!


r/gameenginedevs • • 1d ago

misa77 : A FOSS alternative to Oodle, with 2x faster decompression than zstd

Thumbnail
github.com
4 Upvotes

misa77 is an LZ-based compressor that targets situations where one can afford slow compression, but requires good ratios and fast decompression in return. Video games involve perhaps the most prominent application of such workloads, as game assets can be compressed once (slowly) on the developer's end, but it's very beneficial for compressed sizes to be small (distribution is easier), and for decompression to be very fast (assets can then be decompressed on demand at the user's end).

Most engines today use some subset of Oodle, LZ4, zstd, LZMA and a few other codecs, with the first 3 being the most common. While Oodle has certainly been dominant in this niche, it's proprietary (owned by Epic Games) and cannot be used outside Unreal Engine without a license.

misa77 aims to fill this Oodle-shaped hole amongst open-source codecs. It is much faster at decompression than open-source codecs at similar compression ratios. Detailed benchmarks can be found in the README.

I'd be happy to answer any questions.


r/gameenginedevs • • 12h ago

Why are some experienced game engine developers so dismissive of beginners?

0 Upvotes

Why are some experienced programmers so dismissive of beginners?

As a beginner, I've noticed that whilst some programmers are incredibly supportive and helpful, others seem more interested in criticising and discouraging people who are trying to learn.

Surely every experienced programmer was a beginner once?

I'm learning whilst developing my own projects, making mistakes, solving problems and gradually building my knowledge.

I welcome constructive criticism because it helps me improve, but there's a massive difference between constructive criticism and belittling someone for their lack of experience.

Why do some programmers behave this way rather than encouraging newcomers?

Wouldn't encouraging more people to learn programming be better for the community as a whole?


r/gameenginedevs • • 1d ago

Launching my third game built with my custom engine this week!

17 Upvotes

This week I'm launching my third game, PactSworn, using my humble little engine! I never intended for my engine to come this far, so there's a bunch of jank and hard-coded stuff that's really starting to wear me down.. thank god I'm close to done haha

I don't really have any impressive tech to show with this game, but I am surprised by how well it ran before I even did any optimization. Being a survivors like game, there's sometimes thousands of enemies in the game at a time so I though I'd have to optimize the game early on but it ended up just never really being an issue, save for a few edge cases. In the end, I still sunk a good bit of time optimizing some of the easy stuff, like instanced rendering and staggering enemy updates.

There's some stuff I'm quite proud of too, like how the tilemap visuals turned out! The tiles are procedurally generated, so it took quite a bit of tweaking to get the lighting to look how I wanted it to, and there's 3 parts to it. There's a few tile variations that can get generated, giving the base map a noisy texture. Then, I assign a brightness value to tiles that are close to "things" on the map, which makes them blend in with the environment better. Finally, I have dynamic lighting that includes things like point lights and the soft vignette effect. It's all pretty simple, but I'm happy with how it turned out!

My little engine has taken me far, but this might be the last game I ship on this little guy.. though that's what I said last time so I guess we'll see hahaha


r/gameenginedevs • • 23h ago

Doku2D Python Game Engine

Thumbnail
reddit.com
0 Upvotes

r/gameenginedevs • • 1d ago

C# Shader Language

Thumbnail
reddit.com
0 Upvotes

r/gameenginedevs • • 1d ago

Got a prototype editor working for Wima Engine

3 Upvotes

Took about 8 months of going back and forth from the editor and the game engine. Got it working at least for 2d entities. Planning to now make meshes and sprites draw onto the screen next.


r/gameenginedevs • • 23h ago

My own programming language and game engine now running a two-level Brick Breaker! Both levels are fully playable, with increasing ball speed, scoring, collision detection and Game Over. I'm still learning programming as I develop my language and engine, but seeing everything come together is an a

0 Upvotes

r/gameenginedevs • • 2d ago

General realtime gpu ray tracing

33 Upvotes

Running at 512x288 reconstructed to 800x450 (5x faster without temporal upsampling)
GPU: Intel HD Graphics 5000
CPU: i5-4260U
8GB of shared DDR3 memory.


r/gameenginedevs • • 1d ago

I've made an Open Source game engine for those that want a Unity alternative

Thumbnail gallery
0 Upvotes

r/gameenginedevs • • 2d ago

Dorian Graphics Engine - Complex GLTF Models

Thumbnail
youtu.be
10 Upvotes

I've been working on a graphics engine called Dorian since March this year. It still has a long way to go, but some of the rendering results are starting to look semi-professional.

I kind of got forced into it because my previous 20 year old engine - Ionian - cannot be built on the latest Microsoft tools :/ Still, the learning journey has been fun!

Dorian has a few interesting architectural features like the fact it's an ECS-hybrid which allows for scaling in the future. It also allows one to easily add new behaviours to anything without the need to re-architect (though tip of the day - make sure you write some decent debugging tools for ECS otherwise it's a nightmare to debug).

Creating different cameras in ECS simply by dynamically attaching components.

Dorian also runs on Direct-X 11, but this is in an independent project away from the main engine. The idea being that I should be able to add other graphics backends - although I'm under no illusion as to how much harder DX12 and Vulkan are.

The project structure

The video above is mainly about the inclusion of complex GLTF models into the engine to check that the rendering pipelines work properly. You also get to see it rendering multiple worlds in multiple windows simultaneously.

Rendering multiple scenes and worlds in resizable windows.

Pipelines in Dorian are also massively configurable. It supports four pipelines - Rendering, Animation, Simulation and World-Per-Frame. You just register ECS systems with them and away you go. (You can even create your own ECS systems if you want to do something different).

Configuring one of the pipelines.

The pipelines can be used in may ways too. In the above testbed one pipeline is feeding all the windows, but I also tried creating one pipeline per window and that works great too.

It's coded in c# on top of the Vortice packages.


r/gameenginedevs • • 1d ago

Zero Polygon, Zero Texture, Zero UV Mapping, Voxel Style Game Engine

Thumbnail
gallery
0 Upvotes

Voxel Game Engine with zero view distant limitations with trees. If you keep going up you end up in space etc. Fully Random Procedural Planet generation system. Because of near zero texture memory being used it's impossible to run out of video memory no matter how many planets are added. This is my 12th game engine design. I've been testing out different game engine design theories for a while now (My Own) or at least I like to chase after wild random but highly creative/innovative ideas for game engine designs and most of my game engine design ideas work extremely well.

It's not easy designing a game engine especially because most of my ideas are NOT industry standard methods so basically it can sometimes take weeks to get some of my ideas to work but eventually I tend to always get things working by simply never giving up and by not being afraid to waste my time on ideas that don't work and to be completely honest most of my unique rendering theories didn't work at 1st but unlike most people/companies that walks away from failed ideas I generally stick with it or figure out a way to make any crazy rendering idea work then when I finally get it working I push the project further via adding features and such then somehow when 30-60% done I end up getting other ideas which eventually leads me trying out other innovative game engine ideas which renders graphics/game objects "Differently" than typical industry standard engines. In the screenshots all of the textures can actually be tweaked to produce like 5 times better results "Not real textures/texture surface simulation" but I just took screenshots as is mainly showcasing tree generator with unlimited view distance of trees which can be easily seen from planet's orbit.

That being said I'm actually on my 14th game engine design but this is my 12 game engine design. No tree generated is the same via procedural tree generator and all world settings are fully adjustable via comprehensive well categorized World Generator Menu system with so many options via change mountain sizes/shapes real time including color changes of any part of the world / live running game in real time via zero compilation for games etc. Yeah I know some may get puzzled by my methods but honestly I truly love taking drastically different approaches to how a game engine should work including "what defines a game object" within my specific game engine designs. By changing how a typical game engine object comes together in my engine its actually not difficult to engineer around typical limitations when it comes to extreme amounts of game engine objects.

All in all to me in my mind it matters not how great my game engine can become if it will be a nightmare to use therefore I've been frying my brain coming up with the most intuitive ways I can think of to build games in my engine or at least my latest 14th game engine design makes it drastically easier to build games via specialized tools without needing to rely on expensive asset libraries etc with pretty much most things needed just simply built into the engine itself but without the same limitations you get with well known "Industry Standard Game Engines".

What my game engine will be strong for is feature rich "Open World/Open Galaxy" game development including "Side Scroller 3d/top down 3d" games. This game engine supports an unlimited amount of textures or more accurately my last or come to think of it ALL of my game engine designs support an unlimited amount of textures with it being impossible to run out of video memory even with millions of different textures it doesn't matter because my engine only simulates any texture surface so no real textures. Anyway just wanted to share a few screenshots.

Please don't hate on me for not using regular textures/regular polygons lol me personally I just think game engines should be allot better/more innovative which would in turn help to produce far better games with far less limitations. I hope to release my latest game engine design sometime next year as it has already shown high levels of promise 👍🏾


r/gameenginedevs • • 1d ago

STACity — Seven weeks building a custom game engine and creation suite for fun

0 Upvotes

Why build my own engine?

Because it's fun to me :)

For the past seven weeks, I’ve been building STACity, a game engine and creation suite written from scratch in C# and .NET 9. Give it a seed and it generates a whole cyberpunk city. ASCII and pixel glyphs render most of the world, with cel-shaded, low-poly characters and vehicles. You can open the city in the editor, change it, then play in it. That open-world sandbox is both the showcase and the test bed.

I built the renderer, simulation, editor, asset pipeline and file formats from scratch. The engine uses zero NuGet packages, and I wrote the Direct3D 11 interop for the GPU glyph compositor by hand. I developed and benchmarked it on a Lenovo Legion Go.

What it’s like to play

You can walk down a street, enter a shop, take a lift or ride the metro. If you’d rather travel above street level, you can sprint, slide, wall-run or use a tool I have been calling the Gravity Hook that switches its traversal styles. I designed it to be easy to pick up. You can grapple toward a surface, swing around a tower Spider-Man-style or use it to pole-vault high over buildings. Each city has around 800 bridges and walkways stacked at different heights, so there’s plenty to move between.

At street level, traffic follows signals, queues at junctions and gets into collisions. Pedestrians chat, use doors and lifts, and react to explosions. You can carjack any car, tune the radio and drive in first or third person. Vehicles have working digital dashboards, and damaged cars can catch fire and explode. Skycars weave between the towers, and you can fly one yourself.

City generation starts with the terrain. Streets follow the grades and district plateaus, and a ring road wraps around the city’s irregular outline. The road generator follows 24 numbered rules covering details such as roundabouts, boulevards and the way an alley meets a main road as a driveway. A road-engineering study informed the highway ramps and interchanges.

There are twelve building families, with designed shopfronts and enterable interiors. Both the sky metro and underground metro have stations and rideable trains. Beyond the city is a wasteland of reactors, power lines, small towns, farms and billboards for invented brands. A full day and night takes 20 minutes.

Inside the editor

The editor is a standalone desktop app with a 2D plan view, a 3D scene view, searchable tools, built-in help and full gamepad navigation. "Generate City" builds a city from a seed in one click, shows its progress and produces a report you can use to check road connections, lanes and ramps.

The two forges are the same tools that populate the world. Both have live previews you can orbit, part tabs, palettes, presets, undo and batch generation. You can also lock the parts you like and randomize the rest.

- Character Forge builds characters from parametric male and female bodies, ten heads, clothing, hair, cybernetics and accessories. Spring bones give the clothing motion. Every pedestrian is generated to suit their district.

- Vehicle Forge builds all the city traffic. It supports 11 vehicle types, from compacts to buses and tractor-trailers, with around 8,000 valid configurations. Doors and suspension work. Damage ranges from scrapes and dents to burst tires, detached parts and explosions.

- Animation Studio works directly on the player’s skeleton. You can scrub a wall run or grapple cast frame by frame, drag a joint into position and key the pose. It also supports animation imports, presets, undo and redo.

- Creator Studio lets you assemble models from parts, attach them to joints and animate them on a timeline. Its mesh tools cover point editing, UVs, basic sculpting and four-bone skin weights. Motion helpers turn basic moves into keyframes you can edit.

The Rendering Research Lab shows the same scene through five rendering methods side by side. These include the production ASCII renderer, a PS1-style experiment, a conventional shaded 3D diagnostic and two experimental glyph methods. You can compare each against a baseline and export the measurements. The Character Studio Research Lab does something similar for sprite stand-ins and rigged 3D characters.

The Shader Panel has before-and-after views for cel shading, outlines, neon glow, fog, color grading, rain and wet streets. You can change quality tiers and measure what each effect costs on your own machine.

A few smaller tools round out the editor:

- Sign Studio creates animated neon signs and ads for the generator to place on storefronts.

- Audio Studio lets you audition procedural vehicle and radio sounds and export WAV files.

- Interior Editor gives you a dollhouse view of building interiors. The Asset Library lets you browse and preview models, props and signs.

- In-game settings open with F2. Every setting has a plain-language explanation, and presets are available.

- Agents exposes the engine’s own MCP server. An AI agent can inspect a project and propose edits. You approve each edit and can undo it.

- Hacking & Networks Lab is still an early shell.

Seven weeks by the numbers

- $120 total for two Claude Pro subscriptions and one Codex subscription, at a combined $60 a month.

- 879 commits on the main development branch and 885 across all branches, with work on 44 separate days between 9 October and 29 November 2026.

- About 100,000 lines of C# in the engine, plus roughly 62,000 lines of tests.

- A 138-page game design document, now on its 18th version.

- 229 documentation files totaling around 660,000 words across designs, research studies, plans, handoffs and logs.

Claude Code accounted for about 11.25 billion tokens across 23 sessions and roughly 35,000 model responses. Most of that figure was cache traffic. About 11 billion tokens were reads of code and documents already in context, 207 million were fresh context written to cache, and 35 million were model output. I mostly used Claude Opus, with Sonnet handling much of the sub-agent work.

OpenAI Codex also worked on the project. Its surviving logs account for around 90 million tokens. Most of those sessions are gone, so I don’t have a complete total.

How I built it

AI coding agents wrote most of the code. I acted as director, designer and art lead. My biggest lesson was how much of that job came down to writing things down. A fresh session had no memory of why I’d rejected a render or what had gone wrong at a junction two weeks earlier. I probably spent as much effort on plans and documentation as I did on directing the code.

The 138 page game design document divides the engine into 76 capability packages, covering everything from rendering, physics and audio to scripting, hacking and an optional tabletop-RPG layer. Each package has a milestone, dependencies, a functional spec, an acceptance checklist and a status line that says what actually works.

“Verified” has a specific meaning in that document. A feature has to work in the editor and in an exported build, survive a save/load cycle, and have automated and visual tests. Standalone export is still missing, so nothing qualifies as verified yet. The latest revision, v7.0, brought the spec back in line with the engine. I added ten packages for systems that had grown during development, recorded requirements I’d changed or retired, and gathered the standing rules into one chapter.

Day to day, the process looks like this:

- Give each round a finish line. The plan has 13 major gates, from baseline and housekeeping to production readiness. Each gate has a written scope, pass criteria and an evidence folder. A performance gate might require the worst frame to stay under 50 ms and the 1% low to stay above 30 fps in all three test scenes. Agents work in rounds capped at 90 minutes, commit what passes and report back.

- Review real gameplay. At the end of a gate, separate critic agents compare gameplay frames against the visual guide. Blockers get addressed, and smaller issues become tickets. Benchmarks and screenshots come from a canonical generated city using real play settings.

- Make visual problems measurable. I hated the stair-stepped edges that showed up in motion and are often found in ASCII games. The engine now has a test that counts stair corners per frame while driving, flying, walking and exploring interiors. This has reduced a significant amount of visual noise. A visual change has to pass without raising that count.

- Audit the plan against the build. Every few weeks I check the code against the design document, correct stale claims and reset priorities. Frame rates, test counts and known defects get dates and links to evidence. That makes it clear whether a studio actually works or just has a tab in the editor.

Larger features get their own plans. Vehicle Forge had an 18-gate, 600-line plan, an audit of the existing code, an art standards document and an interior brief. The Character Forge design runs to more than 1,000 lines.

What carries from one session to the next

I turned a lot of my visual preferences into rules an agent could check. There’s a 71-rule visual identity guide based on my concept sheets, 24 road-generation rules, 15 outskirts rules, and separate rules for highway ramps and z-fighting. The city structure guide draws on urban-design research, including space syntax and procedural city papers. Most rule sets have a command that checks a generated city and reports a pass or fail.

The repo holds 84 research studies covering existing projects, road engineering, crowd and traffic performance, procedural generation, animation pipelines, wall-run controls and camera design. Each study distinguishes observations from inferences and open questions. I use those findings to develop original designs.

A few documents do most of the work between sessions:

- LESSONS_LEARNED.md holds about 4,400 lines of reusable findings, implementation traps and measurements.

- 37 decision records, architecture and testing notes, and a roughly 3,000-line development log explain how the engine reached its current state.

- 32 handoffs and audits help a fresh session resume partway through a gate.

- 13 specialist agent definitions cover critics, designers and engineers. One is a “stepping-clarity guardian” responsible for reviewing visual changes.

- Around 40 standing preferences capture decisions I don’t want to repeat. Some are visual, like keeping trees out of the city, using cel shading throughout and aiming for low poly designs. Others govern the work itself, like running agents one at a time.

Tools and assets

I used C# and .NET 9 for the engine, WinForms for the editor and Direct3D 11 for the GPU glyph compositor. Claude Code and OpenAI Codex handled most of the coding work.

For 3D assets, I used Blender through an MCP server so agents could build, inspect and export models. Some vehicle bases started as public-domain CC0 low-poly assets and were heavily reworked. I retargeted Mixamo clips to my own rigs, then refined them in Animation Studio. Some textures are AI-generated, with art direction and cel shading. Sound effects came from ElevenLabs, and music came from Suno. There is in game music and sound effect audio that is not heard during the trailer.

Where it stands

The dense city core currently runs at about 43–54 fps on the Lenovo Legion Go, against a target of 60. Combat is being reworked, several studios are still early, and the sandbox currently runs from the editor. My next priority is making a Combat Forge that allows players to build combat movesets and animations to be used in game and assign them to enemy and player types at the press of a button. (for example, large enemies can get have a grapple based attack moveset while small enemies have faster, multi hit attack movesets) And down the line I want to add modular rulesets for different game types.

Happy to answer questions about the custom ASCII and Glyph renderer, how the city rules fit together, what it’s like to build on a handheld, or how I kept seven weeks of AI-assisted development moving in the same direction with a tremendous amount of planning and documentation.

I have no release planned, this is a personal passion project that I am using to learn solo game development and design. At some point I may make a game, but right now I'm just playing around.


r/gameenginedevs • • 2d ago

I want PS1 graphics in my game, but crisp transform arrows in my 3D editor

Thumbnail
gallery
37 Upvotes

While building a PSX horror game in Unafraid Engine, the 3D engine I’m developing, I noticed the move arrows were getting the same pixelated look as the house. I like that look on the wallpaper. On a narrow axis handle it just makes it harder to tell what I’m grabbing.

The first shot is the house in the editor. The second is the interior as the player sees it. I want to keep the game preview while moving a prop, with the handles and selection outline still readable. For those building editors, where do you draw the grid and outlines relative to the low-resolution pass?


r/gameenginedevs • • 2d ago

3DS Maker is HERE!!! Make your own games for a real Nintendo 3DS

Thumbnail
youtube.com
0 Upvotes

Hey everyone!

So yeah. After making tools for the Game Boy, Game Boy Color and GBA, I figured I'd try the 3DS next.

Then I rebuilt VORTEX for it and got my original 3DS racing online against the browser version. Things escalated. Again.

I've just released 3DS Maker! It's a development tool for making your own 2D and 3D games for the Nintendo 3DS.

- Write Lua-like code with init(), update(), draw_top() and draw_bottom().

- Use the 3D slider to give 2D sprites layers of depth or look into a 3D world.

- Build levels and animate actors in the built-in 3D editors, or import your own animated .glb models.

- Draw sprites and vector art, make music and sound effects, and preview both screens right in the editor.

- Connect an AI agent through MCP if you want help working on your project.

The editor runs on Windows and Linux. You can export .3dsx and .cia builds for a homebrew-enabled 3DS, as well as games for Windows, Linux and the web.

3DS Maker - https://arturduleba.itch.io/3ds-maker

Play VORTEX in your browser - https://arturduleba.itch.io/vortex

Thanks to everyone who's been following along since GB Maker. If you make something with it, I'd love to see it!