Files
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

131 lines
3.2 KiB
JavaScript

/**
* Cosmic Garden - Building Definitions
* All purchasable buildings that generate stardust
*/
const BUILDINGS = {
// Tier 1 - Basic plants
starSprout: {
id: 'starSprout',
name: 'Star Sprout',
icon: '🌱',
description: 'A tiny seed that glows softly',
baseCost: 15,
baseProduction: 0.1,
unlockAt: 0
},
moonBloom: {
id: 'moonBloom',
name: 'Moon Bloom',
icon: '🌸',
description: 'Flowers that only open under moonlight',
baseCost: 100,
baseProduction: 0.5,
unlockAt: 50
},
solarLeaf: {
id: 'solarLeaf',
name: 'Solar Leaf',
icon: '☀️',
description: 'Absorbs sunlight to create stardust',
baseCost: 500,
baseProduction: 2,
unlockAt: 200
},
// Tier 2 - Advanced plants
nebulaVine: {
id: 'nebulaVine',
name: 'Nebula Vine',
icon: '🌿',
description: 'Wraps around cosmic dust clouds',
baseCost: 2000,
baseProduction: 10,
unlockAt: 1000
},
cometRose: {
id: 'cometRose',
name: 'Comet Rose',
icon: '🌹',
description: 'Blooms for just a second as it flies',
baseCost: 10000,
baseProduction: 50,
unlockAt: 5000
},
asteroidCactus: {
id: 'asteroidCactus',
name: 'Asteroid Cactus',
icon: '🌵',
description: 'Survives in the harshest space conditions',
baseCost: 50000,
baseProduction: 200,
unlockAt: 25000
},
// Tier 3 - Rare plants
pulsarPalm: {
id: 'pulsarPalm',
name: 'Pulsar Palm',
icon: '🌴',
description: 'Rhythmic pulses of pure energy',
baseCost: 250000,
baseProduction: 1000,
unlockAt: 100000
},
blackholeOrchid: {
id: 'blackholeOrchid',
name: 'Black Hole Orchid',
icon: '🪻',
description: 'Bends light itself to grow',
baseCost: 1000000,
baseProduction: 5000,
unlockAt: 500000
},
galaxyTree: {
id: 'galaxyTree',
name: 'Galaxy Tree',
icon: '🌳',
description: 'Contains an entire galaxy within its branches',
baseCost: 5000000,
baseProduction: 25000,
unlockAt: 2000000
},
// Tier 4 - Legendary plants
cosmicLotus: {
id: 'cosmicLotus',
name: 'Cosmic Lotus',
icon: '🪷',
description: 'Blooms at the center of creation',
baseCost: 25000000,
baseProduction: 100000,
unlockAt: 10000000
},
supernovaTulip: {
id: 'supernovaTulip',
name: 'Supernova Tulip',
icon: '🌺',
description: 'Explodes with stardust every cycle',
baseCost: 100000000,
baseProduction: 500000,
unlockAt: 50000000
},
voidFern: {
id: 'voidFern',
name: 'Void Fern',
icon: '🍃',
description: 'Grows in the spaces between dimensions',
baseCost: 500000000,
baseProduction: 2500000,
unlockAt: 200000000
}
};