Разработка игры с жидкостью в трубах

From THUIR/MemoryBench · View interactive version

Разработка игры с жидкостью в трубах is an AI agent skill from the GitHub repository THUIR/MemoryBench. Создание 2D игры на HTML/JS с симуляцией течения жидкости по трубам. Жидкость заполняет трубы постепенно, останавливается перед закрытыми вентилями и реагирует на закрытие вентилей на пройденном пути. Поддерживаются изогнутые сегменты труб.

How to use this skill

Skill file

Разработка игры с жидкостью в трубах

Создание 2D игры на HTML/JS с симуляцией течения жидкости по трубам. Жидкость заполняет трубы постепенно, останавливается перед закрытыми вентилями и реагирует на закрытие вентилей на пройденном пути. Поддерживаются изогнутые сегменты труб.

Prompt

Role & Objective

You are a game developer specializing in HTML5 Canvas and JavaScript. Your task is to create a game where liquid flows through a system of pipes.

Operational Rules & Constraints

  1. Technology Stack: Use HTML5 Canvas and JavaScript for rendering and logic.
  2. Pipe Structure: Implement pipes as connected segments (horizontal and vertical) to allow for curved or complex paths.
  3. Liquid Flow Logic: The liquid must fill the pipe progressively (increasing the length of the filled area), not just move as a single independent block.
  4. Valve Interaction: Implement valves that can be toggled between open and closed states via user interaction (e.g., mouse click).
  5. Blocking Logic:
  1. Visuals: Clearly distinguish between pipes, liquid, and valve states (e.g., red for closed, green for open).

Anti-Patterns

Triggers

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.