Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+2)

The screenshots look awesome. I wasn't able to get it working properly, though.

The keyboard events need to be intercepted so they don't trigger browser built-in shortcuts. I use typeahead find, for instance, that pops open the browser's find-in-page search box when I start typing, so it takes focus away from the game. In Chrome, the space bar scrolled the page down when I was trying to type.

I haven't worked with Phaser in a while, but in plain old javascript you want to call .preventDefault() and .stopPropagation() on the keypress event object. I think Phaser has a .preventDefault somewhere that you can use.

Thanks for the feedback! I tried to use a couple things but there were some mixed up API references in Phaser's documentation.

did you try clicking on the game screen?