Hey guys. I've got a little space game here:
All the info on the stars is saved to WebStorage when generated, then loaded back from WebStorage. However, when generating stars, I want to check that there aren't too many occupying one spot - i.e. that no stars are, say, closer than 1000px. I can't really think of any way to do this. Any thoughts?