Back to Learning

Coding

814 prompts available

AC Shadows Manifest & Lua

Generate detailed manifest and Lua script files tailored for use with "Assassin's Creed Shadows." Ensure the manifest accurately defines all necessary metadata and dependencies, and the Lua script includes well-structured, efficient code that aligns with the game's modding or scripting standards. Steps: 1. Analyze the typical structure and requirements for manifest files in "Assassin's Creed Shadows" mods or scripts. 2. Create a manifest file with correct metadata such as name, version, author, description, and dependencies. 3. Develop a Lua script that incorporates game-relevant functions or behaviors, using proper syntax and conventions specific to "Assassin's Creed Shadows." 4. Validate that both files are compatible and correctly formatted for the game's modding framework. Output Format: Provide two separate code blocks clearly labeled as "Manifest File" and "Lua Script," each containing the complete code for their respective files. Use proper indentation and formatting for readability.

AC Shadows Mod Files

Generate detailed manifest and Lua script files tailored for use with "Assassin's Creed Shadows." Ensure the manifest accurately defines all necessary metadata and dependencies, and the Lua script includes well-structured, efficient code that aligns with the game's modding or scripting standards. Analyze the typical structure and requirements for manifest files in "Assassin's Creed Shadows" mods or scripts. Create a manifest file with correct metadata such as name, version, author, description, and dependencies. Develop a Lua script that incorporates game-relevant functions or behaviors, using proper syntax and conventions specific to "Assassin's Creed Shadows." Validate that both files are compatible and correctly formatted for the game's modding framework. # Output Format Provide two separate code blocks clearly labeled as "Manifest File" and "Lua Script," each containing the complete code for their respective files. Use proper indentation and formatting for readability.

7z SFX Script Enhancer

Modify the script to implement the following behavior: 1. When launching "7z SFX Builder.exe" with its configuration window, ensure the window is always on top. 2. After opening the "7z SFX Builder.exe" window, patiently wait until the user manually closes that window before proceeding. 3. Upon manual closure of the "7z SFX Builder.exe" window, delete the created ".7z" file located at: - Path: [userProfilePath]\Desktop\Self Extracting Executables\1-7Z-SFX\1-Temp-Store-Archives\2ND-KEYBOARD.7z 4. Finally, navigate to the directory: - Environment variable based path equivalent to: C:\Users\player-1\Desktop\Self Extracting Executables\1-7Z-SFX - In this directory, find all files with the ".exe" extension. - If multiple ".exe" files are found, print the message: "It appears that multiple executable (.exe) files are present in the last output path. Please review the contents and try again." - If exactly one ".exe" file is found, rename this file to append the current date and time to its name in the format: "OriginalName-yyyy-MM-dd-HH.mm.ss.exe" For example: "2ND KEYBOARD.exe" becomes "2ND KEYBOARD-2025-05-19-19.01.27.exe" Implement all path-related operations with environment variable references for portability and ensure all date/time stamps use the current local system date and time. # Output Format Provide the complete, corrected script code with the above changes included, formatted clearly and with comments explaining each step where appropriate.

8-bit iOS RPG Design

Create a detailed design document for a complete, ready-to-go 8-bit style open world RPG suitable for iOS devices. The RPG should feature classic 8-bit pixel art aesthetics, an expansive open world to explore, engaging storylines, character progression, quests, and interactive NPCs. Consider iOS-specific controls and screen sizes to ensure smooth gameplay. Include mechanics such as combat systems, inventory management, leveling, and world-building elements appropriate to the 8-bit RPG genre. # Steps 1. Define the core game concept and story overview. 2. Detail the main character(s) and their progression system. 3. Design the open world map, including key locations, biomes, and hidden areas. 4. Outline the quest structure with main, side, and repeatable quests. 5. Specify the combat mechanics, enemies, and difficulty scaling. 6. Describe NPC interactions and dialogue systems. 7. Include details about inventory, items, equipment, and crafting (if applicable). 8. Address technical considerations for iOS platform compatibility and controls. 9. Plan UI/UX elements optimized for mobile devices. 10. Provide example art style references and sound/music suggestions appropriate for an 8-bit RPG. # Output Format Provide the design document in a well-organized, structured format with clear headings and bullet points where necessary. The document should be concise yet thorough enough for a development team to begin implementation immediately. Include diagrams or maps as text descriptions or placeholders if necessary. # Notes - Ensure the design balances nostalgia for classic 8-bit RPGs with usability and accessibility on modern iOS devices. - Consider touch controls and performance limitations on various iOS hardware. - Focus on creating an immersive open world that encourages exploration and player engagement.

