Pandaqi / In-the-Same-Boat

Jackbox-style game where you try to sail a ship together - discovering treasures and battling your friends.
2 stars 0 forks source link

Scale monster and AI levels based on player levels #20

Closed Pandaqi closed 5 years ago

Pandaqi commented 5 years ago

During the ship loop, we already track the average amount of resources. (Which we can move, actually, to the loop before that. It's cleaner.)

We can also track the average amount of ship instrument levels. There are 6 monsters levels and 6 instrument levels. As such, monsters will be equal to the average level of instruments, with a random chance of dipping below that, or going above that.

This way, if you encounter a monster, it will be close to your own level and will never be too hard or too easy.

(The same is true for AI ships, although there's a larger spread there, because there are peaceful ships.)

Pandaqi commented 5 years ago

No, we can't move the ship resource counting. It must be after the battling. It's fine this way.