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!)
I want to share my experience studying the source code of Godot and its GDextension system.
This post is for those who want to modify, extend, understand or feel that Godot is missing something you want.
- First, If you want to learn how to make an engine or modify engines, Godot is not the way, It's like trying to build a piece of furniture while studying a spaceship, Godot's source code contains millions of lines of code that would take you years to understand, even so, it's the easiest C++ code to understand that you'll find in an engine on the internet, and if you decide to study it, you'll gain a really rich understanding of how to make engines.
- Second, GDextension isn't going to work miracles (almost GPU miracles) it's a rudimentary script extension system that will make certain mechanics more efficient in your game, you'll gain a lot of CPU performance, but you won't gain significant GPU performance because your game will still be tied to Godot's internal renderer, that it's around 200000 lines of code.
- Three, If you really want to learn low-level programming for video games, I advise you to don't create an engine with features you're unlikely to use; just build the game and build it around the technologies you will use; some technologies I highly recommend to make your work more enjoyable: Box2D, Box3D, GLFW, Miniaudio, Raylib, SDL, WGPU.
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.
You can build a layout on a canvas, set flexible widths in the inspector, and check phone safe areas in the editor. Your agent can create and edit those same UI elements in JavaScript. Snack Engine runs on Three.js and WebGPU.
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.
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?
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?