Keyboard key sprite generator
In VALA we support keyboard/mouse and game controllers, and allow rebinding of controls.
That means that when we have text like "Press [X] to activate your shield", we need to swap out [x] for the right controller or keyboard button image based on their binding.
Controllers only have a few buttons so it isn't a problem to make the sprites, but keyboards have 110 bindable keys.
I know it is a really niche case, but maybe someone else will find this useful. I made a quick (read: crappy) little app that takes a text list of keys and generates a transparent PNG for each one using a small and medium key template you provide. You can select font size and stuff, and it'll also adjust the font size slightly for each key to fit in.
https://github.com/roguecode/Keyboard-Key-Sprite-Generator
That means that when we have text like "Press [X] to activate your shield", we need to swap out [x] for the right controller or keyboard button image based on their binding.
Controllers only have a few buttons so it isn't a problem to make the sprites, but keyboards have 110 bindable keys.
I know it is a really niche case, but maybe someone else will find this useful. I made a quick (read: crappy) little app that takes a text list of keys and generates a transparent PNG for each one using a small and medium key template you provide. You can select font size and stuff, and it'll also adjust the font size slightly for each key to fit in.
https://github.com/roguecode/Keyboard-Key-Sprite-Generator
Comments