Dressing up a Snake blob simulation. 'Bake a snake'

Started by Pakz, February 16, 2024, 10:20:35

Previous topic - Next topic

Pakz

I let Google Gemini create me a version of Snake. I was meaning it to let it make a map generator. But it made me a simulation of a kind of worms squirling on the screen scenario.
I decided to dress up the blobs with procedural gfx. Adding shadow and various strategically placed transparent ovals. This in the drawsnake() function.
The result at this point is a kind of blob like creature that moves in a fluid like motion.

With just drawing the graphics on top of something like this. I think any kind of creature could be made. I had not modified any behavior of the snakes.

The video shows a bit of the progress. The repo is here (javascript in the ai scenario folder) :

https://github.com/Pakz001/html5examples