Overview
This prompt aims to guide developers in creating a 3D Battle Royale game using specific technologies. Game developers and programmers will benefit from the detailed specifications and structured approach.
Prompt Overview
Purpose: This project aims to create an immersive 3D Battle Royale game using modern web technologies.
Audience: The target audience includes gamers and developers interested in game design and programming.
Distinctive Feature: The game features realistic physics and a tropical island environment for engaging gameplay.
Outcome: Players will experience dynamic interactions and smooth controls in a visually appealing setting.
Quick Specs
- Media: Text
- Use case: Generation
- Industry: Animation & VFX, Creative Writing & Storytelling, Development Tools & DevOps
- Techniques: Function Calling / Tool Use, Role/Persona Prompting, Structured Output
- 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 complete 3D Battle Royale-style game inspired by Free Fire, featuring a player character and environment built with React Three Fiber and the @react-three/rapier physics engine, using TypeScript (TSX).
**Specifications:**
– Character:
– Realistic height: 1.75 meters.
– Physics: Implement gravity, mass, and collision detection realistically.
– Environment:
– Tropical island terrain with varied elements:
– Buildings
– Trees
– Mountains
– Roads
– Obstacles
– Design spawn points for players and items.
– Camera:
– Third-person view that follows the player.
– Mouse-controlled free movement and rotation.
– Player Controls:
– Movement: WASD.
– Sprint: Shift.
– Jump: Space (realistic height ~1.5m).
– Crouch: C.
– Aim: Right-click; Shoot: Left-click.
– Switch weapons: Assault Rifle, SMG, and Shotgun.
– Interact: Pick up weapons and shields.
– Throw grenades and use healing items.
– Animations:
– States for idle, running, jumping, aiming, and shooting.
– Physics and Collision:
– Prevent walking through objects.
– Avoid unnatural jumps or flying.
– Development:
– Code must be modular and scalable.
– Optimize for performance.
**Steps:**
1. Model the player with accurate height and physics.
2. Build the tropical island environment with spawn points.
3. Implement a third-person, mouse-controlled camera.
4. Set up detailed player input and interactions.
5. Integrate all animations.
6. Apply physics and collision logic.
7. Organize code in TSX using React Three Fiber and @react-three/rapier.
8. Ensure the code is modular, scalable, and performant.
**Output Format:**
Provide the entire source code implementing the full game logic in TypeScript (TSX), compatible with React Three Fiber and @react-three/rapier. The code should be fully modularized and thoroughly commented. Include:
– Player controls
– Animations
– Physics
– Environment generation
– Camera controls
Deliver only the source code and inline comments without additional explanation or narrative.
**Notes:**
– Player experience and controls must closely replicate Free Fire.
– Use realistic physics constants.
– The environment must support spawning and item pickup mechanics.
– The camera should provide full rotational freedom around the player.
– Prevent physics glitches such as clipping or unnatural flight.
Screenshot Examples
How to Use This Prompt
- Copy the prompt.
- Paste it into your coding environment.
- Follow the specifications for game development.
- Implement each step in the provided order.
- Ensure code is modular and well-commented.
- Test the game for functionality and performance.
Tips for Best Results
- Start with a solid foundation: Use TypeScript to ensure type safety and better code organization.
- Optimize your assets: Keep models and textures lightweight to enhance performance in a 3D environment.
- Implement modular components: Break down your game into reusable components for easier maintenance and scalability.
- Test physics rigorously: Regularly test collision detection and player interactions to avoid glitches and ensure a smooth experience.
FAQ
- What is the height of the player character in the game?
The player character is modeled to a realistic height of 1.75 meters. - What controls are used for player movement?
Players use WASD for movement, Shift to sprint, Space to jump, and C to crouch. - How is the camera controlled in the game?
The camera is a third-person view, controlled by mouse movement and rotation. - What features are included in the tropical island environment?
The environment includes buildings, trees, mountains, roads, obstacles, and spawn points.
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.


