Sort the Court!

Seele01-Flash
By
Sort the Court! is a charming kingdom management strategy game where you rule as monarch, making simple yes/no decisions that dramatically shape your realm's future through encounters with quirky characters and magical creatures.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Sort the Court!". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A "2.5D Pop-up Book" or "Paper Theater" aesthetic. Use flat 2D sprites mapped onto 3D planes (`THREE.MeshBasicMaterial` with transparency) to mimic the hand-drawn, cartoon style of the screenshot. * **Scene Layout:** * **Foreground:** A stone archway framing the screen. * **Mid-ground (Left):** The King/Queen on a throne. The sprite should have a subtle "breathing" or bobbing animation (using `Math.sin` on the Y-axis). * **Mid-ground (Right):** A placeholder for the "Visitor" (NPC). Use a pool of texture colors or simple shapes to represent different quirky characters (e.g., Peasant, Knight, Monster). * **Background:** A stylized kingdom view. This should use multiple parallax layers (clouds, castle turrets, distant houses) that move slightly based on device gyroscope data (if available) or camera sway. * **Optimization:** Use a single Texture Atlas for all sprites to reduce draw calls. Ensure textures are power-of-two (e.g., 1024x1024) for mobile GPU compatibility. ### 2. Audio Requirements * **BGM:** A whimsical, looping medieval tune. Think acoustic guitar, lute, or flute. Lighthearted and royalty-free style. * **Sound Effects (SFX):** * **Dialogue:** A high-pitched "typewriter" or "mumble" sound (like *Animal Crossing*) that plays while text is appearing. * **Decision:** A satisfying "Stamp" or "Thud" sound when a choice is made. * **Feedback:** A "Coin jingle" for Gold gain, a "Cheer" for Population increase, and a "Sigh/Groan" for negative outcomes. * **UI:** A soft "Pop" sound when buttons are tapped. ### 3. Gameplay Loop * **Core Mechanic:** The player acts as the ruler. An NPC approaches and asks a binary question (displayed in a text bubble). The player must choose "Yes" or "No". * **Resources:** Track three stats displayed at the top of the screen: **Population**, **Gold**, and **Happiness**. * **Logic:** * Each decision immediately impacts one or more stats (e.g., "Pay for festival?" -> -Gold, +Happiness). * After the decision, particle effects (Green `+` or Red `-` icons) should float up from the stats bar. * The NPC leaves (tweens off-screen), and a new one enters. * **Cycle:** Every 5 decisions constitute a "Day". At the end of the day, a summary screen shows total changes. * **Visual Progression:** If Population/Gold exceeds a certain threshold, the background assets should swap to look more prosperous (e.g., bigger castle, more flags). ### 4. Mobile Controls & Interaction * **Orientation:** Landscape Mode (Force landscape via CSS if possible, or design responsive layout). * **Input Method:** * **Primary:** Two large, distinct circular buttons on the right side of the screen (for easy thumb access). Top Green Button (Checkmark) for "Yes", Bottom Red Button (Cross) for "No". * **Gesture (Optional but recommended):** Implement a "Swipe" mechanic on the NPC sprite (Swipe Right for Yes, Left for No), similar to *Tinder* or *Reigns*. * **UI Design:** * The dialogue text box must be large and legible on small screens (minimum 16px font size). * Buttons must have a minimum touch target of 48x48px (physically larger on screen). * **Haptic/Visual Feedback:** * Trigger `navigator.vibrate(50)` on button press. * The NPC sprite should briefly squash/stretch or flash color when a decision is registered. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Sort the Court!

Sort the Court! is a delightfully engaging kingdom management strategy game that puts you in the royal throne as ruler of a growing medieval realm. This unique decision-based game combines strategic thinking with storytelling, where every simple yes or no choice you make has far-reaching consequences for your kingdom's prosperity, population, and happiness.

In this charming pixel-art adventure, you'll encounter a parade of colorful characters - from humble peasants and ambitious merchants to mystical wizards and bizarre creatures - each presenting you with requests, proposals, and dilemmas that will test your wisdom as a ruler.

Core Features

Simple Yet Strategic Gameplay

The beauty of Sort the Court! lies in its elegant simplicity. With just two options - yes or no - you'll make decisions that ripple through your entire kingdom. Will you approve the merchant's trade proposal? Should you allow the wizard to experiment in your castle? Each choice affects your kingdom's three vital resources: population, happiness, and wealth.

Dynamic Kingdom Growth

Watch your decisions come to life as your kingdom evolves based on your ruling style. Wise choices lead to prosperity and growth, while poor decisions might result in chaos, rebellion, or economic collapse. The game's dynamic system ensures that every playthrough feels unique and personal to your leadership approach.

Colorful Cast of Characters

Meet dozens of memorable characters, each with their own motivations and stories. From greedy tax collectors and loyal knights to mysterious fortune tellers and mischievous imps, every visitor to your court brings new opportunities and challenges.

Consequence-Driven Narrative

Your decisions create an evolving narrative that reflects your ruling philosophy. Will you be a benevolent ruler who prioritizes citizen happiness? A shrewd leader focused on economic growth? Or perhaps a balanced monarch trying to juggle all aspects of kingdom management?

Gameplay Mechanics

The core gameplay revolves around managing three essential kingdom statistics:

  • Population : The number of citizens in your realm
  • Happiness : How content your subjects are with your rule
  • Gold : Your kingdom's economic prosperity

Each decision you make will positively or negatively impact these resources. The challenge lies in maintaining balance - focusing too heavily on one aspect while neglecting others can lead to your kingdom's downfall.

Operation Guide

Basic Controls: - Mouse Click : Select your decision (Yes or No) - Y Key : Choose "Yes" to approve a request - N Key : Choose "No" to decline a request - ESC : Access game menu (pause/settings)

Gameplay Tips: - Carefully consider each character's request and its potential consequences - Monitor your kingdom's three vital statistics constantly - Look for patterns in how different types of decisions affect your realm - Don't be afraid to experiment - failed kingdoms teach valuable lessons! - Pay attention to character dialogue for hints about decision outcomes

Why Play Sort the Court!

Perfect for Strategy Lovers : If you enjoy games that make you think strategically about cause and effect, Sort the Court! offers endless replay value with its branching decision trees.

Accessible to All Players : The simple yes/no mechanic means anyone can jump in and start ruling immediately, while the deep strategic elements keep experienced gamers engaged.

Quick Gaming Sessions : Perfect for both short coffee break sessions and longer strategic planning marathons. Each encounter takes seconds, but the cumulative effect creates hours of engaging gameplay.

Educational Value : Learn about resource management, leadership decisions, and the complex balance required in governing - all while having fun!

Stress-Free Entertainment : The charming art style and humorous character interactions provide a relaxing gaming experience without intense action or time pressure.

Whether you're a seasoned strategy game veteran or new to management games, Sort the Court! offers an uniquely satisfying experience that combines the satisfaction of building an empire with the immediacy of quick decision-making gameplay.

Frequently Asked Questions (FAQ)