Douglas Triggs (doubt72) wrote,
Douglas Triggs

Game Blog (#5) Or: Drilling Down to Planetary Systems

Since our last episode:

- Added a background galaxy to the galaxy display. It actually took quite a bit more work than you'd think; I had to figure out how to draw parts of the stars transparently, and part opaque, which required figuring out the Cocoa drawing methods and making additional masks and such of the star images. But... I did manage to get the effect I was looking for, with the galaxy fading out as you zoom in, and more prominent zoomed all the way out. I also changed the overall galaxy shape and creation process to match.

- Did some optimization to speed up scrolling and zooming, i.e., fixed off-screen rendering (i.e., so it doesn't happen) and added a bunch of smaller versions of all the images so it can draw things faster when zoomed out -- I might do a little more work there, it's responsive, but it's still not nearly smooth enough to make me happy. Instead of enforcing scrolling so you can't go off the map, I let you do whatever you want, so added a center button if you managed to get lost off the edge, or just want to zoom out more quickly so you can go somewhere else.

- Changed the look of the screens so that they're more uniform (mainly the tech screen). I also changed the buttons so they look better on black (which ended up giving them kind of a "Star Trek" feel which I like). I also integrated debug into the existing screens and removed the dedicated debug screens (basically, you can toggle on debug to make everything visible instead of just what would normally be visible).

- Added a system screen that shows, well, the planetary systems. Added more controls to handle that, as well as planetary information with colors based on habitability. I also upped the minimum size a bit so that was more readable.

- Added a startup screen, with options to set the galaxy size and research rates.

- Went through all the existing code and refactored out a huge number of NSNumbers I don't really need (replacing them with floats and ints).

So... Some screen shots. This time, full-sized screens (full-sized on my huge screen, I mean), starting with the galaxy display as it was a few days ago:

[Click through for full-sized (also below).]

And the system display as of a couple of hours ago (still fiddling with it right now, none of this stands still):

...And onward we go...

[ Crossposted from ]

  • New House

    So, uh, we have a new house. And I took pictures with the SLR for the first time in, what, two years? Have an HDR: (Click through the image for…

  • So Quiet...

    So, haven't posted here in a long, long time. Mostly because the game stuff has moved elsewhere ( here for one), and haven't done any photography…

  • That Thing About That One thing

    And it's done... It's actually been out for a couple days, but the last couple of evenings have been hectic; Tuesday there was a Muse concert and…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded