Skip to content

alexranaldi/GeneticInvaders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GeneticInvaders

My take on space Invaders in MATLAB.

Add files to the path, run "GeneticInvaders". Use arrow keys left and right to move, and the spacebar to fire. Each invader is created from a series of "Genes", with some random variation. Any invaders that get passed your ship pass their genes on to the successive generations of invaders! Genes include color (separate for red, green, blue), luminosity, density of the invader, separate X and Y speed, Y jitter, and boldness. Seems to work on MATLAB R2018a, but use OpenGL rendering to prevent flicker. Perhaps try "opengl software" prior to running the code.

alt text

About

Space Invaders, using genetic algorithms, in MATLAB

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages