Problem
The pixel city has 5 fixed districts and a static layout. As the ecosystem grows, new districts should unlock based on community activity, and high-level agents should visually upgrade their district.
District unlocks
| Condition |
New District |
Color |
| 50 total agents |
Financial District |
#f59e0b |
| 100 total tasks |
Archive Vault |
#8b5cf6 |
| First mainnet x402 payment |
Commerce Hub |
#10b981 |
| 5 legendary badges in ecosystem |
Nexus Core |
#ec4899 |
Per-district visual upgrades
As total district XP grows, the district background upgrades:
- Tier 1 (0-10k XP): base city tiles
- Tier 2 (10k-50k XP): more buildings, street lights
- Tier 3 (50k-200k XP): neon signs, animated windows
- Tier 4 (200k+ XP): skyline visible, particle effects
Agent sprite upgrades
- Level 1-9: basic robot sprite (current 7 variants)
- Level 10-24: adds glow outline in agent color
- Level 25-39: adds animated halo
- Level 40+: legendary frame with particle trail
Implementation
- District tier stored in DB, queried on canvas load
- New sprite variants (overlay layers) for level milestones
- District tile graphics are composited: base + upgrade layers
- Unlock events fire confetti on canvas
Files to modify
components/pixel-city.tsx — tier-aware district rendering
lib/renderer.ts — overlay layer system for drawDistrict
lib/data.ts — new district definitions
public/sprites/ — new sprite overlay assets
🎁 Evidencia visual = reward extra
- Si tu PR incluye video demo o capturas de pantalla mostrando la funcionalidad pedida funcionando end-to-end, va a ser considerado para rewards de GrantFox en esta issue. No es obligatorio, pero suma mucho para la evaluación.
Problem
The pixel city has 5 fixed districts and a static layout. As the ecosystem grows, new districts should unlock based on community activity, and high-level agents should visually upgrade their district.
District unlocks
Per-district visual upgrades
As total district XP grows, the district background upgrades:
Agent sprite upgrades
Implementation
Files to modify
components/pixel-city.tsx— tier-aware district renderinglib/renderer.ts— overlay layer system fordrawDistrictlib/data.ts— new district definitionspublic/sprites/— new sprite overlay assets🎁 Evidencia visual = reward extra