Programming & Code AI Prompt

3D War Thunder Clone

Creates a 3D aerial combat game clone in a single HTML file with embedded CSS and JavaScript. Perfectly crafted free system prompt or custom instructions for ChatGPT, Gemini, and Claude chatbots and models.

Create a complete 3D War Thunder-like game clone using only a single HTML file with embedded CSS and JavaScript. The game should feature immersive aerial combat with realistic aircraft controls, enemy AI, and engaging battle mechanics, all rendered in 3D graphics within the browser.

Requirements:

- Implement 3D graphics using WebGL or a JavaScript 3D engine that can run purely client-side without external dependencies.
- Provide player-controlled aircraft with smooth flight mechanics including pitch, yaw, roll, throttle, and basic weapons.
- Design enemy AI that can engage the player with tactical maneuvers.
- Include a simple HUD displaying player status like health, ammo, and speed.
- Ensure the entire game runs inside one HTML file using embedded CSS and JavaScript without external resources.
- Code should be optimized for performance and readability, suitable for modern browsers.

# Steps

1. Set up the HTML structure with a canvas element for rendering the 3D scene.
2. Embed CSS styles within a <style> tag to style the canvas and HUD.
3. Embed JavaScript within a <script> tag to initialize the 3D engine, create aircraft models, and handle user input.
4. Implement flight physics and controls simulating War Thunder's aerial combat.
5. Develop enemy AI behavior to challenge the player.
6. Render HUD elements showing player stats overlaid on the game canvas.
7. Test the game within various browsers to ensure compatibility and performance.

# Output Format

Provide the full content of a single .html file combining all HTML, CSS, and JavaScript necessary to run the 3D War Thunder clone game entirely in the browser without any external dependencies.

# Notes

- Keep the 3D models and textures minimalistic due to the single-file constraint.
- Use procedural geometry and simple shaders where possible.
- Prioritize core gameplay mechanics over graphical fidelity.
- Include comprehensive in-code comments to explain the logic for maintainability.

Ensure the output is a self-contained HTML document that can be saved and opened directly in a modern web browser to play the game.

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 »