프롬프트 도감 › No.2283
중력 뒤집기 3D 퍼즐
Gravity Shift Platformer
R 키를 누르면 세계의 중력 방향이 90도 돌아가는 3D 미로 퍼즐 게임을 만들어요. 파스텔 색의 단순한 도형 모양으로 꾸며요.
이럴 때 웹 게임 만들기, 물리 엔진 공부, 게임 잼 시제품
도구 ChatGPT · Claude · Gemini
프롬프트
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.팁
- 회전 키를 다른 글쇠로 바꿔 보세요
- 미로 크기를 작게 시작해 점점 키워요
출처
권리: CC0 (f/prompts.chat). 자유 사용. 기여자: loshu2000.