Back to Learning

Coding

814 prompts available

3D Time Shooter Development

Create a fully 3D version of the game "Time Shooter." Develop the game step-by-step, breaking down the process into multiple parts. For each response, provide a clear, detailed portion of the development, such as setting up the 3D environment, character models, basic mechanics, shooting mechanics, enemy AI, UI elements, and so forth, until the complete 3D game is realized. Focus on ensuring clarity and completeness in each part before continuing to the next. Include explanations of the chosen tools or frameworks if relevant, sample code snippets, and implementation instructions. # Steps 1. Part 1: Setting up the 3D environment and project setup. 2. Part 2: Creating player character and movement controls in 3D. 3. Part 3: Implementing shooting mechanics in 3D. 4. Part 4: Designing enemy characters and AI behaviors. 5. Part 5: Adding UI elements and game state management. 6. Part 6: Final touches, optimization, and gameplay polish. # Output Format - Use clear, hierarchical headings for each part. - Provide detailed textual explanations along with code snippets or pseudocode where applicable. - Include any necessary instructions for integrating the parts. - Each response should complete one part thoroughly before moving to the next in a follow-up. # Notes - Assume use of a suitable 3D game development framework (e.g., Unity with C# or Unreal Engine with Blueprint/C++). - Adjust code syntax to the chosen environment, and specify the environment early on. - Provide guidance on asset creation or placeholders if actual 3D models are needed. Deliver the development plan and the code incrementally, ensuring thoroughness and clarity in every step.

3D War Thunder Clone

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.

3D Watch Time App

Create a 3D watch time application using HTML, CSS, and JavaScript. The app should include the following features: 1. **Animations:** Implement engaging animations for transitions and interactions within the app. 2. **Vibration Feedback:** Add vibration effects when buttons are pressed to enhance the user experience, ensuring it works on devices that support vibration. 3. **Glassmorphism Design:** Use glassmorphism aesthetics such as frosted glass effects for the app's background and elements. 4. **Buttons:** Design multiple interactive buttons for various functionalities (e.g., start timer, stop timer, reset timer). 5. **Responsive Design:** Ensure the app is responsive and displays well on different screen sizes. ### Steps - Start with basic HTML structure. - Style the app using CSS to incorporate glassmorphism. - Create animations using CSS and JavaScript. - Implement vibrations using the Vibration API in JavaScript. - Integrate the buttons with corresponding JavaScript functions for controlling the timer. ### Output Format - The final deliverable should be a single HTML file that includes inline CSS and JavaScript for easy distribution. Ensure to provide clear comments in the code explaining each part of the functionality. ### Examples - A button that starts the timer with a smooth fade-in effect. - A glassmorphic window displaying the current time with a blur effect. - Feedback vibration occurring on button presses when supported. ### Notes - Test the application on different browsers to ensure compatibility. - Optimize animations for performance to avoid lag on lower-end devices.

3D Water Sort Game

Develop a visually appealing 3D Water Sort Puzzle Game using HTML and JavaScript, incorporating a modern, responsive user interface. The game should involve players sorting colored liquids into test tubes until each tube contains a single color. Use CSS transformations or WebGL libraries, like three.js, to achieve interactive 3D-style tubes for realistic visuals. Implement 100 levels with increasing difficulty, using labels to represent level numbers. Ensure a modern UI design featuring rounded buttons, gradients, and shadows. Include game pause and resume functionalities, with a pause button halting game timers and disabling actions, and a resume button to continue the game. Enhance user experience with smooth animations for liquid transfers and sound effects for pouring. Use JavaScript for the core game logic, such as validating moves and handling level progression. The layout should be vibrant and minimalistic for maximum engagement.

3D Water Sort Puzzle

Create a full-featured 3D water sort puzzle game using Visual Studio Code with functionalities typical of such games. Focus on writing code that includes core game mechanics, user interface components, and any necessary sound or graphic assets. Then, provide steps to convert the finished game into an APK for mobile devices.

3D Water Sort Puzzle Features

You are to design a comprehensive system prompt that guides a language model to develop or enhance a 3D Water Sort Puzzle game. The prompt should clearly instruct the model to implement features including adding levels, saving levels, resetting the game, undoing moves, adding animations, and integrating sound. Key requirements: - **Add Level:** Enable the addition of new puzzle levels with varying difficulty. - **Level Save:** Implement a functionality that saves the current progress or state of a level so that the player can resume later. - **Reset:** Provide a way to reset the current level back to its initial state. - **Undo:** Allow the player to undo the previous move, supporting multiple undo steps if possible. - **Animation:** Incorporate smooth and visually appealing animations for water pouring, level transitions, or other relevant actions. - **Sound:** Integrate sound effects corresponding to game actions like pouring water, completing levels, undoing moves, or errors. The prompt should encourage step-by-step reasoning on how to implement each feature effectively, considering user experience and possible edge cases. # Steps 1. Outline the approach to adding levels and how they will be structured. 2. Detail how level saving will work, including saving data structure and retrieval. 3. Explain the reset mechanism and how it restores the initial level state. 4. Develop the undo feature with considerations for move tracking and limits. 5. Design animation sequences for relevant game actions, focusing on smoothness and responsiveness. 6. Describe how sound effects will be integrated and triggered on game events. # Output Format Provide a detailed design document or implementation plan in clear sections for each feature. Include pseudocode or code snippets as examples where applicable. # Examples - Adding a new level with specific water color sequences. - Saving the game state as JSON and loading it back. - Undoing the last water pour move. - Animating water flow between tubes with easing effects. - Playing a sound effect on level completion. # Notes Consider performance implications of animations and saving; prioritize responsiveness and user feedback. The final output should be precise, detailed, and actionable for a developer to follow.

3D Web Racing Game Plan

Create a detailed plan and overview for developing a 3D racing game that can be played on the web. Consider the following points: - Game Concept: Define the style and theme of the racing game (e.g., futuristic, realistic, cartoonish). - Key Features: List core gameplay mechanics such as vehicle controls, track design, game modes (time trial, multiplayer), and any power-ups or obstacles. - Technology Stack: Specify the web technologies and frameworks to be used (e.g., WebGL, Three.js, Babylon.js, HTML5 Canvas, WebSockets for multiplayer). - Graphics and Assets: Discuss models, textures, environments, and sound design needed. - User Interface: Describe layout for menus, HUD (speedometer, lap times), and controls. - Performance Optimizations: Consider smooth rendering and load times for browser compatibility. - Monetization & Distribution: Optional ideas about how the game will be distributed or monetized. # Steps 1. Establish the racing game’s theme and concept. 2. Outline core gameplay and user experience features. 3. Choose appropriate web technologies and justify the choices. 4. Plan the creation or sourcing of graphical and audio assets. 5. Define UI/UX elements and responsiveness. 6. Detail performance optimization techniques to support smooth gameplay. 7. Include considerations for deployment, multiplayer integration if relevant, and monetization. # Output Format Provide a structured, detailed report in clear sections matching the points above, using bullet points or numbered lists where appropriate. The tone should be professional and focused on feasibility and clarity.

3D Zombie Survival Game Guide

Create a comprehensive, step-by-step development guide to build a fully functional 3D zombie survival game using publicly available resources from GitHub, including guns, maps, textures, and other essential assets. The guide should cover the entire game development workflow from start to finish. Include all key components such as character models, environment design, weapon systems, enemy AI, survival mechanics, and user interface. Provide detailed instructions on how to find, download, integrate, and customize relevant open-source GitHub assets (models, textures, scripts) appropriate for a zombie survival theme. Explain how to properly pull these assets from repositories, set them up in the chosen game engine, and optimize them to maintain good game performance. Include setup steps for the recommended game engine (suggest using Unity or Unreal Engine), importing assets, scripting core gameplay mechanics, managing animations, adding sound effects, and packaging the final game for distribution. Throughout the guide, emphasize best practices for project organization, asset management, and continuous testing to ensure a polished and stable final product. # Steps 1. **Select and install a suitable 3D game engine:** Recommend Unity or Unreal Engine; guide on setting up the environment. 2. **Research and collect open-source assets on GitHub:** Show how to search effectively for zombie-themed guns, maps, character models, textures, and gameplay scripts, prioritizing assets with permissive licenses. 3. **Download and organize assets:** Explain methods for cloning repositories or downloading ZIP files, and how to systematically categorize assets by type. 4. **Import assets into the game engine project:** Detail the import process for models, textures, scripts, and audio. 5. **Customize weapon systems:** Set up gun models, attach firing scripts, tweak animations and effects to achieve desired behavior. 6. **Implement zombie enemy AI:** Design behavior trees or state machines for zombies, manage health and damage interactions. 7. **Build interactive maps:** Use imported map assets and design gameplay areas with obstacles, spawn points, and safe zones. 8. **Add survival mechanics:** Code systems like player health, stamina, inventory management, crafting, and resource gathering. 9. **Integrate audio:** Apply sound effects for weapons, zombies, environmental ambiance, and background music. 10. **Develop user interface (UI):** Create HUD elements including health bars, ammo counters, inventory screens, and menus. 11. **Test and optimize:** Conduct gameplay testing cycles, identify and fix bugs, profile performance, and optimize assets. 12. **Package the final game:** Provide instructions for building and exporting a distributable game package. # Output Format Present the guide as a detailed, structured tutorial or roadmap using numbered steps and clear explanations. Include relevant code snippets, GitHub links for sample assets, and best practices for integrating and optimizing these resources within the game project. # Notes - Assume the user has basic programming skills but is new to full 3D game development. - Prioritize free, open-source assets to avoid licensing complications. - Focus strongly on practical, actionable instructions and resource management. - Avoid vague generalities; be as specific as possible regarding tools and workflows.

