Old project from ages ago. Space exploration using dynamic seeding of random numbers. Can visit 65535 space sectors half of which have planets. Can also board all (habitable) planets and explore procedurally generated terrain.

Disclaimer for the code: I wouldn't learn from it. If I remember correctly, the technique I used isn't very good. From memory anyway, I seed the RNG using a value "sector" which means planets and on planet terrain are generated by a distinct seed. This is actually not the best approach. I believe what I should have done is call rand() a different number of times for different sectors, but then that requires a lot of iteration for an embedded device. The combat and user interface are also hilariously bad, for example, selecting sector in the database to see if a sector is safe or has a habitable planet is almost impossible due to the speed in the emulator, whereas on actual hardware it is manageable.  

https://github.com/26F/spacemortality2


Leave a comment

Log in with itch.io to leave a comment.