Semi Random Generation - Nythrial Fishing Devlog 1


Semi Random Generation - Nythrial Fishing Devlog 1


Nythrial Fishing will feature a form of random generation that I am referring to as semi-random generation. When the player moves their boat to a point on the lake and begins fishing a semi random generation will take place. This generation is split into two categories one for decorations at the bottom of the waters such as plants, rocks, and lost loot. The other category is for fish, critters, and monsters, aka any mobile mobs.


At the bottom of the lake along the sandy floor a collection of points is created. A foreach statement runs through these points and randomly decides if they should remain barren or if a random "decoration" should be created. Various things could spawn in these locations, plants, rocks, treasures, stationary creatures, and more could generate. Currently there are 4 plants and 4 rocks that can generate, with much more to come.


Depending on the location and biome there are lists of fish / creatures that can spawn along with the decor. They are separated into several categories, these control how common it is for the creatures contained to spawn, how many to spawn, and where to spawn them on the map. Currently there are 4 categories of fish/creatures that can spawn, common, uncommon, rare, and bottom dweller. A minimum and maximum amount of fish are specified, a random number is chosen between them. Each fish spawn is assigned a common, uncommon, bottom dweller, or rare spawn. After being assigned a category the fish spawn is assigned a random fish from the related list and spawned at a random location on the screen.

Leave a comment

Log in with itch.io to leave a comment.