AC Shadows Mod Manifest and Lua

Generate detailed manifest and Lua script files tailored for use with "Assassin's Creed Shadows." Ensure the manifest accurately defines all necessary metadata and dependencies, and the Lua script includes well-structured, efficient code that aligns with the game's modding or scripting standards. Steps: 1. Analyze the typical structure and requirements for manifest files in "Assassin's Creed Shadows" mods or scripts. 2. Create a manifest file with correct metadata such as name, version, author, description, and dependencies. 3. Develop a Lua script that incorporates game-relevant functions or behaviors, using proper syntax and conventions specific to "Assassin's Creed Shadows." 4. Validate that both files are compatible and correctly formatted for the game's modding framework. Output Format: Provide two separate code blocks clearly labeled as "Manifest File" and "Lua Script," each containing the complete code for their respective files. Use proper indentation and formatting for readability.

8-Bit NES Game in Python

Create a simple 8-bit style NES game using Python. The game should be simple, implementing basic features of classic NES games such as sprite movement, collision detection, and a simple scoring system. # Steps 1. **Setup:** Ensure you have Python installed and set up a new project directory. Install the necessary library, with `pip install pygame` if you have not done so. 2. **Initialize Pygame:** Import the Pygame library and initialize it in your script. Set up the screen dimensions to resemble the NES style (e.g., 256x240 pixels). 3. **Create Game Assets:** Design simple 8-bit sprites and backgrounds, or use existing assets that adhere to the NES aesthetic. Load these assets into your game. 4. **Game Loop:** Implement the main game loop where you handle events, update game state, and render graphics. - Handle user input to move sprites and control game actions. - Implement basic collision detection between sprites. - Update the game score based on certain conditions or achievements. 5. **Rendering:** Ensure that the graphics are drawn correctly every frame, maintaining the classic NES look and feel. 6. **Finalize and Test:** Determine the win/lose conditions, add sound effects/music if desired, and test the game to ensure it runs smoothly. # Output Format Provide the complete Python code implementing the 8-bit style NES game, including comments explaining key functions and logic. # Examples [optional] Here's an example setup for initializing a simple Pygame project: ```python import pygame # Initialize Pygame pygame.init() # Set up the display screen = pygame.display.set_mode((256, 240)) pygame.display.set_caption('8-bit NES Game') # Main loop running = True while running: for event in pygame.event.get(): if event.type == pygame.QUIT: running = False # Game logic goes here # Rendering goes here screen.fill((0, 0, 0)) # Clear screen with black pygame.display.flip() # Update display # Clean up pygame.quit() ``` # Notes - Focus on simplicity and fun, akin to early NES games. - Use minimalistic graphics and sound that fit the 8-bit theme.

Access Control Bot Development

Create a system for an Access Control Bot using NFTs (Non-Fungible Tokens) and SBTs (Soulbound Tokens) to manage access to Telegram groups. Implement this using Google Apps Script (GAS), ensuring the system checks users' wallets for the presence of a specific NFT/SBT. If the token is found, the user is granted access to the group. If not, the user is removed from the group. Store user data in Google Sheets.

Access Website via VLESS in Python

Write a complete Python script that accesses a website through a VLESS proxy configuration. The script should: - Accept a VLESS configuration input detailing server address, port, UUID, encryption, and any other necessary parameters. - Properly establish a connection using the VLESS protocol based on the provided configuration. - Send an HTTP request to a specified website through this VLESS proxy. - Handle any authentication or protocol-specific requirements. - Retrieve and print the response content or status from the accessed website. Ensure the code includes necessary imports, error handling, and comments explaining each step. Assume the environment has access to any public Python packages but do not require manual, non-Python steps. If direct VLESS support is unavailable, explain and demonstrate a workaround within Python to achieve the requested functionality. # Output Format - Provide a fully functional, well-documented Python script in a single code block. # Notes - Consider that native Python libraries may not support VLESS directly; detail any third-party libraries or subprocess approaches used. - Maintain clarity so a reader with Python knowledge can understand and adapt the solution.

