Jump to content

  • Log In with Google      Sign In   
  • Create Account


Paulus_newbieus

Member Since 04 Aug 2002
Offline Last Active Nov 18 2012 04:11 PM
-----

#4876462 Seeding a pseudo-randomly generated game map

Posted by Paulus_newbieus on 24 October 2011 - 02:35 PM

Thanks for suggestions guys.

Int=(int)short << 16 & short2

???


So short is the x coord and short2 is the y. You are bit shifting the x by 16 and adding it to the y, to make it a unique single value? This is so the point {1;2} will not result in the same seed as {2;1}, am I right?

And alvaro, you are doing something similar.






PARTNERS