Under the Hood of Confluence Race Mode
Dec 1, 2025Tim Hor, Steve Kraynov

Summary
This post details the technical implementation of Confluence Race Mode, a mini-game within Confluence whiteboards. It explains the use of Entity Component System (ECS) for game logic and Finite State Machine (FSM) for input handling, emphasizing high performance and precise inputs. The post covers framerate-independent physics achieved by updating game physics based on real time delta, dynamic asset preloading without blocking app startup, and the creation of a tuning panel for gameplay adjustments. It also touches on visual and audio design elements like a spring-mass-damper model for UI elements and anti-cheating mechanisms.