WASD with Mouse
Since my last post, I’ve been working on making the keys work using the WASD keys and the mouse. I wasn’t too sure how this would work out, and honestly, I’ve never done these types of controls in a game, much less in a windowed game. Other than a bout of rea life interruption, the new code was not terribly hard to add. The video attached shows more…
The (silent) video below shows the new WASD keys and mouse control in action. Actually, I recorded this before making A and D side step — that’s working now.
You’ll notice it is now very easy to face the direction you want or look up and down. Although I’m tempted to allow the engine to look further up and down, the current range seems (mostly) sufficient for now.
Spawn of Lysle
My son has become an alpha tester (whether he knows it or not). Ted is a big fan of Minecraft and Portal 2 and is already yearning for some type of editor and network play, so he’ll be pushing me just as much as most fans of the game to keep improving it. For now, he’s my personal slave for product testing. Its great when fathers and sons can bond.
And going forward, I’m still planning on putting the controls for modifying key layout directly in the game. As I mess with the game controls more, I’m tempted to make the E key be a ‘Use’ button and leave the space as jump. The only problem is we currently use space to open doors and jump is currently X. But I’m thinking of combining the two with some type of prompt like that done in many games (Darksiders comes to mind first). So, if a grabbable item is in the middle of the screen, pressing E should put that item into inventory (similar to ALT-clicking an item) and if it’s a door or switch, it is activated. Because secret doors should remain secret, no prompt would be used. A quick E key allows you stay in mouse/WASD mode before having to bring up the cursor for UI actions.
So, if you have a cursor over a grabbable item, what should I do to notify the player it is to be grabbed? Floating text, in my opinion can be distracting, so I’m thinking of just making the item highlighted in a shade of white or yellow (call it ‘glow’). Opinions?