Im looking into making a game with HTML5 canvas. Does anyone know any good sites or tutorials on how to make a player move around the screen with the arrow keys? I cant seem to find a decent tutorial on how to handle the key events?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
this is pretty good:
http://impactjs.com/documentation/animations
the ideas of how to do animation are there.
for keybaoard events:
http://html5.litten.com/moving-shapes-on-the-html5-canvas-with-the-keyboard/