A musical experiment
Mar. 27th, 2011 10:29 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Something that I'd been thinking of doing for a while:

The graphics (the good ones) are taken from Tyrian, but the main idea of this experiment is that the behaviour of the enemies and the level are generated from the music that's playing. I'd had this around as an experiment for a while and had abandoned it because I couldn't get consistent data out of a music file each time it was played, but I suddenly realized that I could do it by reading from the file itself, instead of relying on the current position of the music.
This Flash demonstration just uses one music file (and even then it's a bit of a cheat, as the data is pre-loaded instead of actually read here) but it's already quite fun to zoom around and watch the fireworks. It's going to be interesting to see if I can get appreciably different levels to come out of different songs.
Music shooter (yet another product of my lack of good name ideas)

The graphics (the good ones) are taken from Tyrian, but the main idea of this experiment is that the behaviour of the enemies and the level are generated from the music that's playing. I'd had this around as an experiment for a while and had abandoned it because I couldn't get consistent data out of a music file each time it was played, but I suddenly realized that I could do it by reading from the file itself, instead of relying on the current position of the music.
This Flash demonstration just uses one music file (and even then it's a bit of a cheat, as the data is pre-loaded instead of actually read here) but it's already quite fun to zoom around and watch the fireworks. It's going to be interesting to see if I can get appreciably different levels to come out of different songs.
Music shooter (yet another product of my lack of good name ideas)
no subject
Date: 2011-03-27 04:34 pm (UTC)Also, the laser is obviously the best weapon because it's the only one with which you can hold down the mouse button for continuous fire. What is this, Cosmic Gate? :)
no subject
Date: 2011-03-27 05:17 pm (UTC)I was thinking of Vib Ribbon when I made this (which seemed to have the habit of making really slow songs extraordinarily fast and difficult), but I remember what you mean - it's Audiosurf. Now I wonder if I could flavour the level data with things taken from the ID3 tags of the file or something...
And yes, I should probably recommend a reinforced left mouse button.
no subject
Date: 2011-03-27 05:19 pm (UTC)But... yes. :)
no subject
Date: 2011-03-30 04:50 pm (UTC)no subject
Date: 2011-03-27 06:05 pm (UTC)no subject
Date: 2011-03-27 06:24 pm (UTC)no subject
Date: 2011-03-27 06:30 pm (UTC)Though this is rapidly becoming something I should push off until existing projects are finished!
no subject
Date: 2011-03-27 06:33 pm (UTC)no subject
Date: 2011-03-30 09:45 am (UTC)However, on an accidental right mouse click the Flash menu appeared and wouldn't go away at all. I couldn't get it to vanish and all control was lost. I just watched my little spaceship blow up a few times before having to end Firefox.
no subject
Date: 2011-03-30 04:48 pm (UTC)