Game Design, Programming and running a one-man games business…

Alpha, Warping in and firing arcs

Ok lots to say.

Firstly, I’m declaring GSB is at a very early alpha, and I’m currently putting together a build for some people I know to take a look at. This isn’t an open beta or pre-order yet, that;’s a while off. The music isn’t even done yet, so be patient :D. This is quite a milestone tor each though.

Secondly, I decided against firing arcs. I thought about it all morning, typed up all the pros and cons. I can see the pros, but he cons are a combination of aesthetics, AI issues, and complexity. GSB is not meant to be as hardcore as Starfleet command, so I’m wary of overcomplicating it. Also, firing arcs would mean an order of magnitude more decisions for the Ai commanders of each ship. Also, it would mean that the ships were constantly banking from one angle to another to get shots in. I prefer the look of the Revenge of the Sith or Return of the jedi style battles, with big, almost stationary cruisers blasting away at each other. Feel free to change my mind though.

Thirdly, I added this sort of warp-effect intro thing to each battle. The camera pans across your fleet as they arrive on scene. Video below: (as you can see some battles have BIG fleets. Are you SURE you want more complexity per-ship? L:D)

Deployment Screen Tweaks

Ok, so here is the current (and close to final) layout of the fleet deployment screen (click to enlarge). The new thing that has gone in, and was a long time coming (apart from some UI tidyups, and better support for the range of possible screen resolutions), is individually highlighting weapon ranges.

You can see that I’ve moused-over one of the icons for this ships modules (Light Plasma Launcher), and the range of that weapon from the ship is shown as a bright white circle around it. The faded out circles represent the ranges of this ships other weapons, and by mousing over them, I can see which is which. This will make positioning ships better much easier, and will remind you what ships are suited to particular roles.

One thing that isn’t done is offsetting those ranges to take into account the modules placement on the ship. It will not make a big difference, but maybe it’s worth doing. For the big ships on small maps, it’s probably worth putting certain weapons at the front.

Taking Direct Control

I’ve had a lot of people saying they love the hands-off battle idea, and a sizeable minority expressing concern that this will get old fast. In addition, when playing the game, I’m realising that no pre-battle orders are ever going to be fine enough to prevent you feeling occasionally frustrated at your AI captains, so I’ve decided to give-in and add some element of mid-battle control.

Now this would normally break the play-by-email style challenge system, but in challenge games (where you are playing against another player’s downloaded fleet) direct-control is simply disabled, and the battle reverts to view-only.

I’m not going overboard in terms of making an entire RTS out of the game, but currently you can single select or drag-select some ships, and then right click an enemy ship, or a position on the map and they attack/move as instructed. Green overlaid ships are selected, the red one is the current target. You can issue orders whilst the game is paused, for extra fine control.

Most of the battles have enough ships that you will not play it like an RTS, but just use the direct control stuff to fine tune your general battle plan. Sometimes ships come under more intense fire than expected, and you might want them to beat a hasty retreat to engage auto-repair modules. Sometimes you spot that a specific enemy ship is kicking interstellar ass and you may want to concentrate your fire there.

I’ve also been improving the AI. Weapons that fire >4 times in 7 seconds at a target and have no effect, will automatically select a different target for a few seconds. This prevents the dilemma where you have a set of ships just facing each other and blasting away ad-finitum achieving nothing. The chances of hitting a shop have also been skewed so that big ships are easier to hit, meaning fighters and frigates should last longer into the battle than they currently do.

Trying to improve armor glow effect

Several people commented on the armor ‘glow’ effect to represent an armor hit, but not hull damage or a shield hit. Ideally the effect says “this hit the ship and got through shields, but it didn’t get any further’. my plan was for the ship to look like it ‘glowed’.
The problem was, that with the whole ship glowing, it looked a bit overdone, and non-specific. After a lot of fiddling, I can apply an expanding and fading sprite as a ‘decal’ to the ship (which is fiddly without assuming shader support, and involves some interesting multi-texturing code and so on…)
Here it is: ( i stupidly called it shield effect test. it’s armor effect. doh!)

Is this better? If not, what would work better?
Cheers!

Lightning!

I’ve been tweaking and fixing a few small things lately, sounds that do not play, some graphical problems, and some bugs caused by recently introduced new features (I managed to screw up the way shields worked when I added cod to make ‘stacked’ shields less effective.

In amongst this, the only true ‘new’ feature that has gone in is the alliance ‘lightning gun’. It’s basically just a beam laser, but drawn entirely differently. 10 minutes of reading photoshop tutorials got me up to speed with rendering lightning, and then a bunch of rendered strips of lightning later, I wrote code which works out how many ‘chunks fit in a beam, and stuck together a string of them so the ship looks like its electrocuting its enemies.

The code isn’t that simple, because you want the beam to zig zag everywherem, but hit its origin and target exactly, which is a bit fiddly. I also had it change which bits of lightning to use every 10th of a second so it looks like it flickers, and had to ensure that multiple beams from the same ship start at different points so you can’t tell the same texture pattern was being used.

Having said all this, the biggest effort was picking out a sound effect for it, which I’m still not happy with and am not confident is playing right. 30 minutes of previewing sounds of electrical static is a bit wearisome in 86 degrees in the indoors with an overheating PC by your legs.

All good fun I guess.