effect ideas - rowr111/cubegarden GitHub Wiki
special modes:
- twister
- whack-a-mole
- so you just have each cube pick a random number (say in 1-25), if it happens to be 4, light up
- if it gets whacked, it transmits a pulse that tells the rest of the cubes to re-roll
- you'll get an average of two cubes lighting per whack or something like that
- you can then have each cube pick a random number of milliseconds and then if it's lit transmit a pulse saying it's lit
- if nobody hears anything after say 200 milliseconds, everyone rerolls and listens again
- you rely on the randomness to avoid collisions of radio transmissions
limited time effects:
- explosion effect (all go from dim to super bright over a couple seconds, then sparkle back to dim)
implementation ideas
- maybe A sends perm effect, B sends as temp effect
other ideas:
-
special patterns that are only accessible depending on the number of cubes
- can transmit serial number so that cubes know how many there are
-
easter egg: if someone smacks a cube ten times in a row quickly, the cube transmits a command to its neighbors to switch to the whackamole effect for the next two minutes
- now all of a sudden you can summon whackamole and play it, and then when you leave, a couple minutes later the thing resets to the default effect