Back to Learning

Coding

814 prompts available

3D FPS Training Game

Create a complete single-file (index.html) 3D FPS game using HTML, JavaScript, and CSS, with the following features and details: - **Visuals and Gameplay:** - A good-looking, modern gun model with shooting animations, firing mechanics, bullet visuals, slight recoil, and visible hands. - Smooth player movement including walking and possibly jumping. - A single well-designed training map featuring realistic terrain (grass, terrain textures), logical obstacles, and visually appealing environment. - **Game Mechanics:** - Bots that walk around the map and behave logically; with features including adjustable bot speed (faster/slower), quantity of bots, armored bots, and jumping bots. - Interactive buttons in the training map enabling control over bot behavior similar to CS:GO training maps (e.g., change bot speed, number, bot types). - **User Interface:** - A professional, modern main menu with at least these buttons: Play, Inventory, Settings. - Play button launches the training map and displays a polished loading screen while the game loads. - Settings menu with audio settings (volume controls), video settings including resolution options, FPS limit, an FPS counter toggle, and additional FPS-related options. - Inventory section showing all default skins currently in the game. - Shop button allowing purchase of skins using in-game currency. - Implement an in-game currency system starting with 2000 gold; each item costs 1000 gold. - Include at least one default skin for AK-47 and one knife skin (such as Karambit Butterfly), purchasable in the shop. - Skin inspection feature both in the menu and during gameplay, enabling players to view weapon skins closely. - **Audio:** - Include appropriate, high-quality sounds: shooting, footsteps, reloading, menu interactions, etc. - **Code Quality and Design:** - Use neat, modular, and well-commented code. - Ensure the entire game is packed in a single index.html file. - Interface and visuals should be modern, clean, and professional, showcasing advanced developer skills. # Steps 1. Set up the HTML structure with necessary canvas or WebGL context. 2. Develop 3D rendering for weapons, hands, and the map. 3. Implement player mechanics: movement, shooting with animations and recoil. 4. Create AI for various bot types with adjustable parameters. 5. Build the training map with obstacles, terrain, and moving targets. 6. Design the main menu, loading screen, inventory, shop, and settings interface. 7. Add audio effects and volume controls. 8. Implement in-game currency and purchase system for skins. 9. Enable skin inspection inside menu and gameplay. # Output Format - A single, standalone index.html file containing all HTML, CSS, and JavaScript to run the described FPS game in a modern browser. - All assets (textures, models, sounds) embedded or referenced such that no external dependencies are required beyond this file. - Well-commented code sections explaining the purpose of key parts. # Notes - Focus on performance and responsiveness for a smooth FPS experience. - Ensure all UI elements are intuitive and professionally styled. - The game should be fully functional as described, ready for future expansion. Make sure to reason through implementation steps clearly before coding.

3D Racing Game Demo Plan

Create a detailed system prompt to guide a language model in generating a comprehensive plan and code snippets for developing a 3D racing game demo with high-quality graphics. The response should cover the essential components of the game, including but not limited to: - Game concept and core mechanics (e.g., racing rules, controls, win conditions) - Choice of development tools and technologies (e.g., game engine, programming languages, graphic assets) - Description of the visual style and graphical effects to ensure good graphics quality - Key gameplay features (e.g., player car physics, AI opponents, track design) - Optimization considerations for performance and rendering - Step-by-step breakdown of game architecture, including scene setup, input handling, physics implementation, and rendering pipeline - Suggestions for sound and UI elements to enhance the demo experience Additionally, provide example code snippets or pseudocode illustrating critical parts such as initializing the 3D environment, handling player input, and rendering the race track and vehicles. Encourage thorough reasoning and clear explanations throughout the response. # Output Format - Structured explanation split into sections: Overview, Tools and Technologies, Game Mechanics, Graphics and Visuals, Game Architecture, Code Examples, and Optimization. - Use markdown formatting with headers and bullet points for readability. - Include code snippets formatted with appropriate language tags. # Examples Example section on Physics Implementation: ```cpp // Basic car physics pseudocode Vector3 velocity; Vector3 position; float acceleration; float steeringAngle; void UpdateCarPhysics(float deltaTime) { // Update velocity based on acceleration velocity += ForwardVector * acceleration * deltaTime; // Update position based on velocity position += velocity * deltaTime; // Handle steering orientation += steeringAngle * deltaTime; } ``` # Notes - Make sure the plan balances quality graphics with feasible scope suitable for a demo. - Consider cross-platform compatibility if relevant. - Include suggestions for resources or asset libraries to accelerate development.

3D Racing Game Dev

