I've just been fiddling with the Geoscape, which appears once you select a difficulty. This is what I have so far. (It loads the world map from a text file when the game is started) and yes, that is a scrollable window, using the w-a-s-d keys. The colors are off for some reason, but I'll have to figure that out later. Also, I'll need to streamline things because the scrolling isn't as smooth as I'd like it to be.
Tuesday, October 14, 2008
Geoscape
I've just been fiddling with the Geoscape, which appears once you select a difficulty. This is what I have so far. (It loads the world map from a text file when the game is started) and yes, that is a scrollable window, using the w-a-s-d keys. The colors are off for some reason, but I'll have to figure that out later. Also, I'll need to streamline things because the scrolling isn't as smooth as I'd like it to be.
Monday, October 13, 2008
I guess I could start with the beginnig
So, I've been cobbling things together, building stuff, writing LOTS of method stumps and stuff. I'm slowly plodding through, trying to implement things... allow myself to implement things in the future, etc. When the code is executed, this first window appears first. (It'll likely follow a nifty ASCII graphic image in the future)
Selecting "New game" causes the next image to appear, and from there, a WorldManager object is created with the proper difficulty level.
I find that as I do things, I write code in one method until I have a chunk of it that seems to go beyond what that method was meant to do, so I cut it out and put it in its own method. I don't know if this is the normal way of doing things; I've never programmed anything this large before.
I still have all of the tactical code that I wrote before, (only a fraction of what I'll eventually have) but it's just floating around in unacessable methods. Next I've got to build the 'geoscape' setup and get some of its functionality working. This is quite good fun, and once again, I should be doing Calculus 2.
Labels:
calc 2,
difficuly level,
implementation,
KeyListener,
organization
Friday, October 10, 2008
Multiple windows goodness, less cumbersome data structures!
Monday, October 6, 2008
Just a little further
I've got an ad-hoc setup right now that allows the display manager to access the character and information representing the color scheme. I might change it, but I'll have to think about which things I want in which places. Mostly, I just wanted to see if it could work.
Beginning of the redesign
After doing more thought and planning (of which I still need to do much more) I realized that I didn't have any way to easily change the color of the characters I was printing to the screen. I just started to rewrite my display manager class and I have a working proof-of-concept for this. each aspect of a world map/etc will be a 2 dimensional(or three dimensional once I implement different layers/levels) array that will store an object in each array index that will have two things: a character (to be displayed) and a short integer that will be plugged into an array which holds SimpleAttributeSets. I'm sure that this isn't the best way to do this, but it works. I'll leave it alone for now. I'm not sure if I want to have the array with characters and style attributes completely separate from the world array (which would hold linkedList objects to show which things are in a specific square), or if these would be one-and-the-same... and there would just be a public method in the world class that the display class can access (which will return an object with the character and style data)
Saturday, October 4, 2008
Kneeling, changing the look direction
Well, I have implementing the toggling of standing and kneeling. Also, when you move a direction, you also end up facing that direction once the move has completed. (and you have the option of just changing the unit's look-direction without first moving)
But... I don't think I'll add any more features until I finish a reorganizing of my data structures and stuff... It's getting cumbersome quite quickly. To the flowcharts!!!
But... I don't think I'll add any more features until I finish a reorganizing of my data structures and stuff... It's getting cumbersome quite quickly. To the flowcharts!!!
Wednesday, October 1, 2008
Yay for KeyEvents!
Subscribe to:
Posts (Atom)