Feature: Disable arrow keys with a helpful message while in game
vegerot opened this issue · 6 comments
In reference to thread here.
To parapharse that thread:
While playing the game we should
nmap <Left> <nop>
or even better
nmap <Up> :echo "Use `k` to move up!"<Cr>
We'd need to capture their current mapping of Up
and restore it after the game
Quick question. I assume I can just execute :nmap to determine if has been remapped already to something.
If I were to remap, I would have to unremap it right afterwords.
I could explore something like this too.
You could do that. You could either temporarily capture, overwrite, and restore their :nmap config. Or capture their input events and filter out arrow keys. I think the former is probably easier.
If we go with Lua as the primary language, we can listen to key presses which then we could penalize arrow pressers :)
But if we use Lua, then we won't be able to analyze v8 heap snapshots in order to optimize vim-be-good
...
rm -rf /my/life
Who knows how many objects we'll end up making!