Skip to content

Pixel city expansion — new districts and visual upgrades as agents level up #45

Description

@leocagli

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSPart of the GrantFox OSS campaignMaybe RewardedMay be eligible for GrantFox rewardOfficial CampaignOfficial GrantFox campaign issuearea: gamificationXP, badges, leaderboards, questsarea: uiFrontend and UXclaimedIssue tomado por un contribuidor (via /assign)milestone: v0.4Gamification Layer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions