cdeevfrr / Photon

A video game
GNU General Public License v3.0
0 stars 0 forks source link

Mod math in the game? #29

Open cdeevfrr opened 2 years ago

cdeevfrr commented 2 years ago

There should be some kind of larger object made of lots of smaller particles.

Maybe one object takes 8 points and another takes 17, and then cancel out. And there's some value to isolating just 1 point of the 8 object. So you have to figure out how many distance 8 objects you have to combine with how many distance 17 objects until you have 1 point left.

(In this case, mod 17, 8 -> -1 -> 7 -> -2 -> 6 -> -3 -> 5 -> -4 -> 4 -> -5 -> 3 -> -6 -> 2 -> -> 1. So lots of 8s and half as many 17s.)

Could do this with any prime number p and (p-1)/2, requires p-1/2 * 2 steps to get to 1.

This could play VERY well with this physics world. Maybe the setup is to make all the objects adjacent, then they destroy each other when you flip a switch. And you want to end up with just 1 point left somehow. Making it possible to create (or find) objects of a certain size will quickly make the math necessary.

cdeevfrr commented 2 years ago

A possible discovery path for players:

1) Watch two mobile objects collide & do the cancellation 2) Small objects (a 2 and a 1?) collide and make a thing you really want 3) small objects are apart. You have to take some action to make them adjacent to get what you want 4) you have to combine 2 objects of one type and 1 object of another type to get what you want 5) Big objects like the above example 6) Multiple cases of objects like the above example (ex, maybe there's 4 object types. You combine 2 of them into a particular number, and then you combine the other 2 into a different number, and those numbers have to collide into the final goal number) 7) Some way to "save" progress - keep the 1 point? Copy paste structures? Something like that. Automate it.