8-Second Seamless Video Generator

Build an application that generates video segments using VEO3, each exactly 8 seconds long. Each video segment must consist of continuous frames designed to be seamlessly concatenated within an application, enabling the creation of longer video sequences without any visual interruptions or noticeable transitions. To accomplish this: 1. Initialize and properly configure VEO3 for consistent video generation. 2. Define the length of each video segment strictly as 8 seconds. 3. Generate video frames ensuring temporal and visual continuity so that consecutive segments can be joined seamlessly. 4. Export each video segment in a format optimized for integration within the target application. 5. Test the concatenation process to confirm that combining multiple segments results in smooth, uninterrupted playback without frame skips, jumps, or visual artifacts. Focus on maintaining frame consistency and seamless visual flow between segments to ensure a professional and fluid longer video experience when segments are combined. # Output Format Provide detailed implementation steps or code snippets demonstrating how to configure VEO3, generate the 8-second video segments with continuous frames, export them appropriately, and validate the seamless concatenation. Include technical details on frame generation and handling to achieve smooth transitions. # Notes - Emphasize techniques to maintain frame-to-frame continuity (e.g., ensuring last frame of a segment matches or transitions smoothly to the next segment's first frame). - Consider any necessary buffering or overlap strategies. - Mention the output video format and any encoding parameters to facilitate smooth playback and concatenation. # Response Formats {"prompt": "...", "name": "8-Second Seamless Video Generator", "short_description": "Generates seamless 8-second video segments using VEO3 for smooth concatenation.", "icon": "VideoCameraIcon", "category": "programming", "tags": ["Video Generation", "VEO3", "Seamless Concatenation", "Video Segments"], "should_index": true}

Accessible React Code

Generate accessible code snippets for React components by incorporating best practices to ensure compliance with accessibility standards (such as WAI-ARIA). Your goal is to enhance React components so that they are usable by people with disabilities, such as adding appropriate ARIA roles, labels, and keyboard navigation. # Steps 1. **Identify Component Type**: Determine the nature of the React component (e.g., button, form, modal) to apply appropriate accessibility enhancements. 2. **Use Semantic HTML**: Prefer semantic HTML elements that naturally convey meaning and support accessibility (e.g., `<button>`, `<main>`, `<form>`). 3. **Add ARIA Roles**: Where necessary, add ARIA roles to non-semantic elements to communicate their role in the interface. 4. **Ensure Keyboard Accessibility**: Ensure the component is fully usable via keyboard interactions, such as adding `tabIndex`, or handling keyboard events. 5. **Provide ARIA Attributes**: Use ARIA attributes like `aria-label`, `aria-labelledby`, `aria-describedby`, etc., to enhance clarity and support assistive technologies. 6. **Test with Screen Readers**: Test the component's description and interaction with various screen readers to ensure information is conveyed effectively. 7. **Incorporate Live Regions**: Include appropriate ARIA live regions for dynamic content updates when necessary. 8. **Follow WCAG Guidelines**: Reference WCAG (Web Content Accessibility Guidelines) to ensure compliance with broader accessibility principles. # Output Format Provide the updated React component with explanatory comments about each accessibility feature added. The code should be formatted in markdown as a JavaScript code block. # Examples ### Example 1: Button Component ```jsx // This is a simple button component with accessibility features function AccessibleButton({ text, onClick }) { return ( <button onClick={onClick} aria-label={text}> {text} </button> ); } ``` ### Example 2: Modal Component ```jsx // Modal with ARIA attributes for accessibility function AccessibleModal({ title, content, onClose }) { return ( <div role="dialog" aria-labelledby="modal-title" aria-modal="true"> <h1 id="modal-title">{title}</h1> <div>{content}</div> <button onClick={onClose} aria-label="Close Modal"> Close </button> </div> ); } ``` # Notes - Consider edge cases such as dynamic content updates needing additional ARIA attributes. - Use library solutions when custom components don’t offer necessary accessibility out-of-the-box.

8-Way Fantasy Movement

Create a system for defining an 8-way movement pattern for a fantasy hero character within a game environment. Consider standard up, down, left, and right movements, as well as diagonal movements (up-left, up-right, down-left, down-right). Implement the movement within a coordinate system, ensuring each direction changes the hero's position accurately. # Steps 1. Define the coordinate system: Typically, use a 2D grid with X (horizontal) and Y (vertical) axes. 2. Identify the eight possible movement directions: up, down, left, right, up-left, up-right, down-left, down-right. 3. Set movement vectors for each direction: - Up: [0, 1] - Down: [0, -1] - Left: [-1, 0] - Right: [1, 0] - Up-Left: [-1, 1] - Up-Right: [1, 1] - Down-Left: [-1, -1] - Down-Right: [1, -1] 4. Write a function that takes the hero's current position and updates it based on the chosen direction. 5. Ensure boundary conditions are handled, preventing the hero from moving outside the game world limits. # Output Format Provide code snippets or pseudocode demonstrating how to implement these movement rules in a game environment. # Examples - Starting Position: (2,2), Move: Up, New Position: (2,3) - Starting Position: (2,2), Move: Up-Right, New Position: (3,3) # Notes - The coordinate system assumes the origin (0,0) is at the bottom-left corner of the game world. - Consider adding functionality to handle special conditions, such as collisions with objects or other characters.

ACF JSON & PHP Template Generator

You are an AI-powered assistant specialized in generating Advanced Custom Fields (ACF) JSON export files and dynamic PHP/HTML templates for WordPress theme development using ACF PRO. Given a detailed description of custom field configurations (e.g., field names and types like Image, Text, WYSIWYG, Link, Flexible Content, Repeaters, Groups, Galleries, oEmbed, conditional logic), you will generate two key outputs: 1. **ACF JSON**: A complete and valid JSON export structure compatible with importing via ACF > Tools > Import Field Groups, representing the provided field group and fields, including nested and conditional configurations. 2. **PHP/HTML Template Code**: A clean, ready-to-use PHP snippet or full template that fetches and displays these fields correctly in WordPress: - Use proper ACF functions like `get_field()`, `have_rows()`, `the_sub_field()`, `get_sub_field()` according to the field context. - Include loops and conditional checks for Flexible Content, Repeaters, and Groups. - Wrap outputs with appropriate WordPress sanitization functions (`esc_url()`, `esc_attr()`, `esc_html()`). - Ensure HTML markup is semantic and supports conditional rendering only when fields exist. Additionally, follow these best practices: - Top-level fields: use `get_field()`. - Sub-fields inside repeaters/flexible content: use `get_sub_field()` or `the_sub_field()`. - Always verify field existence before rendering. When you produce the JSON, ensure it matches the standard ACF JSON export format. For the PHP code, produce template snippets that can be directly placed under a theme's `templates/sections/` folder. Before providing outputs, confirm understanding by restating the input field structure briefly. If conditional logic or nesting is specified, reflect that accurately in both JSON and PHP. --- ### Input Example Format (for user): Provide field definitions as a list with: - Field label = Field type - Optional notes about nesting or conditional logic Example: Section Image = Image Field Section Title = Text Field Section Content = WYSIWYG Field Section Button = Link Field Flexible Content containing multiple layouts with nested repeaters ### Output Format: ```json { "acf_json": { /* full JSON export structure */ }, "php_template": "<?php ... ?>" /* PHP code snippet as a single string */ } ``` Make sure the JSON is a valid JSON object representing the exported field group, and the PHP template string contains well-indented and sanitized PHP/HTML code. --- Now, generate the ACF JSON and PHP template code based on the following input field configuration: [Insert user-defined field structure here]

Page 22 of 68

    Coding Prompts - Learning AI Prompts | Elevato