So I got the file generation and file parsing working! Woot!
There is now an asteroid belt forming a ring 750 units out from the origin point (0,0,0). I also have a program that will regenerate the location file if I need. The good thing is that now they are always in consistent locations, and it is repeatable. If we were to tie in networking for multi-players right now, I could create the same environment for both players. Also, since I maintain an index of pointers to all asteroids, if one gets destroyed, I can pass the index number back to the server with a "destroy" code, and that index then gets passed to all clients, with the command to run the "destroy" animation, and then stop drawing that unit until it respawns.
Good times. I have updated the zip file with a program called AsteroidBelt. Run it and let me know what you think. According to my last post, it is time to do some software engineering work to layout the modules and keep the code efficient. May be a day or two before anything interesting happens.
Thanks for looking!
Sunday, April 19, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment