Evolving Game Development with Genetic Algorithms
summary
Built a browser game called Egg Drop using React + Konva + xstate and asset tools (Logoist, TexturePacker, Howler.js). A genetic algorithm controls hens: genotype-to-phenotype mapping, roulette selection, per-gene crossover and mutation, fitness rewards for eggs laid or uncaught and penalties for zero laying. Population was initially ~10, causing poor evolution until changed to staggered bombing runs to enlarge population. Over 16 generations (one player) hen speed and laying rates trend up and player catch rate generally trends down but results are noisy.
AI-written summary Β· about
chapters (12)
- 0:00Introduction and background
- 7:51Inspiration from Malaga museum
- 10:30Introducing the egg drop game
- 11:33Building the game with React and Konva
- 16:07State machines in game development
- 18:35Creating game graphics and sprites
- 23:50Fonts and loading states
- 24:55Adding sound effects
- 25:38Integrating genetic algorithms
- 30:36Gameplay demonstration
- 31:40Analyzing GA performance data
- 32:02Summary and final thoughts
