DescriptionA bizarre limerick generator! Results will often make no sense! But fun to see what it comes up with...Instructions- Run LIMERICK
- Press A when prompted
That's it!NotesThe program first assembles the limerick into one long string, using a couple escape characters I defined for newline and end. It reads data sets for each part of the limerick, first getting the total number of entries in each set and then choosing one at random. For the rhyming parts, it uses the same entry number in each section so that they match up. It also pushes syllable counts for every word into an array as it reads them from data, so that delays can be timed properly to match up with the song.
Then it begins playback of the song, timing the printing of each word to match up with the beat (2 syllable words stay up for 2 beats etc.). An index is used as it reads through the limerick string, breaking out each word when it encounters a space, printing it, and generating some particles underneath it.
The particle system is kind of shoddy and hard-coded to do specific things, it's mostly just thrown together to make it work for the purposes of this program.