Oops! Quick page fix.
Lily Lander C64 » Devlog
You’d think after all the other games I’ve been testing where I have problems with keyboard entry in the browser that I wouldn’t make the same mistake. Pressing the spacebar in the emulator was causing the page to scroll on my gamepage, so I added a quick fix. I’ll share it here if any other devs encounter the same thing when embedding their game:
I added this in a script block in the page to disable the scrollbar if the emulator is not selected:
window.onkeydown = function(e) {
if (e.keyCode == 32 && e.target == document.body) {
e.preventDefault();
}
};
Drop in the keycodes you need for your game, or the ones you’re having problems with. It should really only be a problem with the arrow keys and the spacebar, though (I think).
Files
Lily Lander Web Play in browser
Dec 06, 2019
Get Lily Lander C64
Download NowName your own price
Lily Lander C64
A one-button game of jump timing for the Commodore 64
Status | Released |
Author | turtlepanda.games |
Genre | Action |
Tags | Commodore 64, Endless, Frogs, jumping, one-button, Relaxing, Retro, Score Attack, Singleplayer |
Accessibility | One button |
More posts
- C64 Cross-AssemblyDec 06, 2019
- Lily Lander now playable in browser!Dec 06, 2019
- Reminder, Lily Lander is OPEN SOURCE!Dec 03, 2019
- No such thing as bad pressDec 02, 2019
- Someone CRACKED our free game!Dec 02, 2019
- Lily Lander v1.01 is out, and free!Dec 02, 2019
Leave a comment
Log in with itch.io to leave a comment.