juli;// 13 int x,y; 14 int step; 15 }now,nxt; 16 int map[201][201]; 17 int bgx,bgy,homex,homey 201][201]; 23 int calca(int xxx,int yyy) 24 { 25 return max(xxx,homex)-min(xxx,homex)+max(yyy,homey )-min(yyy,homey); 26 } 27 void init() 28 { 29 scanf("%d%d",&n,&m); 30 for(int i=1;i<=n;i { 46 map[i][j]=4;// 家 47 homex=i; 48 homey
) { r = Math.floor(Math.random() * shapes.length); shape = shapes[r]; shape.homeY = 320; shape.homeX = (i * 130) + 100; shape.y = shape.homeY; shape.x = shape.homeX createjs.Tween.get(shape).to({x:shape.homeX, y:shape.homeY}, 200, createjs.Ease.quadOut); 10、定义赢的方法
juli;// 13 int x,y; 14 int step; 15 }now,nxt; 16 int map[201][201]; 17 int bgx,bgy,homex,homey 201][201]; 23 int calca(int xxx,int yyy) 24 { 25 return max(xxx,homex)-min(xxx,homex)+max(yyy,homey )-min(yyy,homey); 26 } 27 void init() 28 { 29 scanf("%d%d",&n,&m); 30 for(int i=1;i<=n;i { 46 map[i][j]=4;// 家 47 homex=i; 48 homey