Create a complete 3D racing game using HTML, JavaScript, and CSS with the following features: - 3D graphics rendering utilizing WebGL through a library like Three.js. - A clearly defined racetrack environment with visible boundaries. - A player-controllable racing car that supports acceleration, braking, and steering. - Basic game mechanics including lap counting, time tracking, and collision detection. - Responsive keyboard input controls for smooth gameplay. # Steps 1. Set up the project structure with an HTML file linking to required CSS and JavaScript assets, using CDN links where appropriate. 2. Initialize the Three.js 3D scene, camera, and lighting to render the environment. 3. Construct the racetrack using simple geometrical shapes or placeholder meshes with clear boundaries. 4. Create and add the player car model using basic shapes or simple meshes. 5. Implement keyboard controls (e.g., arrow keys or WASD) to allow the player to accelerate, brake, and steer the car. 6. Develop game logic for lap counting, timing, and collision detection to track progress and enforce boundaries. 7. Design a user interface overlay (using HTML/CSS) to display lap count, timer, and other important game info. # Output Format Provide a complete, ready-to-run codebase: either a single self-contained HTML file or a set of linked HTML, CSS, and JavaScript files using inline comments for clarity and modularity. Include all necessary assets inline or linked via CDNs to ensure the game runs directly in modern browsers without any additional plugins. # Notes - Use placeholder graphics or simple geometric shapes if complex models are not feasible. - Ensure cross-browser compatibility and smooth performance. - Prioritize code readability, modularity, and maintainability. # Examples - Use Three.js geometries to form a simple oval or rectangular racetrack. - Map car controls to WASD or arrow keys for intuitive gameplay. Deliver the full source code fulfilling all above requirements.

3D Racing Game Generator

Create a complete 3D racing game using HTML, JavaScript, and CSS. The game should include the following features: - 3D graphics rendering using WebGL or a library like Three.js. - A racetrack environment with clear boundaries. - A controllable racing car that can accelerate, brake, and steer. - Basic game mechanics such as lap counting, time tracking, and collision detection. - Responsive controls suitable for keyboard input. # Steps 1. Set up the project with an HTML file linking to necessary CSS and JS scripts. 2. Initialize the 3D scene, camera, and lighting. 3. Create the racetrack mesh and environment elements. 4. Design and add the player car model. 5. Implement user input controls for car movement. 6. Add game logic to handle laps, timing, and collisions. 7. Style the user interface to display game info like lap count and timer. # Output Format Provide the full HTML, CSS, and JavaScript code needed to run the game in a single HTML file or linked files, with appropriate comments for clarity. # Notes - Use placeholder graphics or basic shapes if detailed models are not possible. - Ensure the game is playable in modern browsers without additional plugins. - Focus on code readability and modularity. # Examples - A simple racetrack created with Three.js geometries. - Car controls mapped to arrow keys or WASD keys. Deliver the complete, ready-to-run code including all assetsinline or with CDN links.

3D Raycast Game Pygame

Create a 3D game in Python using Pygame that utilizes raycasting or ray rendering techniques for immersive movement and environment rendering. The game should feature walls with gravity effects, collision detection, and realistic physics to provide smooth gameplay at a stable and high frame rate. Key requirements: - Implement raycasting-based rendering for a 3D environment. - Include mobile-friendly on-screen controls for movement (forward, backward, left, right). - Implement realistic gravity and collision detection with walls and other obstacles. - Ensure smooth and consistent FPS for an enjoyable experience. - Add extra character features such as a moving head that reacts dynamically when the user scrolls or swipes left, right, up, or down. Detailed steps: 1. Set up the Pygame environment and window. 2. Implement the raycasting engine to render the 3D view of walls and the environment. 3. Enable mobile controls displayed on screen that detect touch inputs to control the player's movement and view direction. 4. Integrate gravity so the player remains grounded and reacts naturally to terrain or obstacles. 5. Build collision detection between the player and environment boundaries. 6. Add physics calculations to simulate realistic movements and interactions. 7. Create a character model with a head that moves smoothly in response to user scrolling or swiping gestures. 8. Optimize the game loop to maintain high FPS and smooth rendering. Output format: Provide the complete Python source code implementing the above requirements, with clear comments explaining each section. Ensure code is structured for readability and ease of modification.

3D React Web Chat UI

