Well, the radar is in. Dealing with the necessary projection matrix transformation to make it display right was a bit of a pain, really. The actual transformation is basically only three lines of code, and they don’t even look that impressive, but it took a bit of thought to get there.
Anyway, it’s all done by modifying the projection matrix, so you can then just draw all the ships within a certain range of the player again, only with a different texture. As far as the display function is concerned, it’s displaying the ship again at the same location as when it draws it onto the main display, it’s just the different projection matrix that makes all the magic happen and sticks it all in the radar bubble.
I don’t draw the wall in the radar because, at some point, the walls are going to go away.
So, next up: Planets, I guess. I’ve got gravity code in there, but it’s all untested, since nothing in the game has gravity yet.
-
Recent Posts
Recent Comments
- Alex on Planet data: More flexibility
- Richard on Planet data: More flexibility
Archives
Categories
Meta