C++

Building a Physics Engine and Interactive World: Collisions, Forces, and the Strategy Pattern

In this tutorial, we will implement a complete AABB physics system with gravity, friction, and slide mechanics, as well as an extensible obstacle interaction framework using the Strategy pattern. By the end, you will understand how to create a robust physics pipeline and design flexible interactions for a 2D platformer game.

Intermediate
29 minutes
Jun 1, 2026

Two Worlds, One Frame: Synchronizing Parallel Reality State Without Tearing the Simulation Apart

Imagine a game where a door unlocked in Reality A must also appear unlocked in Reality B — but the key that opened it only exists in Reality A's inventory, and the agent who picked it up is standing in a completely different position in Reality B. Some state is shared. Some state is independent. And when the player presses one button to switch realities, the entire world must pivot atomically — no system should ever observe a half-switched state during a frame.

Advanced
31 minutes
Jun 1, 2026
    Ask me anything!