Sorry for the lapse in updates, I've been pretty busy working on FoT, and by the time I'm ready to write an update, I fall asleep[grin]
Console Pt. II
In my last entry I showed you guys my console system. The system you see in that entry wasn't actually doing anything, it merely let you type things into it, and displayed messages. Well, now it can actually interpret commands you give it, and then execute them. It's a pretty simple system, I have a function called "DissectString()" that splits up a string into components, based on where the commas are. For example, if I passed the string "AddGameObject,100,150" it would spit out three strings, "AddGameObject", "100", and "150". Once the command is dissected, it is analyzed piece by piece, to determine the correct course of action. I've been adding commands as I need them, but the most handy command by far is the "AddGameObject" command, which allows me to spawn anything in the game at the position of my choosing. Here's the new console (pretty much the same thing, but look, a Shotgun pickup at (100,100) wierd[wink])
Inventory
We want this game to have a simple inventory, where you can equip things and use items you've picked up, such as medkits. I coded up an inventory menu, and Mark has been slowly drawing the icons for all the items you can pick up. As you can see, we've also added a new weapon to the game, the SMG, but we'll talk about that later.... Right now, the items lack their descriptions (thats what the big box on top is for), but you can use items and equip weapons from it, so at least it works.
The SMG
The SMG is your starting weapon in FoT. It's automatic, and fires at a high rate, but the bullets are a little weak, and the gun is quite innaccurate. What makes it really cool is its alternate fire: When you hold the right mouse button down for a little while, a laser pointer pops up, and upon release of the button, an "aimed shot" is fired that does way more damage than the primary bullets. It's essentially a "charge shot", but instead of making the gun shoot a bigger bullet or something like that, we make the bullet much more accurate and powerful to simulate aiming for a weak point, such as the head of a zombie. Here's a screeny of the laser pointer in action....
Well, thats all I've got for now, but things are chugging along quite nicely, so check back soon! Peace Out!
I think I took it out because I wasn't using it at runtime, just to tweak the game. I wish I had some scripting; probably would've made the game more interesting.