Ferby's Blog
These are just some random ramblings, because I have nothing better to do with my time.

Thursday, February 28, 2008

Vendor Selling

By John, Annie, Lucy and the Woof-Woofs at 9:47 PM

I set up selling to vendors. Now vendors will buy your items and have them in their inventory. I plan on saving this information out so that the player can always buy their items back if they want to. I am setting up a buy price and a sell price for each item. I plan on making items cost more for the player to buy than to sell.

I also set up a couple of constant class that will have static strings for the menus and focus components. This way if I decide to change something I do it in one class instead of the dozen or so classes that access that field.

 
Category:

Saturday, February 23, 2008

Buying from Vendors

By John, Annie, Lucy and the Woof-Woofs at 8:16 PM

Tonight I put in most of the code for buying from vendors. I still need to do some testing and put in the code to sell to vendors.

 
Category:

Monday, February 18, 2008

Vista Trials

By John, Annie, Lucy and the Woof-Woofs at 11:59 AM

I've decided to go ahead and reinstall Vista onto my laptop. Since I don't have any vista install DVDs I'll have to use my recovery disks that HP sent me. Which means I'll have to go through and remove all the bloatware that HP thinks I need. This will of course mean that I need to reinstall everything that I had on there. First thing though is saving all my data that I have on XP to my jump drive first.

I can't seem to get the sound working in XP and since I can't even get the ethernet working in Linux I'm left with little choices. Basically I just want to be able to use everything my laptop has. I'm tired to trying to fight with it to get things to run. Plus this will give me a chance to try out Vista and a new platform to test out projects on.

 

Design Patterns

By John, Annie, Lucy and the Woof-Woofs at 11:58 AM

I've been reading some design pattern posts on gd.net lately and I have come to the conclusion that some of my design choices aren't the greatest. I want to refactor my code to fix these design flaws, but I'm worried that I'll just end up burning myself out and I won't want to finish the game. There are a few smaller things I can fix, but I think I'll have to leave the major ones in for now. Once I have fixed these smaller ones I'll then see if fixing the larger issues is a reasonable choice.

I think the first thing I'm going to work on is removing the FocusComponents. Instead I'll create an interface with the methods that are supposed to be called and then have each menu implement that interface. This is really what I should have done in the first place instead of create a new object to handle the input for each menu. This is mainly be a matter of copy/paste the code in the focus component object into the menu object. It will also make it easier to deal with writing the menus. This way I won't have to jump back and forth between two different classes in order to create or debug a menu.

 
Category: