Gravity shift low poly physics platformer pc 1445

Gravity Shift: Low-Poly Physics Platformer

Scroll down to copy the prompt

Text Updated 1 min read by prompts.chat · @loshu2000
Advertisement

The prompt

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.

Open in

The prompt is copied to your clipboard — just paste it in.

Tags

Advertisement

More like this

Related prompts

Ethereum Developer

Copy this Ethereum Developer AI prompt to get a focused coding response from ChatGPT, Gemini, Claude, or another AI assistant.

Linux Terminal

Copy this Linux Terminal AI prompt to get a focused coding response from ChatGPT, Gemini, Claude, or another AI assistant.

JavaScript Console

Copy this JavaScript Console AI prompt to get a focused coding response from ChatGPT, Gemini, Claude, or another AI assistant.