PraxTube / lost-oppai

MIT License
5 stars 0 forks source link

bug: Hotspots not guaranteed to be decently far away from spawn point #12

Closed PraxTube closed 3 months ago

PraxTube commented 3 months ago

For some reason it happens fairly easily that the hotspots aren't distanced far from the origin (which they should, I think they should be something like 70 arbitrary units away, but in some cases they are like 5 away). Take a look at any commits around 5a7ac97cd04fbc60288382b6cfa7f9da67e06de2, the seed 69 for example will give you Isabelle even closer than the keyboard hints! Also, there might be something wrong with the keyboard thints...

PraxTube commented 3 months ago

Perhaps write some tests for this, you could compute the points and check if they are actually working within the constrains they are supposed to work. It might be that something there is broken, this could also explain the nonworking flora (though I highly doubt that, there is probably a bunch more stuff broken with the varying radii poisson disk sampling).

Also: You could just spawn the NPCs at the furthest away hotspots. That way you might also be able to spawn them more evenly (though perhaps not).