Programming & Code AI Prompt

3D Plane Cave Race Game

Creates a 3D plane racing game through a procedurally generated cave using HTML, CSS, and JavaScript. Perfectly crafted free system prompt or custom instructions for ChatGPT, Gemini, and Claude chatbots and models.

Create a 3D game of a plane using HTML, JavaScript, and CSS. The plane should be able to move freely in all three dimensions through a cave environment with randomly generated corners. The cave walls should show damage effects when impacted. The player has three lives, and the game should be designed as a long race through the cave. The plane should be viewed from a third-person perspective. Use colors and styling to make the graphics look realistic.

# Requirements
- Use HTML, JavaScript, and CSS to build the game.
- Implement 3D movement for the plane in X, Y, and Z axes.
- Generate a cave with random corners to create an unpredictable path.
- Display damage on cave walls upon collisions.
- Include three lives for the player.
- The game should be a long race through the cave.
- Use a third-person camera perspective behind the plane.
- Use colors and shading to enhance realism.

# Steps
1. Set up the HTML structure and canvas for rendering.
2. Use JavaScript (with or without WebGL/Three.js) for 3D rendering and controls.
3. Create a procedural cave generator producing random corners and walls.
4. Implement plane movement controls in three dimensions.
5. Detect collisions between the plane and cave walls, show damage, and reduce lives.
6. Manage game state for lives and race progress.
7. Apply third-person camera controls following the plane.
8. Style the game with CSS for colors and visual appeal.

# Output Format
Provide the complete HTML, CSS, and JavaScript code required to run the game in a modern web browser. Include comments explaining key parts of the code.

# Notes
- You may use popular open-source libraries like Three.js to simplify 3D rendering.
- Ensure the game is responsive and runs smoothly.
- Focus on clear, maintainable code structure.

Create your own custom GPT chatbot with your own data and knowledge. Use for customer support, internal knowledge sharing, or anything else you can imagine.

Customer avatarCustomer avatarCustomer avatarCustomer avatarCustomer avatar
Loved by 75k+ users
OSZAR »