Tagged Questions
0
votes
0answers
45 views
Game not checking for keyboard input?
I have tried to explain as much as I can with commented code also.
Working example: http://www.taffatech.com/Source.js -Code is organised by commenting
html game: ...
-1
votes
1answer
97 views
View port for my canvas game
I am developing a canvas game, and im struggling to get my head around how i can make a view port so when the character moves the world moves with it.
Unlike traditional 2d maps built with arrays i ...
2
votes
2answers
234 views
Receiving keyboard events on a canvas in Javascript
I need to receive keyboard events in a canvas element. Click events are received but key presses aren't.
Here is my code which doesn't handle key events:
var canvasElm = $('canvas');
...