Files
idle-game/js/main.js
T
Hermes Agent dbf1cdf35d Add Statistics Panel feature
- Recreated full game foundation from previous session
- Added Statistics tab with detailed game metrics:
  * Total Stardust Earned
  * Current Production Rate (✨/sec)
  * Total Clicks
  * Click Power
  * Time Played (auto-formatted)
  * Buildings Owned
  * Upgrades Purchased
  * Achievements Unlocked
  * Game Progress bar
- Fixed global production bonus calculation in game.js
- Added responsive CSS for stats panel

Files added: js/stats.js, dev-journal.md, README.md, JOURNAL.md
2026-08-19 05:20:41 +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()}`;
}
});