- Refactored monolithic app.js into a modular architecture (core/ and modules/) - Introduced SovOS: A modular 3D windowing system for the Nexus - Implemented Glassmorphism UI components for futuristic 3D terminal panels - Established a unified State & Broadcaster system for real-time data sync - Added a Global Ticker for clean, modular animation management - Ensured all new files are strictly under 1000 lines (avg < 100 lines) - Migrated core features (Command, Metrics, Cognition) into independent SovOS Apps This pivot enables rapid, sovereign evolution of the Nexus environment.
11 lines
241 B
JavaScript
11 lines
241 B
JavaScript
export class Ticker {
|
|
constructor() {
|
|
this.callbacks = [];
|
|
}
|
|
subscribe(fn) { this.callbacks.push(fn); }
|
|
tick(delta, elapsed) {
|
|
this.callbacks.forEach(fn => fn(delta, elapsed));
|
|
}
|
|
}
|
|
export const globalTicker = new Ticker();
|