Welcome to my blog containing sporadic personal ramblings, coding, electronics, D&D and anything else.>
I decided to add Deuterium as a resource in Trekwar, it can be collected from nebulas or by owning star systems that have gas giants in them. Ships also now need deuterium to move, and can run out of gas if you don’t plan your logistics.
Deuterium and maintenance has been added to the menu bar, and fuel to the temporary fleet box
I finally got around to implement the new ship system for the Trekwar game.
Ships are no longer static objects with fixed attributes (weapon, shields, armor, etc..).
All ships are no based on a specific hull, which has some base armor and crap, + X number of slots you can put equiptment in. Below is the starting ship of all factions in the game:
If you noticed that this is the design of a Maquis raider, give yourself a cookie!
I got lot of Starship components to add, and so far I’ve just added ‘Warp Core’, ‘Colonization module’, ‘armor’, ‘beam emitters’ (phasers) and ‘Shield emitters’.
One new thing I implemented today was ship speeds. Unlike in Civilizzation / Birth of the Federation, where units can only move 1 or 2 tiles each turn. Ships in Trekwar can have a speed of 1.0 (which lets it always move 1 tile each turn) or 0.7 like the colonization ship in the screenshot below:
The upper most ship is a scoutship with a speed of 1.0
The lower ship is a colonization ship with a speed of 0.7, that means when it starts moving it will generate 0.7 movement points.. this is not enough to move a full tile. The next turn it generates 0.7 more and then gets 1.4 movement points.. It can the move 1 tile, and has 0.4 movement points “to spare”.. On the third turn in this example it gets 1.1 movement points and can move again..
Ships with a speed below 1.0 will occationally “miss” a movement while moving a distance. Ships with speeds greater than 1.0 will occationally move 2 (or maybe even 3) tiles in a single turn.
Recently much of my spare time programming has gone to giving the Trekwar client a graphical overhaul.
Now I’ve managed to get most of what I broke, working again (Research and Starsystem Control), and I’ve added a glasspane that shows up and prevents the clicking of buttons (and thus creating a weird state of the client) while each tick is being processed by the server.
Currently the test galaxy is 100×100 tiles and takes about 0.5 seconds to load to cli
Unlike the previous version of the game, it is now possible to have many windows active on top of the actual game map. The system box (far left of the screen) has been changed to display more information, and next up is a complete redesign of the fleet box.
But before making the new fleet box and fleet management system, I’ll have to do some major rewrite of the internal ship system and logic, to support user created ship classes.
I’m looking forward to 8-10 hours of pure java and logic.. There is only so much Swing a man can take :)
Today I finished a program at work, and as a result I got two achievements:
I recently bought a cheap drawing tablet, the Bamboo one from Wacom. So far I’m pretty pleased with the tablet and the software that came with it.
Here are some crappy images I made with the pencil and paintbrush tool:
Hehe, I was just on my way to my first hour of motorcycle driving practice. I was driving my scooter, and I was driving reasonably slow, maybe around 20-25 km/h (although, in hindsight.. I should PERHAPS have driven even slower) :)
Anyway, as I’m about to exit a roundabout, the rear wheel looses it’s grip and the scooter starts sliding sideways. oh, did I mention it was raining? well, it was and that roundabout was unbelievably slippery.
So there I was, sliding sideways knowing all to well what was about to happen, and as the crablike movement of the scooter slowed it down, the rear tire finally got a hold of the road again. This of course made the scooter throw me off like the angry little plastic pony it is.
“Artist” rendering of the accident
So I flew trough the air about a meter or two, hit the road elbow first. Luckily the Road broke my fall, and seeing that I was wearing a full motorcycle dress, I could just get up and drive on.
I actually seem to recall a tiny voice inside my head going “Wheeeee!” in mid air,
The results of this interesting experience is:
I feel a bit soar on the right elbow, hip, and upper chest, but otherwise I’m fine.. Sitting in the couch watching Macgyver like I’m supposed to, Just 2 more episodes left and I can start on season 4 :)