Skip to content
Michael Malura
731 GitHub stars 5792 npm downloads 56 Projects

#gamedev

Posts

Vorschau der Demo: Update Loop
24.07.2026 Update loop

The simplest game loop depends on the speed of the machine. With a fixed timestep it doesn't.

Vorschau der Demo: Punkt im Polygon
14.08.2026 Point in polygon

Is the cursor inside the shape? A ray to the right, count the crossings, and what happens when it hits a corner exactly. Ray casting and winding number to try o…

Vorschau der Demo: Picking im 3D-Raum
21.08.2026 Picking in 3D space

Which 3D object is under the mouse? Pixel to ray, ray against sphere and box, the nearest hit wins. With a demo to try.

Vorschau der Demo: Raytracing
28.08.2026 Raytracing

One ray per pixel, three balls on a checkerboard, shadows and reflections you can switch on and off. With a ray counter so you can see what each feature costs.

Vorschau der Demo: Bild laden und rendern

From a PNG file to a pixel on screen: chunks and CRC, an SDL_Surface with pixel format and pitch, a texture with nearest or linear scaling, and a CPU loop that…

Vorschau der Demo: Rigid Bodies
11.09.2026 Rigid bodies

Circles and boxes with impulses: collision normal, penetration depth, restitution, friction and why a stack of crates shakes. With a demo to play with.

Vorschau der Demo: Pixel-Wasser
18.09.2026 Pixel water

A basin, a tap and sand sinking through water. Falling sand with water on a pixel texture, plus the update order trap, why water slides further than one cell, a…

Vorschau der Demo: Wasserwellen in 2D
25.09.2026 2D water ripples

Two arrays, three lines of wave equation on the CPU and a shader that turns the height field into water with refraction and a specular highlight. With adjustabl…

Vorschau der Demo: Wasserwellen in 3D
02.10.2026 3D water waves

Six Gerstner waves in the vertex shader, exact normals from the derivatives, foam from the Jacobian determinant and a buoy that the CPU floats on the water with…

Vorschau der Demo: Ray Marching
09.10.2026 Ray marching

No triangles, just a distance function: a fragment shader walks through the scene in steps for every pixel, merges a sphere, a box and a torus and gets normals,…

Vorschau der Demo: Voronoi-Diagramme
16.10.2026 Voronoi diagrams

Scatter points, every pixel belongs to the nearest one. Brute force in the fragment shader, border distance instead of a difference, three metrics, Lloyd relaxa…

Vorschau der Demo: XP-Kurven
23.10.2026 XP curves

How much XP does the next level cost? Linear, polynomial, exponential and the RuneScape curve to tweak, plus the play time per level and a player climbing the c…

Vorschau der Demo: Easing und Tweening
30.10.2026 Easing and tweening

How does something move smoothly from A to B? Eleven easing families as a gallery, the formulas and where their constants come from, and a tween that hands its…

Terrain from Noise
10.11.2026 Terrain from Noise

One random number per pixel gives only grain. Value noise and gradient noise side by side, the fade curve that hides the grid, and why only the sum of several o…

Height Curves and Terraces

The same noise, shaped differently: a curve you can drag makes plains and steep summits, terraces with a slope instead of a cliff, and ridges only where the mou…

Projects

Turbo Mage: Game Dev
2018-07-28 Turbo Mage

Turbo Mage is a small game that came together during a Gamedev Gathering. You play a mage fighting through levels. The whole thing was hacked together over a we…

Concept DB – Game-Design Knowledge Graph: Homelab

A local knowledge graph for my game-design ideas. Concepts, mechanics and monetization patterns end up as connected nodes in a graph database, become semantical…

dll-proxy-generator: Reverse Engineering
2026-08-14 dll-proxy-generator

One of my older reverse-engineering tools. It generates a proxy DLL that sits between a game and the original DLL, so every call goes through your own DLL first…

demos.malura.de: Galerie mit 73 Demos
2026-11-06 Game Dev Snippets

Small game dev demos in C++ with SDL3. Every folder is one demo, and each one runs natively and in the browser. I've wanted to write down small game dev things…