Still trying to work out the trading system. This latest release got rid of some major bugs and I've refactored a portion of the code that deals with npc logic. The game is stable at least, even though the player doesn't have many options still.
near 1500 loc.
If you're able to download the source code and compile/run the game, I'd love a brief comment how it went. I'm new to this open source project stuff and not sure I have it set up in the best way. Were you able to find the compile instructions easily? Did it work? Thanks in advance!
Added a JPanel grid to display relative value of each product at each station. This will be the player's main tool in deciding what product to buy and where to sell it.
Not sure if this will be useful, but I wrote a small program that counts java source file LOC, not including blank lines or lines with only one or two characters, like closing braces.
ver 1.2 is at 1290 LOC.
Ver 1.2
I've added some Swing components to the GUI to provide more player interaction and to give feedback the user will need to play the game (such as status of the ship: in transit to target, within range of target, etc). Not much functionality has been put in place yet, just the components for now.
I've also added two new classes, Market and Product, which puts in place the trading/economic system - at least the start of it. This market system will react to goods being exchanged between stations. To test this, I still need to code in non-player ships to pick up and trade goods, as well as add to the GUI a way to view the current state of the market.
Added the ability for the player to control his/her own ship. By clicking on another ship or station, the player's autopilot kicks in and will take control of piloting the ship until it reaches it's target. The autopilot destination is updated each frame of animation so a moving target can be reached.