<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple DOM example</title>
<style>
body {
margin: 0;
overflow: hidden;
}
</style>
<canvas class="myCanvas">
<p>添加恰当的反馈信息。</p>
</canvas>
<script>
var canvas = document.querySelector('.myCanvas');
var width = canvas.width = window.innerWidth;
var height = canvas.height = window.innerHeight;
var ctx = canvas.getContext('2d');
ctx.translate(width/2, height/2);
var image = new Image();
image.src = '22.png';
image.onload = draw;
var sprite = 0;
var