- Creates 4 cubes and gives it random x and y speed
- If all the cubes die it finds the cube with the most distance
- If a cube reaches the end of the screen then it will get that cube
- With the speed data from the best cube, we set the speed of 4 new cubes to the one of the best cube with a small mutation (It adds a number between -1 and 1 to each speed variable)
- repeats until no cubes die
- Pixi.js for rendering
- Vite for bundling
- Yeah thats it. That's really it!
- OwO
- With node.js and vite installed go into the directory
- Type
npx vite
or justvite
- click on the link it gives you
- Waste 20 minutes of your life watching white squares fight to the death