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
This commit is contained in:
2026-08-18 21:03:04 +00:00
commit a20f9d342c
12 changed files with 2014 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
/**
* 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()}`;
}
});