Advertisement

Combat command detection...

Started by August 29, 1999 05:09 PM
0 comments, last by Zero1 25 years, 3 months ago
Hello, there! I was wondering whether anyone knew a good method for detecting streetfighter style commands than this simple method I dreamed up:

Utilise a pair of buffers to accept input :

1- A keystroke buffer

2- A complete command buffer


the keystroke buffer accepts input as is from the keyboard..(or wherever) but also records timing and idle periods. by repeatedly scanning this buffer and checking for recognisable patterns (such as the infamous quarter circle), a seperate routine will then insert commands into the complete command buffer, which the actual engine sees.

I've implemented a small test version of it in QBASIC and it seems to handle twitch response rather well. Does anyone have any comments, suggestions, or better methods?


This is exactly what you want to do. From there is just takes a lot of tweaking and testing to make sure you can capture all your responses and not give the user the leeway needed to reasonably make them.

-Geoff

This topic is closed to new replies.

Advertisement