Gravity Shift — Claude prompt: a 3D platformer that rotates gravity
A prompt that lays out the concept and the technical brief for a 3D puzzle-platformer where the whole world turns 90 degrees on a keypress. Useful as a starting skeleton for a Three.js and Cannon.js build.
Open on GitHubWhat Gravity Shift: Low-Poly Physics Platformer does
The prompt sets up Gravity Shift: a cube-shaped maze in low-poly style, pastel gradients, sharp geometric shapes. The player never climbs walls — they rotate the world's gravity and change where down is.
The technical half asks for a 3D platformer on Three.js and Cannon.js, with R rotating the world.gravity vector by 90 degrees. A short JavaScript snippet shows the rotation: the new vector is derived from the current one and copied back into world.gravity. Smooth camera interpolation with Lerp is called out so the camera follows the player's rigid body during a shift.
This is a conversation starter, not finished code. It hands the model a brief and one piece of logic; the rest you write yourself. The rotation angle in the example is fixed at 90 degrees, and no other angle appears.
What it helps with
- sketch out a 3D platformer on Three.js and Cannon.js
- rotate world gravity 90 degrees on a keypress
- build a cube-shaped maze in low-poly style
- keep the camera on the player's body during a gravity shift
- write down a game concept before starting the build
Example prompts for the agent
- Build the Gravity Shift 3D platformer with Three.js and Cannon.js: a cube maze where pressing R rotates world.gravity by 90 degrees
- Add smooth Lerp camera interpolation so the camera follows the player's rigid body when gravity shifts
- Give the level a low-poly look with pastel gradients and sharp geometric shapes
How to install Gravity Shift: Low-Poly Physics Platformer
How to use
Paste the text at the start of a chat or into project instructions
Manually: put the files in place
.claude/commands/prompts.csv.mdQuestions about Gravity Shift: Low-Poly Physics Platformer
How do I install Gravity Shift in Claude?
There is nothing to install — it is a prompt, so you paste it into the chat as a message. In the repository it lives at .claude/commands/prompts.csv.md.
What does Gravity Shift do?
It describes a puzzle-platformer where the player rotates the entire world to get through a 3D labyrinth, and gives a Three.js plus Cannon.js technical brief.
What does the prompt need to work?
A model that writes JavaScript: the prompt includes a gravity rotation snippet and asks for a project on Three.js and Cannon.js.
Source text
prompts.csv · CC0-1.0
Game Concept: A puzzle-platformer named "Gravity Shift" where players rotate the entire world to navigate a 3D low-poly labyrinth. The environment is minimalist, using pastel gradients and sharp geometric shapes.
Technical Prompt:
Build a 3D platformer using Three.js and Cannon.js. The world is a cube-shaped maze. When the user presses 'R', rotate the world.gravity vector by 90 degrees.
JavaScript
// Gravity rotation logic
world.gravity.set(0, -9.82, 0); // Default
function rotateGravity() {
let newG = new CANNON.Vec3(-world.gravity.y, world.gravity.x, 0);
world.gravity.copy(newG);
}
Include smooth camera interpolation using Lerp to follow the player's rigid body during shifts.
© loshu2000 · CC0-1.0 · f/prompts.chat