Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


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