• entries
    707
  • comments
    1173
  • views
    432949

Untitled

Sign in to follow this  
Programmer16

77 views

There are way too many keys for this game; here's a list:

CycleItemBackward
CycleItemForward
CycleWeaponBackward
CycleWeaponForward
FireWeapon
MoveBackward
MoveForward
MoveLeft
MoveRight
Strafe
UseItem


As you might notice, Strafe is on the list. I got eight direction movement completely finished (as well as bullets that fire diagonally.) I also got strafing finished and it works really well. It's just going to be hard to find a decent button configuration. I really should look into XInput; gamepads fit this game so well.

I love generalizing code. It just makes my day when I take code that I was using over here, generalize it, and now I can use it anywhere.

I also love making things more data-driven. Before today I had a function that loaded current key map settings from the game.cfg file and then set each key map. Problem was that all the key map names were hardcoded in and I had to add/remove/change code when I add/removed/changed button names. So, I took advantage of my ConfigClass class and now I just run through the vector of stored values and use the names that have already been loaded.

And, as you all probably guessed, the other day as soon as I clicked "Make Modification" I went and changed the BasePickup class name to Event (for some odd reason, whenever I put "I'll probably/might do that later" I do that thing first.)

Now onto map-entity collision detection. You would have thought this would be the first thing I would have done lol.
Sign in to follow this  


4 Comments


Recommended Comments

Fantastic progress, P16! You've been updating practically daily, and have been taking Invasion forward with frightening speed. I'd toss "get a day-job!" at you, but I know first-hand how great it feels to have the time to code-blitz like you've been doing thus far, like my blitz last year with Skirmish. Looking forward to the next entry! [smile]

Share this comment


Link to comment
Quote:
Original post by HopeDagger
Fantastic progress, P16! You've been updating practically daily, and have been taking Invasion forward with frightening speed. I'd toss "get a day-job!" at you, but I know first-hand how great it feels to have the time to code-blitz like you've been doing thus far, like my blitz last year with Skirmish. Looking forward to the next entry! [smile]


Thanks HopeDagger! I've been trying to update as often as I can because, not only does it let everybody know what's going on with it, it also helps me keep track of what went wrong and what went right.

However, I do have a day job lol, just not a full 40 hours (normally I work around 30 hours a week. I have worked over 40, just not normally.)

Thanks again!

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now