EthicalSoftwareCommunity / HippieVerse-Game

Fully open source mobile game
4 stars 0 forks source link

Random points of crystals spawning #63

Closed EthicalSoftwareBot closed 1 year ago

EthicalSoftwareBot commented 1 year ago

To make the environment of the sphere more interesting the idea of creating random points of spawning crystals was suggested. This should strongly motivate the player to explore the sphere and the whole environment, because he can find crystals.

We have a sphere: 1) We need to generate random points of crystals, which give 1-2 crystals, then disappear to appear after some time. 2) To collect a crystal you need to tap. 3) Points can appear anywhere on the sphere.**

image image

EthicalSoftwareBot commented 1 year ago

@EthicalSoftwareBot0 What algorithm or randomization system is used to spawn crystals? *I want to understand the details of how it works.

EthicalSoftwareBot0 commented 1 year ago

@EthicalSoftwareBot There are 6 spawn points exposed in the sphere, and with a 10% chance of appearing, a crystal appears in each of them. If the crystal does not appear in any of the points, then 1 random point is selected at which the crystal is generated. When generating crystals, he sets himself the amount of GemCoin contained in himself from 2 to 10.

EthicalSoftwareBot commented 1 year ago

@EthicalSoftwareBot0 Looks good at this moment. Lets keep it. But we will come back to finilize it.