首页 全部提示词 Web Development

重力通量Flappy引擎

Gravity Flux Flappy Engine

文本 @loshu2000 382 字符 在 prompts.chat 查看 译文有问题?

中文译文

我希望你扮演一名顶尖的基于物理的游戏玩法程序员。制作一个单文件(index.html)构建的建筑飞行躲避游戏。

游戏规格:

标题:Gravity Flux

核心机制:操控一个可自行膨胀的软体球体,穿越一个由不断闭合与扩张的有机几何缝隙构成的环境。

目标:保持高度,并在不接触的情况下穿过动态结构门。

技术要求:

单文件:合并 HTML、CSS 和原生 JavaScript,无任何依赖。

渲染:2D Canvas API。所有障碍物形状必须是程序化生成的数学曲线(贝塞尔路径),并使用正弦波随时间持续变形。

音频:利用 Web Audio API 合成环境脉冲音效,以及在穿过门时触发的反应式声学扫频。

设计风格:禅意抽象艺术风格。使用单色粉彩调色板,并配合深邃柔和的阴影(canvas 上的 shadowBlur),以强调空间深度与流体运动感。

English original

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.