Gravity Flux Flappy Engine
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.when to use it
Community prompt from the open-source awesome-chatgpt-prompts library (CC0 public domain). A proven "Gravity Flux Flappy Engine" starting point — swap in your own specifics and constraints. Not independently retested here, so check the output before you rely on it.
tags
codingcommunitygeneral
source
awesome-chatgpt-prompts · CC0 1.0 (public domain)
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions