How kaeruct/desk.glitchy.website works
Main Components
A. Core System Layer
• Window Management System (based on programs.js)
• Event Handler System (util.js)
• File System Simulation (filesystem.js)
B. Application Layer
• Multiple Desktop Applications:
• File Explorer (explorer.js)
• Media Player (winamp.js, videoplayer.js)
• Terminal (terminal.js)
• Games (asteroids.js, lettershooter.js, sandtoy.js)
• Utilities (clock.js, notepad.js)
C. Resource Management
• Asset Manager for:
• Audio Files (/audio)
• Video Files (/vid)
• Styles (multiple .css files)
D. UI Components
• Desktop Environment
• Window Controls
• Task Bar
• Start Menu
• [User Interface Layer]
• ↑↓
• [Application Layer]
• ↑↓
• [Core Systems Layer]
• ↑↓
• [Resource Layer]
Key Architectural Elements to Highlight
a. Window Management System
• How it manages multiple application windows
• Event handling for window operations
• Z-index management for window stacking
b. Application Integration
• How individual applications integrate with the core system
• Demonstrate resource loading paths
• Inter-application communication if any
c. File System Simulation
• Relationship between the file explorer and filesystem.js
• How the js-fileexplorer component integrates
Implementation Details
• Event propagation system
• Resource loading and caching mechanisms
• Window state management
• Application lifecycle management
Notes
• Keep the main desktop UI as the central focus
• Related applications together
• Clear boundaries between system and application code
• Entry points and initialization flow