Causality Violation


Continuing to work on Unsafe. The most interesting thing I've implemented lately is making it actually possible to travel between multiple star systems, which is quite exciting! This involved:

  • Fill out the largely placeholder "galaxy" class so it centralizes information about the identity of stars you can visit along with their names and locations, as well as tracking a targeted star.
  • Implement the nav computer display with two modes, one of which lets you target planets in this system, the other one of which lets you target stars. Also make the HUD display distances in a less terrible way so stars show up with proper unit values.
  • Centralize functionality for switching between solar systems/initializing the solar system, which was just hacked in before, so it uses the galaxy data properly and can remove an old system and drop in a new one.
  • Add new states to the main game loop for traversing out of the current system and into another, which currently just involves moving the player rapidly through solar system space. Some sort of hyperspace effect is on the table but doesn't exist yet.

A lot of the infrastructure backing this up is pretty hacky and spread across multiple classes, which I don't like, but I guess that's what you get when the project dates back as long as this one does. Hopefully I can consolidate some of this stuff in future. But in the meantime, this is a big back of the box feature which now works, and that's pretty cool.

Beyond that I've mainly just been fixing a bunch of longstanding bugs such as glitches with updating space dust and exhaust trails as well as some messy lighting transformations that have been gumming up the model classes for a very long time, but it feels better to have bits of mess like that sorted out. I kind'a feel like I've had enough of faster than light travel for now so next it might be appropriate to do some more gameplay elements. In particular it would be good to get the player's equipment (something which does not exist at all right now) sorted out before implementing more things you can actually do in the world.

NOTE: By saying what I will do next I have officially jinxed it, so it is in fact highly unlikely that's what I will do.

Leave a comment

Log in with itch.io to leave a comment.