Create a dynamic 3D frontend web application using HTML, CSS, and React.js. The application is a web chat platform named "SOU web-chat". The user flow should be as follows: 1. Initially, show a login screen prompting users to enter their login details (such as username and password). 2. Upon successful login, transition into the main web chat interface where users can enter and participate in chat conversations. Requirements: - Use React components to structure the application. - Implement visually appealing 3D effects and animations in the UI using CSS, ideally employing modern features like CSS transforms, transitions, or WebGL libraries if needed. - The login screen should be intuitive, and error handling for incorrect login input should be included. - The chat interface should allow users to send and receive messages dynamically. - The UI should be responsive and user-friendly. Steps: 1. Set up the React project structure. 2. Design and implement the login component with fields for login details. 3. Add client-side validation and state management to handle login status. 4. Create the main chat component that loads once the user is logged in. 5. Implement the dynamic chat message list and user input area. 6. Style the components with CSS to include 3D effects and smooth transitions. Output Format: Provide the complete React.js frontend code, including HTML, CSS, and JavaScript files or components. Include comments explaining key parts of the code, especially where 3D effects and login flow are handled. Do not include backend implementation; focus on the frontend experience and UI/UX features.

3D Realistic Car Racing Game Script

Create a detailed script for a 3D realistic car racing game. The script should include the following elements: - Game setup and environment initialization, including loading 3D models, textures, and race track designs. - Car physics and realistic movement mechanics, such as acceleration, braking, steering, friction, collisions, and damage modeling. - Player input handling for controlling the car using keyboard, mouse, or gamepad. - AI opponents with racing strategies and behaviors to provide competitive gameplay. - Lap counting, timing system, and race progress tracking. - User interface components like speedometer, lap timer, position indicator, and race results screen. - Sound effects integration for engine noises, collisions, and environmental sounds. - Optional features: weather effects, car customization, multiple camera views. # Steps 1. Initialize game environment and load assets. 2. Implement car controller with realistic physics. 3. Program player input and corresponding car responses. 4. Develop AI behavior for opponent cars. 5. Manage race mechanics such as lap counting and timing. 6. Create UI elements displaying essential race information. 7. Add sound effects and optional features. # Output Format Provide the complete source code in a programming language suited for 3D game development (e.g., Unity C#, Unreal Engine Blueprints or C++, Godot GDScript). Ensure the code is well-commented and modular for easy understanding and maintenance.

3D Shoe Website Code

## Task Create a code snippet for a 3D-style shoe selling website. ## Requirements - Utilize modern web technologies, including HTML, CSS (with animations and 3D transformations), and JavaScript if necessary, to create a visually appealing and interactive 3D shopping experience on the web. - The website should allow users to view shoes from multiple angles, possibly with rotate, zoom in, and zoom out functionalities. - Ensure responsiveness across different devices and web browsers. - Include basic website structure with essential sections such as product gallery, details page, and user interface elements for navigation. ## Constraints - Code should be clean, efficient and well-commented. - Only use client-side technologies. - Avoid using third-party libraries unless necessary. ## Steps 1. Set up basic HTML structure for the website, ensuring semantic usage of elements. 2. Use CSS for styling, focusing on creating a 3D effect using transformations and animations. 3. Implement interactive elements using JavaScript, to handle shoe selection, rotation, and user interaction. 4. Test across different devices and browsers to ensure a consistent user experience. 5. Optimize code for performance, including images and animations. ## Output Format Provide complete code blocks for HTML, CSS, and JavaScript necessary to create the website interaction and 3D effects. ## Notes - Focus on aesthetics and interaction to emulate a real 3D environment. - Consider accessibility features like ARIA roles where applicable.

3D Ring Toss Game

Create a detailed and well-structured Python program that implements a 3D ring toss game. In this game, the player uses the mouse and keyboard to throw rings aiming to land them on bottles. The game should feature a seamless 3D environment, smooth controls, and realistic physics for the ring throwing mechanics. Requirements: - Use Python along with appropriate 3D game development libraries (such as Pygame with OpenGL, Panda3D, or Ursina) to build the 3D environment. - Implement intuitive mouse and keyboard controls to allow the player to aim and throw rings. - Model a set of bottles positioned as targets in 3D space. - Simulate realistic ring flight trajectories and collision detection to determine if rings land on bottles. - Include visual and audio feedback to enhance the player's experience. - Ensure the game runs smoothly without lag or glitches. # Steps 1. Set up the 3D environment and initialize the game window. 2. Create 3D models or simplified representations of bottles arranged as targets. 3. Implement ring objects that the player can throw. 4. Design mouse and keyboard input handling to control the position, direction, and force of ring throws. 5. Apply physics calculations for ring trajectory, rotation, and collisions. 6. Detect when a ring successfully lands on a bottle. 7. Provide scoring and visual feedback for successful ring tosses. 8. Optimize the game loop for smooth performance. # Output Format Provide the complete, commented Python source code for the 3D ring toss game. The code should include setup instructions, library dependencies, and usage notes to run the game successfully on a typical development environment.

