Devlog02: Sprint 2 completed


๐ŸŽ‰ Sprint 2 Complete!

Excellent work! Let's document what we've accomplished and prepare for Sprint 3.

โœ… Sprint 2: Activation System - DONE

Deliverables Completed:

1. Architecture โœ…

  • โœ… IActivatable interface (clean contract)
  • โœ… ActivatableObject component (Observer Pattern)
  • โœ… Single VisitManager managing entire system
  • โœ… Event-driven architecture (decoupled design)

2. Features Working โœ…

  • โœ… Buildings activate based on visit thresholds
  • โœ… Multiple activation types:
    • FadeIn โœ…
    • ScaleUp โœ…
    • FadeAndScale โœ…
    • Instant โœ…
  • โœ… Multiple zones support (different areas of the world)
  • โœ… Progressive building appearance (revisiting zones spawns more)

3. Code Quality โœ…

  • โœ… SOLID principles followed
  • โœ… Observer Pattern implemented correctly
  • โœ… Comprehensive debug logging
  • โœ… No compiler errors/warnings
  • โœ… No runtime errors on play/stop
  • โœ… Helpful comments throughout

4. System Robustness โœ…

  • โœ… Auto-creates VisitManager if missing
  • โœ… Handles shutdown gracefully (no null errors)
  • โœ… Persists between scenes (DontDestroyOnLoad)
  • โœ… Supports save/load architecture (future-ready)

๐Ÿ“Š Sprint 2 Metrics

Files Created: 3

  • IActivatable.cs
  • ActivatableObject.cs
  • VisitManager.cs (updated)

Lines of Code: ~450 lines

Design Patterns: 2

  • Observer Pattern (event subscription)
  • Singleton Pattern (VisitManager)

๐ŸŽ“ What We Learned

  1. ONE VisitManager manages everything - not one per building
  2. Zone IDs must match exactly - case-sensitive strings
  3. Observer Pattern decouples buildings from manager
  4. Shutdown order matters - defensive cleanup prevents errors
  5. Auto-creation improves developer experience

๐Ÿ“ธ Demo Setup Working


Player drives through zone   
   โ†“ 
Visit count increases
   โ†“ 
Buildings activate with smooth animations   
   โ†“ 
World grows progressively

Perfect foundation for Sprint 3! ๐Ÿ—๏ธ

๐Ÿš€ Sprint 3 Preview: Player States & Interaction

Sprint 3 Goals

Add the ability to:

  1. Exit the car (press E to get out)
  2. Walk around on foot
  3. Interact with buildings/NPCs (press E near them)
  4. Enter the car again (press E near car)

Get Sunday Drive

Leave a comment

Log in with itch.io to leave a comment.