# Tool: Best Prompt for Game Logic Programming

> Engineer engaging game mechanics with the BOPINK Game Dev Prompt Architect. Built for Gameplay Programmers, Indie Game Developers, and Systems Engineers, this tool constructs prompt specifications for coding Unity 6 C# or Unreal Engine 5 C++ scripts, player controllers, state machines, inventory systems, AI enemy behavior trees, and physics collision callbacks.

**Category**: prompts-code-design | **Target AI Models**: Gemini 3.1 Pro, GPT-4o

## Domain Parameters:
- `gameEngine` (select): Game Engine & Scripting Environment (Default: "Unity C#")
- `physicsExecution` (toggle): Frame-Rate Independent Physics (Default: "true")
- `objectPooling` (toggle): Zero-GC Object Pooling System (Default: "true")
- `statePattern` (select): State Machine Architecture (Default: "FSM")

## Master Prompt Engineering Architecture (5 Pillars):
1. **Role & Persona**: Domain expert framing
2. **Task & Deliverable**: Primary objective & constraints
3. **Context & Parameters**: Technical specs & camera/stack parameters
4. **Negative Constraints**: Forbidden artifacts & bad practices
5. **Output Spec**: Section formatting & XML/Markdown structure

## Programmatic API Execution:
```http
POST /api/generate-prompt
Content-Type: application/json

{
  "toolSlug": "best-prompt-for-game-logic-programming",
  "rawPrompt": "Your raw concept here",
  "thinkingLevel": "HIGH"
}
```
