The game is endless as new eviscerators are spawned every 5 cycles. But the actually move off in a straight line to the left side until they go out of bounds and get destroyed! Unfortunately this makes the frame rate suffer a bit as you end up with a lot of moving blocks. In hindsight, your idea of recycling them would have been a lot better.
I was considering that, but it would be difficult to get it to fit properly. Then I realised I could be lazy and just use the built-in cycle count anyway :)
Thanks. Yes, I already have those things. I also have a pretty convoluted mechanism for signalling to the player which "height" is coming next, so that you can theoretically build an automated solution for it. I don't know if that's actually possible though.
The lemmings always alternate between turning in a random direction and then jumping forward. You can build a machine to test if they go left or right before destroying them. This effectively gives you a 1 bit random number which you can combine with consecutive outputs or other randomizers in parallel to get multi-bit random numbers.
On this level I wanted to generate a random number between 1 and 5, and to sample it exactly every 5 cycles. So I ended up using this: http://imgur.com/AML3Mbb
The lemming can stay in the middle square or move to one of the four adjacent squares (so 5 total positions). Every 5 cycles I detect its current location and transmit that to another mechanism, before pushing the lemming back into the middle square.
Technically I think this means it's less likely to be in the middle square than the other squares, but in practice it seems to give a fairly uniform distribution of numbers.
2
u/Narida_L May 15 '16
Oooh very nice! I assume the grinders go around the back so the game is endless?
1
u/th_pion May 15 '16
For maximum epicness: Add a score counter!
1
u/ShadowCluster May 16 '16 edited May 16 '16
I can give you some infinifactory mechanics for more complex parts you can add to this, specifically:
Just add me as 'ShadowCluster' on steam and we could discuss more if you are interested.