Counterstrafe Game
Test your counterstrafing skill to get a high score!
Inspiration
In Valorant, many people will quickly learn you have to stand still in order to be accurate while shooting. In order to do this, instead of just letting go of their movement key, they will quickly press the opposite movement key, to make their character immediately stop, instead of slow down to stop. This will allow them to move again quickly, and be accurate each time they want to take a shot.
What it does
This app lets you test your skills at counterstrafing!
Upon pressing a strafe key (defined in the main menu), the app will track you as "holding down" the key, and will wait until you let go of this key, and then press the opposite strafe key. If this is pressed within the threshold time, it is counted as a success and the player is rewarded points. If the keys are pressed together, it is counted as a fail, if it is pressed too late, also counted as a fail.
How it was built
This app is built with Kotlin, with the use of IntelliJ IDEA both for creating and exporting the final game to a JAR.
Challenges
Detection for letting go of keys, repressing keys, etc used to be a lot worse, a lot more finicky, drop overlapped inputs. I refactored this code a few times to get it working correctly when a user presses their keys.
Accomplishments
Implemented an app from start to finish in Kotlin, as I have often used other languages in the past for web apps. Here, I was building a desktop app, so decided to use a language more suited for desktop development.
"GitHub Repo" link leads to JAR download for app, hosted on GitHub
Built With
- intellij-idea
- kotlin

Log in or sign up for Devpost to join the conversation.