Files
idle-game/js/main.js
T
hermes a20f9d342c Initial commit: Cosmic Garden idle game foundation
- Complete game architecture with modular JS structure
- 12 buildings across 4 tiers with scaling costs
- 15+ upgrades with requirements and bonuses
- 20 achievements to unlock
- Auto-save system with offline progress (50% efficiency)
- Export/Import save functionality
- Responsive dark-themed UI with cosmic aesthetic
- Floating text animations and notification system
2026-08-18 21:03:04 +00:00

15 lines
350 B
JavaScript

/**
* Cosmic Garden - Main Entry Point
*/
document.addEventListener('DOMContentLoaded', () => {
Game.init();
// Show last save time
const lastSave = SaveSystem.getLastSaveTime();
if (lastSave) {
document.getElementById('last-saved').textContent =
`Last saved: ${lastSave.toLocaleTimeString()}`;
}
});