Overview
This prompt aims to guide developers in creating a simple 3D running game using HTML and JavaScript. Beginner programmers and educators will benefit from the structured approach and clear requirements provided.
Prompt Overview
Purpose: The game aims to provide an engaging 3D running experience using web technologies.
Audience: This game targets casual gamers and programming enthusiasts interested in web-based game development.
Distinctive Feature: It features simple 3D graphics and intuitive controls for jumping over obstacles in real-time.
Outcome: Players will enjoy a fun, interactive game that showcases basic programming and 3D rendering skills.
Quick Specs
- Media: Text
- Use case: Generation
- Industry: Content & Media Creation, Creative Writing & Storytelling, Development Tools & DevOps
- Techniques: Zero-Shot Prompting
- Models: Claude 3.5 Sonnet, Gemini 2.0 Flash, GPT-4o, Llama 3.1 70B
- Estimated time: 5-10 minutes
- Skill level: Beginner
Variables to Fill
No inputs required — just copy and use the prompt.
Example Variables Block
No example values needed for this prompt.
The Prompt
Create a simple 3D running game that can be played in a web browser using HTML and JavaScript.
The game should feature a man character running forward continuously, with basic controls to jump over obstacles. Incorporate simple 3D visuals using WebGL or a JavaScript 3D library such as Three.js.
**Key requirements:**
– The main character (a man) runs forward automatically.
– The player must control the character to jump to avoid obstacles.
– Include simple 3D graphics for the environment and character.
– Use HTML, CSS, and JavaScript; you may use Three.js or another suitable 3D library.
– The game should be playable directly in a browser without additional installations.
**Steps:**
1. Set up a basic HTML5 page with a canvas element for rendering.
2. Initialize the 3D scene using Three.js or WebGL.
3. Create a running man model or use a simple shape to represent the character.
4. Implement continuous forward movement of the character.
5. Design and place obstacles in the path that the player must jump over.
6. Implement jump controls (e.g., spacebar or mouse click) to make the character jump.
7. Detect collisions with obstacles to end or restart the game.
8. Add basic lighting and simple textures to enhance the 3D effect.
**Output Format:**
– Provide the full HTML, CSS, and JavaScript code that can be opened in a modern web browser to run the 3D running man game.
– Ensure the code is well-commented to explain key components.
**Example:**
“`html
3D Running Man Game
/* Basic styles */
// JavaScript code to create the scene, character, obstacles, controls, and game loop
“`
**Notes:**
– Keep the 3D model simple to focus on game mechanics rather than complex modeling.
– Use placeholder geometry like boxes or cylinders if needed.
– The game should run smoothly on common desktop browsers.
Screenshot Examples
How to Use This Prompt
- Copy the prompt to your text editor.
- Set up a basic HTML5 page with a canvas.
- Initialize the 3D scene using Three.js or WebGL.
- Create a running man model or simple shape.
- Implement controls for jumping over obstacles.
- Test the game in a modern web browser.
Tips for Best Results
- Set Up Your HTML: Create a basic HTML5 page with a canvas element for rendering the game.
- Initialize Three.js: Use Three.js to set up the 3D scene, including camera, lights, and a renderer.
- Implement Character Movement: Code the character to run forward automatically and add jump controls for player interaction.
- Design Obstacles: Create simple obstacles in the scene and implement collision detection to manage game over scenarios.
FAQ
- What programming languages are needed for the 3D running game?
You need HTML, CSS, and JavaScript to create the game. - How does the character move in the game?
The character runs forward automatically without player input. - What control is used to make the character jump?
Players can use the spacebar or mouse click to jump. - Which library can be used for 3D graphics?
You can use Three.js or WebGL for 3D graphics.
Compliance and Best Practices
- Best Practice: Review AI output for accuracy and relevance before use.
- Privacy: Avoid sharing personal, financial, or confidential data in prompts.
- Platform Policy: Your use of AI tools must comply with their terms and your local laws.
Revision History
- Version 1.0 (February 2026): Initial release.


