Skip to content

Add real-time mode: watch file changes and animate buildings #3

Open

Description

@Manavarya09

Feature Request

Problem

Currently the 3D city is a static snapshot. It would be amazing to see the city evolve in real-time as you code.

Proposed Solution

Add a --watch mode:

code-city --watch ./src

Behaviors:

  • New files → buildings grow upward with animation
  • Deleted files → buildings crumble/fade out
  • Modified files → buildings pulse/glow
  • Git commits → firework effect over changed districts

Technical Approach

  • Use chokidar or fs.watch for file system events
  • WebSocket connection to the Three.js client
  • Smooth GSAP/Tween animations for transitions

This would make an incredible demo for talks and streams!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions