gilded-system

byyousuf2024

I need you to build my entire Flutter city transportation simulation game using an automated, self-correcting development loop. Do not ask me for clarification; make logical decisions and proceed through ALL phases. GAME SPECIFICATION: Theme: Dark theme with realistic roads, buildings, trees, and bus stops. Core Loop: Buses follow routes, pick up/drop off passengers, generate revenue. Features: City Map View (interactive, zoom/pan, double-tap to add stops). Bus System (multiple buses, routes, capacities, colors). Passenger System (automatic generation, rush hour simulation). Route Management (create routes by selecting stops). Stop Management (add/delete via double-tap). Financial Dashboard (revenue by bus, stop, route). Game Controls (Play/Pause, Speed slider 0.5x-3x). Expansion Ready (architecture must support future trains, airports, and buildings like cafes/schools). YOUR AUTOMATED TIERED LOOP INSTRUCTIONS: TIER 1: THE FOUNDATION (DO NOT PROCEED UNTIL THIS PASSES) Generate the core GameState class (using Riverpod or Provider). Generate the MapRenderer (roads, dark theme, basic grid). Self-Critique: Check if the map renders without crashes and if the state updates properly. Rewrite: Fix any issues. Test: Provide 3 tests to prove the map and state work. OUTPUT: Only proceed to Tier 2 once you confirm Tier 1 code is solid. TIER 2: THE CORE MECHANICS (BUSES + PASSENGERS + REVENUE) Generate the Bus, BusStop, Passenger, and Route classes. Generate the movement controller (smooth animation along routes). Generate the passenger spawner (with rush hour logic). Generate the revenue tracker (per bus/stop/route). Self-Critique: Check for memory leaks (dispose controllers), capacity bugs, and revenue calculation errors. Rewrite: Fix all issues. Test: Provide 5 edge-case tests (e.g., bus full, midnight no passengers, etc.). OUTPUT: Only proceed to Tier 3 if all tests pass. TIER 3: THE UI & INTERACTIONS (MANAGEMENT + DASHBOARD) Generate the RouteManagementScreen (select stops to create a route). Generate the FinancialDashboard (charts and tables showing revenue). Generate the double-tap-to-add-stop functionality. Generate the Play/Pause and Speed Slider controls. Self-Critique: Check for UI lag, incorrect state updates, and unresponsive gestures. Rewrite: Optimize UI performance (use RepaintBoundary, Consumer widgets correctly). Test: Provide 3 user-flow tests (e.g., "User adds stop, creates route, starts game"). OUTPUT: Only proceed to Tier 4 if UI interactions work flawlessly. TIER 4: THE EXPANSION LAYER (FUTURE-PROOFING) Refactor the architecture to use an abstract TransportNode class (so trains/airports can inherit later). Refactor buildings to use an abstract Building class (cafe, school, monument). Create an ExpansionManager that auto-discovers new node types from a config file. Self-Critique: Does the new architecture break existing bus/passenger logic? Is it truly plug-and-play for new features? Rewrite: Ensure zero breakage and 100% backward compatibility. Test: Simulate adding a "TrainStation" as a proof of concept without changing core code. TIER 5: FINAL INTEGRATION & POLISH Combine all Tiers into a single, cohesive main.dart and supporting files. Generate a folder structure (e.g., /models, /controllers, /screens, /widgets). Provide a 10-point setup guide (dependencies, assets folder for dark theme icons, etc.). Final Self-Critique: Review the entire project for consistency, naming conventions, and performance. Final Rewrite: Polish the code. FINAL OUTPUT: Output the complete project code in organized code blocks. If the response gets cut off, say "CONTINUE" and I will prompt you to resume. EXECUTION RULE: You are forbidden from stopping at Tier 1 and asking "Should I proceed?" You must automatically move through Tier 2, 3, 4, and 5 until the entire game is fully built, tested, and output. You are the architect and the worker. Begin now.

LandingCityMapRouteManagementExpansionManager
Landing

Comments (0)

No comments yet. Be the first!

Landing design preview
Landing: Launch App
CityMap: Test Render
CityMap: Verify Map
GameState: Test State
GameState: Check Updates
BusSystem: Test Animations
BusSystem: Verify Movement
PassengerSystem: Test Spawner
FinancialDashboard: Verify Revenue
ExpansionManager: Test Config
Architecture: Check Memory
Architecture: Validate Performance