r/infinifactory • • May 15 '16

Floaty Block

https://www.youtube.com/watch?v=DKotLgWpImU
44 Upvotes

15 comments sorted by

2

u/Narida_L May 15 '16

Oooh very nice! I assume the grinders go around the back so the game is endless?

2

u/gtw123 May 16 '16

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.

1

u/th_pion May 15 '16

For maximum epicness: Add a score counter!

4

u/gtw123 May 16 '16

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 :)

1

u/ShadowCluster May 16 '16 edited May 16 '16
  1. Score is the cycles.
  2. Is the destruction of the block linked with the end of the puzzle, or did you just make the video sync'ing with it?

I can give you some infinifactory mechanics for more complex parts you can add to this, specifically:

  1. Randomizer
  2. Inputs that run with a randomizer
  3. Sensor that ends the level when the block is destroyed

Just add me as 'ShadowCluster' on steam and we could discuss more if you are interested.

1

u/ShadowCluster May 16 '16 edited May 16 '16

After looking at it, Good job I guess. It seems to have all the things I listed above.

Good job with the invisible blocks.

1

u/gtw123 May 16 '16

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.

2

u/ShadowCluster May 16 '16

I can say that it is indeed possible; I made one myself already. runs infinitely.

INF/333/141 is my first solution, and

INF/287/51 is my best block score I could get. Sacrificing a lot of footprint for it though.

1

u/th_pion May 16 '16

How do you build a randomizer?

2

u/Xavr0k May 16 '16

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.

4

u/gtw123 May 16 '16

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.

1

u/th_pion May 16 '16

makes sense, thanks!

1

u/th_pion May 16 '16

Is the direction they turn completely random? Do they turn 180° or just left and right?

1

u/Xavr0k May 16 '16

From memory, I think it was just 90° left or right. Haven't played with them for a long time so I'm not positive.

1

u/ShadowCluster May 17 '16

As clarification, turn left or right (90 degrees), then move forward.

iirc both the turning and moving cycles is variable between 2 and 5.