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,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]];
var canvas=document.getElementById('canvas');
var msg = document.getElementById("msg");//显示信息
canvas.width=560;
canvas.height=560;
var w=35;
var h=35;
var context=canvas.getContext('2d');
var curMan;//小人的方向
var Level=0;//关卡数
var curarry=copy(levels[Level]);//用来暂时移动的地图
//指的是小人的坐标
function point(x,y)
{
this.x=x;
this.y=y;
}
var manPosition = new point(5,5);//给定一个初始坐标
//图片相对地址
var oImgs = {
"block" : "images/block.gif",
"wall" : "images/wall.png",
"box" : "images/box.png",
"ball" : "images/ball.png",
"up" : "images/up.png",
"down" : "images/down.png",
"left" : "images/left.png",
"right" : "images/right.png",
}
function imgPreload(srcs,callback)
{
var count = 0,imgNum = 0,images = {};
for(src in srcs)
{
imgNum++;
}
for(src in srcs )
{
images[src] = new Image();
images[src].onload = function(){
//判断是否所有的图片都预加载完成
if (++count >= imgNum)
{
callback(images);
}
}
images[src].src = srcs[src];
}
}
var block,wall,box,ball,up,down,left,right;
imgPreload(oImgs,function(images){
//console.log(images.block);
block = images.block;
wall = images.wall;
box = images.box;
ball = images.ball;
up = images.up;
down = images.down;
left = images.left;
right = images.right;
init();
});
//初始化
function init()
{
curarry=copy(levels[Level]);
curMan=down;
initBlock();
DrawMap(curarry);
}
//初始化背景
function initBlock()
{
for (var i=0;i<16 ;i++ )
{
for (var j=0;j<16 ;j++ )
{
context.drawImage(block,w*j,h*i,w,h);
}
}
}
//画地图
function DrawMap(level)
{
for (var i=0;i