WHEN I SHOULD HAVE been working on my Elevators/Maids game during the past week, I was instead working on this:
EDIT: Fixed a bug or two: RType20070329.bin
I was inspired partially by Manuel's post about the NES' lack of R-Type clones and partially by the idea of writing one for the 2K minigame competition.
I started with my Metroid code, since it conveniently had an asymmetrical playfield plus intelliflickered sprites.
I've pared it down from 32K to about 3K (and halfway given up on a 2K minigame) and instituted randomly generated terrain. The tricky part was, first of all, when placing any new blocks they can't close up a pathway!
The routine either: adds to the floor/ceiling, subtracts from the floor/ceiling, starts a new "island" in the center, adds to the top/bottom of the island, or subtracts from the top/bottom of the island.
It kinda works. One bug I've noticed is that sometimes it erases a block from the middle of a group of set blocks, like this:
EDIT: Fixed this bug, see above.
Other than that, it looks ok, though I think I need to tweak it so that there are fewer shorter islands.
I *think* that, at the shown scrolling speed it will randomly generate terrain for about 35 minutes before repeating. My planned scrolling speed is half that, so it should go for over an hour before repeating. That's the hope, anyway.
Oh yeah - here's the source, if anyone wants to take a look: Rtype20070329.zip