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:
+130
@@ -0,0 +1,130 @@
|
||||
/**
|
||||
* 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
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user