Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

I would suggest adding something to control your keyboard movements. Trying to use arrow keys results in the screen sliding up and down (You have to go into full screen mode to play this).  Since you are using an eventListener for the keys, you may want to include this in your event line (And substitute 'e' for whatever your variable is):

if(e.keyCode==32||e.keyCode==38||keyCode==40){e.preventDefault()}

Otherwise, I like the challenge of having to control both sides of the board at the same time. :D

Yeah, thanks for the advice, I will try fixing it

I just fixed it, thank you very much ❤️

Excellent.  Glad to hear! Those numbers are for the up key, down key and spacebar (spacebar can cause your webpage to scroll down).

I didn't modify the spacebar because you don't need to press it, but you can press it by accident, so maybe I should add that...

What I gave you prevents what the spacebar would 'normally' do, if that helps.  You can still use it for your game, of course. :)