3D Shooting Game Script

Generate a detailed script for a 3D shooting game that includes the following features: - A health system for the player character. - AI-controlled bots as opponents or allies. - A start button to initiate the game. - A realistic 3D map that includes houses and an environment suitable for shooting gameplay. Ensure the script is well-structured and uses a common game development framework or engine (e.g., Unity with C# or Unreal Engine with Blueprint or C++). The code should include initialization, game loop handling, AI behavior for bots, health updates, and UI interactions for the start button. # Steps 1. Define the player character with health management. 2. Implement AI bots with basic shooting and navigation logic. 3. Create a 3D map layout including houses placed realistically. 4. Add a start button UI element that begins the game when clicked. 5. Integrate all components ensuring smooth gameplay flow. # Output Format Provide the complete script with comments explaining key parts of the code. If multiple files or scripts are needed (e.g., separate AI or UI scripts), provide all clearly labeled. Use consistent coding standards suitable for the chosen engine or framework. # Notes - Prioritize readable and maintainable code. - Include basic error handling or state checks where appropriate. - The realistic 3D environment should focus on layout and assets placement rather than high-fidelity graphics, assuming placeholders or generic models. - The start button should be interactive and clearly trigger the game start process. # Response Formats Output the full script(s) as code blocks labeled with appropriate language tags (e.g., csharp for Unity C#).

3D Rocket Interaction

## Task Create an interactive application that allows users to pan, rotate, and move a 3D rocket model across the screen using Next.js and React Three Fiber. This application will be divided into five sections, each responsible for a different focus on interacting with the model or displaying related content. ## Details - **Tech Stack**: Use Next.js for the web application framework and React Three Fiber for 3D rendering. - **Model Controls**: Implement controls that allow users to pan, rotate, and move the rocket model intuitively. - **Five Sections Layout**: Design the layout to include five distinct sections, each showcasing different aspects or functionalities related to the 3D rocket model. ## Steps 1. **Setup the Environment**: Install Next.js and configure it for use with React Three Fiber. 2. **Import or Create Rocket Model**: Obtain a rocket model suitable for manipulation and rendering in a browser. 3. **Implement 3D Controls**: Use React Three Fiber to enable user interaction for panning, rotating, and moving the model. 4. **Design Layout**: Create a responsive layout with five sections using CSS or a styling library. 5. **Integrate with Next.js**: Ensure seamless integration of the 3D elements into the Next.js application, maintaining client-side interactivity. ## Output Format Provide a detailed report or documentation, including code snippets or explanations, demonstrating the implementation of the application features. ## Examples - **Section 1**: Interactive controls demonstrating rotation of the rocket. - **Section 2**: Information about the physics of rocket flight animated alongside the model. - **Section 3**: Historical timeline of rocket development with interactive markers. - **Section 4**: Gallery of different rocket designs accessible through a slider. - **Section 5**: User feedback or engagement section, capturing user interactions. ## Notes - Ensure cross-browser compatibility and responsive design. - Optimize the 3D model for performance to maintain smooth interactions. - Include error handling for interactive elements to enhance user experience.

3D Snake Game Development

Create a complete 3D Snake game by following a structured approach that covers all critical components, including game mechanics, graphics design, and user interaction. # Steps 1. **Design Game Mechanics**: - Define the rules for the snake’s movement, growth, and collision detection. - Implement how the food spawns and affects the snake. - Determine scoring and levels if applicable. 2. **Graphics and Environment Design**: - Develop or specify the 3D environment where the game takes place. - Design the snake’s 3D model and animations. - Create the 3D models for food and any obstacles. - Set up lighting, camera angles, and effects to enhance visualization. 3. **User Interaction and Controls**: - Plan and implement controls for snake movement (e.g., keyboard, touch, or controller inputs). - Handle user interface elements such as score display, start/pause menu, and game over screen. 4. **Game Development and Integration**: - Integrate mechanics, graphics, and controls into a functional game loop. - Ensure smooth performance and responsiveness. 5. **Testing and Refinement**: - Test the game for bugs, gameplay balance, and user experience. - Refine based on feedback. # Output Format Provide a detailed, step-by-step guide or plan for developing the 3D Snake game, including any pseudocode, design considerations, and implementation tips. If code examples are given, use clear and well-commented snippets. Include suggestions for development tools or platforms if relevant.

Page 17 of 68

    Coding Prompts - Learning AI Prompts | Elevato