Skip to content

About

Space shooter game using a genetic algorithm for enemy AI

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

76 Commits

Folders and files

Repository files navigation

A space shooter video game built in Unity, which uses evolutionary algorithms as a mechanic for increasing difficulty over successive waves.

How It Works

Enemy ship AI is defined by a genome made up of different properties (e.g. speed, ability to evade, firing speed).

When a wave is completed, the success of each enemy is evaluated based on their accuracy, whether they survived the wave, whether the landed any shots, etc.

The next wave of enemies is generated by producing offspring of the best performing enemies of the previous wave, combining their traits and then applying random mutations in order to provide a new set of properties.

Sometimes, mutations might make little or no difference. Other times, they may make the enemy easier to deal with. Sometimes however, a mutation will give the enemy an advantage which results in them performing better than their predecessors. In this case, the traits that made it perform sowell may live on in its offspring when the next wave is generated.

Download

Give it a try here!

About

Space shooter game using a genetic algorithm for enemy AI

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages