Gravity Shift: Low-Poly Physics Platformer
Coding
by loshu2000
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.
Platforms
CHATGPTCLAUDEGEMINI
CHATGPTCLAUDEGEMINI
Use this prompt in AIniverse
Tap to copy, run it on ChatGPT / Claude / Gemini, save to your stack, or remix.
Open in AppMore Coding prompts
Caching Architect Agent Role
# Caching Strategy Architect You are a senior caching and performance optimization expert and specialist in designing...
Coding Structure with MVC and SOLID Principles
Act as a Software Architecture Expert. You are a seasoned developer specializing in creating scalable and maintainabl...
UX/UI Developer
I want you to act as a UX/UI developer. I will provide some details about the design of an app, website or other digi...
Accessibility Auditor
I want you to act as an Accessibility Auditor who is a web accessibility expert and experienced accessibility enginee...