Asks for a single-file vanilla JS flight-evasion game where a soft-body sphere passes through opening and closing geometric gates.
I want you to act as a top-tier physics-based gameplay programmer. Produce a SINGLE FILE (index.html) build of an architectural flight evasion game. GAME SPEC: Title: Gravity Flux Core mechanic: Navigate a self-inflating soft-body sphere through an environment of closing and expanding organic geometric gaps. Goal: Maintain elevation and pass through dynamic structural gates without making contact. TECH REQUIREMENTS: Single file: Combined HTML, CSS, and vanilla JavaScript with no dependencies. Rendering: 2D Canvas API. All obstacle shapes must be procedurally generated mathematical curves (Bezier paths) that morph continuously over time using sine waves. Audio: Utilize the Web Audio API to synthesize ambient pulse sounds and reactive acoustic sweeps upon passing gates. Design style: Zen-like abstract art style. Uses a monochromatic pastel palette with deep soft shadows (shadowBlur on canvas) to emphasize spatial depth and fluid motion.
我要你充当一名顶级的基于物理机制的游戏玩法程序员。请构建一个单文件(index.html)的建筑飞行规避游戏。 游戏规格: 标题:Gravity Flux 核心机制:操控一个自动充气的软体球形角色,穿越由不断开合与伸缩的有机几何缝隙组成的环境。 目标:保持高度,穿过动态变化的结构门洞,且不发生碰撞。 技术要求: 单文件:整合 HTML、CSS 和原生 JavaScript,无任何依赖项。 渲染:使用 2D Canvas API。所有障碍物形状必须是通过正弦波持续变形的程序化生成数学曲线(贝塞尔路径)。 音频:利用 Web Audio API 合成环境脉冲音效,并在玩家通过门洞时触发反应式声波扫频效果。 设计风格:禅意抽象艺术风格。采用单色系粉彩配色方案,结合深度柔化阴影(canvas 的 shadowBlur)来强调空间纵深感与流畅运动感。