canvas进阶
加载图像
context.drawImage(image,x,y,[宽度],[高度]);
图像裁剪
context.drawImage(image, source_x, source_y, source_width, source_height, x, y, width, heigh);
认识requestAnimationFrame
动画原理简介
早期动画循环
循环间隔 60Hz
setTimeout 和 setInterval 问题
requestAnimationFrame
requestAnimationFrame 的兼容使用
使用 requestAnimationFrame 实现动画
键盘事件处理
按键相关事件
keydown
keypress
keyup
按键过程