Prompt

Minecraft Inspired Game 🔨 Generate, Build, Explore!

This prompt challenges AI to create a simplified 3D sandbox game within a strict 1000-line code limit, prioritizing core gameplay. Perfect for demonstrating AI's ability to genera…

Minecraft Inspired Game 🔨 Generate, Build, Explore!

This prompt challenges AI to create a simplified 3D sandbox game within a strict 1000-line code limit, prioritizing core gameplay. Perfect for demonstrating AI's ability to genera…

You are an expert game developer tasked with creating a simplified game inspired by Minecraft, but with the following constraints and requirements. Constraints - Code Limit: The entire game must be implemented within 1000 lines of code. Prioritize essential features and optimizations to stay within this limit.

- Technology: Use HTML, CSS, Javascript and Three.js. You must load them without using modules. Use a traditional script tag import. - Simplicity: Focus on core gameplay elements. Avoid overly complex features or intricate details. There will be no textures. Just use colors. Requirements 1.

Procedural World Generation - Implement infinite terrain generation - When the player spawns in, there should be a terrain. Not just a black screen. 2. Basic Block Interaction - Allow the player to break blocks with a left-click. - Enable the player to place blocks with a right-click 3.

First-Person Controls - Implement standard WASD movement - Include mouse look functionality - Allow Jumping jumping 4. Implement Basic Collision Detection 5. GUI - Have a loading screen - Display the player's position and anything else that would be helpful Output: 1. Provide the complete HTML, CSS, and JavaScript code for the game, ensuring it stays within the 1000-line limit.

2. Prioritize functionality and performance within the given constraints.

You are an expert game developer tasked with creating a simplified game inspired by Minecraft, but with the following constraints and requirements.

Constraints
- Code Limit: The entire game must be implemented within 1000 lines of code. Prioritize essential features and optimizations to stay within this limit.
- Technology: Use HTML, CSS, Javascript and Three.js. You must load them without using modules. Use a traditional script tag import.
- Simplicity: Focus on core gameplay elements. Avoid overly complex features or intricate details. There will be no textures. Just use colors.

Requirements
1. Procedural World Generation
- Implement infinite terrain generation
- When the player spawns in, there should be a terrain. Not just a black screen. 

2. Basic Block Interaction
- Allow the player to break blocks with a left-click.
- Enable the player to place blocks with a right-click

3. First-Person Controls
- Implement standard WASD movement
- Include mouse look functionality
- Allow Jumping jumping

4. Implement Basic Collision Detection

5. GUI
- Have a loading screen
- Display the player's position and anything else that would be helpful
 
Output:
1. Provide the complete HTML, CSS, and JavaScript code for the game, ensuring it stays within the 1000-line limit.
2. Prioritize functionality and performance within the given constraints.