Tuesday, April 28, 2009

Auto-generated in game music

Today I had a thought about something quite interesting leading up to our game competition. Since none of us are music experts and all music loops are quite short and designed to be connected to each other I'm proposing a very interesting change to our game music engine.

Our original music engine was monolithic as in it only played one massive track.


< Level >
[Songfile]


We could in simple terms switch to a basic shuffle system


< Level >
[songfile1][songfile2][songfile3][songfile4][songfile5]


But then I thought of a much better idea which I hope to be able to be able to implement today or tomorrow. Each song data will consist of 2 parts the track itself and a linked list reference to another part. Music then becomes a sort of directed graph with cycles. Edges then can be taken randomly

No comments:

Hobbies

I need new hobbies. Two years into COVID-19 my hobby became everything COVID related everything from keeping up with the latest restriction...