This is an Insect Colony Energy Game built with p5.js that simulates a dynamic ecosystem. Here are the key features:
Core Mechanics
- Energy System: Starts at 100% and gradually decays over 3 minutes, requiring player intervention to maintain the colony
- Interactive Control: Hold mouse/touch to refill energy and release to create attraction discs that draw insects
- Population Dynamics: Colony grows through reproduction when energy levels are sufficient
Advanced Behaviors
- Clustering Bonus: Insects that group together provide up to 3x faster reproduction rates, encouraging strategic disc placement
- Flocking AI: Insects exhibit realistic movement with separation, attraction to energy discs, and wandering behaviors
- Lifespan System: Individual insects age and fade away over 30-60 seconds, creating natural population turnover
Visual Design
- Cyberpunk Aesthetic: Glitch-effect title, neon colors, and space-age typography
- Animated Insects: Wing-flapping animation and physics-based movement
- Dynamic UI: Real-time display of energy levels, population count, and clustering multiplier
Game Balance
- Energy consumption for reproduction creates strategic resource management
- Maximum population cap prevents overwhelming performance
- Varying insect lifespans and behaviors add organic unpredictability
The game creates an engaging feedback loop where players must balance energy conservation with strategic disc placement to maintain and grow their insect colony through emergent clustering behaviors.