The RCWeb Flappy Birds App (app/flappy) is a multiplayer arcade game built within the RCWeb ecosystem. It demonstrates the Asymmetric Pattern, where a single shared screen acts as the game engine and canvas, while multiple users use their mobile devices as remote controllers.


roster). Once all birds crash, the game elegantly rewinds the camera back to the start line for the next round.The game logic is encapsulated within script.js, utilizing an HTML5 <canvas> rendering loop synced via the comms.js server architecture.
requestAnimationFrame(loop) cycle that computes precise delta times (dt). update(dt) manages a scrolling backdrop (clouds, hills), computes procedural gap generation (makePipe), and applies rigid gravity and velocity (vy) vectors to every bird object.ensureBird(id) interactions originating from remote control apps (/flappy-control/?r=...). Each remote controller acts purely as an input trigger, while the local viewer app handles all collision detections, score calculations, and logic resolving.birdOrder array and assigned a highly distinct HSL color generated algorithmically (hue = birdOrder.length * 67 % 360).AudioContext oscillators (e.g., playFlapSound, playCoinSound, playLoseSound), completely eliminating the need to load external mp3 or wav files over the network.updateDemoIdle initiates startDemoMode. A specialized updateDemoBird function intercepts the AI birds, calculating the Y-position of the next upcoming pipe and mathematically determining exactly when the AI should trigger a flap to gracefully clear the obstacle.