3 ms·
I recently made a really basic game engine for my dumb games[1] and discovered something interesting about this limitation: Ctrl does not count as a user intera
by Waterluvian 4y ago
I recently made a really basic game engine for my dumb games[1] and discovered something interesting about this limitation: Ctrl does not count as a user interaction. I’m guessing because it’s a modifier key.
I wanted my game to have good UX so I cleverly required inputs before any sound would be made. Usually via the game selection screen. But if Ctrl is your “action” key, it doesn’t actually allow the Audio API to work, so you’ll miss some sounds.
I get why this restriction is in place but sometimes it makes good faith attempts at good UX a bit complicated.
[1] https://arcade.pointless.click/?game=bankrun https://arcade.pointless.click/?game=bankrun
- dietrichepp 4y agoInteresting, I didn’t know that. I decided to standardize on “click to play”, and added some logic to try starting the audio engine again if it didn’t start the first time.
- adithyassekhar 4y agoSome games have Ctrl as their crouch key.
- ryapric 4y agoDo you know of any browser games that use Ctrl as the crouch key? That's the interface under discussion.
- loaph 4y agoI don't remember if you can crouch in it or not, but a game like https://warbrokers.io https://warbrokers.io could definitely have a crouch mechanic, and it would make sense for it to use ctrl.
- lhenk 4y agohttps://play-cs.com https://play-cs.com uses ctrl for crouching when you're in fullscreen mode