3D Zombie Survival Game Plan

Create a detailed plan and outline to develop a 3D zombie survival game using Three.js that captures the style and game mechanics similar to Project Zomboid. The game should include core elements such as player movement, environment interaction, day-night cycles, inventory management, crafting system, zombie AI behavior, health and hunger mechanics, and permadeath or save options. The art style should be isometric or top-down with 3D models, reflecting the muted and gritty aesthetic of Project Zomboid. Consider performance optimizations for smooth gameplay on web browsers. # Steps 1. Define the game world, map size, and layout, including key locations (safe houses, resource points). 2. Implement player controls for movement, interaction, and combat. 3. Create zombie AI with pathfinding, spawning mechanics, and threat behavior. 4. Develop systems for health, hunger, fatigue, and status effects. 5. Design and build an inventory and crafting system. 6. Program environmental effects like time of day, weather, and sound ambiance. 7. Implement UI components such as health bars, inventory screen, and crafting menus. 8. Optimize rendering and loading performance with Three.js best practices. # Output Format Provide the development plan in a structured format outlining the key features, technical considerations, and implementation steps. Include example code snippets or architectural diagrams when appropriate. Optionally, supply references to libraries or resources useful for game development with Three.js.

3d.io Slope JavaScript

Generate JavaScript code using the 3d.io library to create a 3D slope structure or object. Ensure the code initializes the necessary environment, constructs the slope with appropriate dimensions and properties, and includes comments explaining each step for clarity. # Steps 1. Set up the 3d.io environment in JavaScript. 2. Define the dimensions and shape of the slope. 3. Use 3d.io functions to build or model the slope geometry. 4. Apply materials or colors as needed. 5. Include comments to describe code sections for understanding. # Output Format Provide the complete JavaScript code snippet formatted for direct use with the 3d.io library, including any necessary import or setup statements. # Notes - If certain 3d.io functions or classes require specific parameters, ensure they are included. - Assume the user wants a basic slope model, suitable for visualization or further manipulation. - Focus on clarity and readability in the code comments and structure.

3rd Person Click Script

Create a Python script that iterates through a list of people and performs an action whenever a person is clicked, referring to the people in third-person. Each action should print a message indicating the person being clicked on. The script should include functions to initialize the list of people and handle clicks, ensuring that the interactions are clear and follow a third-person narrative style. ### Steps 1. Define a list of people with their names. 2. Create a function `click_person(name)` that accepts a person's name and prints a message such as "[Person's name] has been clicked." 3. Implement a loop to simulate clicking on each person in the list. ### Output Format The output should be a complete Python script that includes: - A list of people. - The `click_person()` function. - A loop that calls `click_person()` for each person in the list. ### Example Here is a simplified example of the expected output: ```python people = ['Alice', 'Bob', 'Charlie'] def click_person(name): print(f'{name} has been clicked.') for person in people: click_person(person) ``` The printed output should be: ``` Alice has been clicked. Bob has been clicked. Charlie has been clicked. ```

4-Letter Discord Username Availability Generator

Generate all possible 4-letter Discord usernames using letters A-Z (case-insensitive). For each generated username, check its availability on Discord by using the appropriate API or service that allows real-time username availability verification. Follow these steps: 1. Enumerate all 4-letter combinations from A-Z, ignoring case distinctions. 2. For each username, verify its availability status on Discord. 3. Compile a list of usernames along with their respective availability status, clearly labeling each as "available" or "unavailable". 4. To prevent rate limits and excessive API calls, implement optimization such as limiting the number of usernames generated, caching previously checked usernames, or batching checks where possible. If real-time availability checking is infeasible, simulate the availability status with placeholders and explicitly note that actual checking is outside of scope. # Output Format Return the results as a JSON array containing objects with two fields: - `username`: a string representing the 4-letter username - `availability`: string "available" or "unavailable" Example: ```json [ {"username": "abcd", "availability": "available"}, {"username": "wxyz", "availability": "unavailable"} ] ``` Ensure all usernames comply with Discord's username policies. # Notes - Assume access to Discord API or equivalent for real-time username availability checks. - If actual checking is not possible, simulate availability and clarify this in the output. - Optimize to avoid rate-limiting issues by minimizing API calls. - Treat all combinations as uppercase or lowercase consistently. # Response Format Provide only the JSON array containing the username availability objects as defined, without additional explanation or commentary.

Page 19 of 68

    Coding Prompts - Learning AI Prompts | Elevato