in game controls will not work. controls work only on exterior template. Example: Jump left/right buttons move the entire game screen but nothing in-screen.
If this is occurring, please try clicking on the game frame an additional time.
You're capturing keyboard/mouse events in the right element
event.preventDefault() is used to stop default browser behavior
The game canvas has focus (use .focus() if needed)
You must be logged in to post a reply!