Wednesday, March 7, 2012

Wrap around and its problems

The original Moonbase Commander had a gameplay feature where an object that left the map on one side would appear on the other side, still traveling in the same direction.  I wanted to recreate this in MoonKrieg, as I knew how important the mechanic was in MBC.

The problem is that Unity doesn't have any support for this mechanic, so I had to hack it in myself.  My solution works, but it has spawned some interesting problems.  Like bombs exploding on the bottom edge of the map dealing damage to a building on the top edge.

Last night I finally got the framework set up to deal with this problem, and got the anti-air missiles working with it.  So, that's good.