Mark Sachs (ksleet) wrote,
Mark Sachs

  • Mood:
  • Music:

You ask one if he want ice-cream, they both say yes.

I have been working on the Mac game engine; it's just mostly been low-level stuff relating to UI, so there hasn't been much to say about it. I figured that if I ever got any sort of space exploration RPG thingy running I'd want to have typical JRPG-style conversation boxes come up when you chat with people. So that of course required the ability to bring up a sprite with the person's portrait, and a dialog box with text in it. And that required the ability to place UI elements appropriately onscreen, something which was at that point barely hacked in for Neon Galaxy. I ended up pretty much writing a simple UI system, which could draw vector or sprite objects (including text), glue them to the sides or center of the screen, and animate their position, color, and so forth. It's mostly done now, but it doesn't really lend itself to anything flashy at the moment.

Though as part of this effort, I did finally get various issues relating to window size sorted out. I can now spawn the game window at any size I want and the 2D elements are appropriately scaled. This includes fullscreen, and WIDESCREEEEEEEN. And I must say, the planet rendering engine looks good in 1920x1080 fullscreen.

I'm especially pleased with how smooth and curvy the land-water boundary on the planet is, even when we're quite close to it. The texture defining if something is land or water is a simple two-color mask (black = land, white = water, or maybe the other way around, whatever) but in order to decide if a pixel is over the ocean I check if the color value is greater than 0.5, not if the color value is 1.0 as you might first think. Why? Because when the texture is filtered (that is, resized up or down by the graphics card) the land-water boundary gets blurred out. If you follow the 0.5 contour line on such a blurred image, it ends up being nice and curvy, not straight and blocky. So yeah, that's pretty good.

That said, I'm at a bit of a stopping point for the planet renderer since I don't have a good solid design for the game I want to make with it -- I do have some clever ideas for a space combat engine, but don't quite have a game said engine would slot into. So I'm thinking maybe it's time to swap back over to Neon Galaxy for a bit. Even though I'm not sure what to do next there, either... maybe it's time to work on the general game flow a bit, something I've been putting off for a while. It would be nice to be able to theoretically play through an entire level from start to finish, even if the level is minimally populated.
Tags: neon galaxy
  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 1 comment