/**
* name
*/
module game{
export class move extends Laya.Image{
private speed = 10;
constructor(){
super();
//console.log("aaaaaa");
this.frameLoop(1,this,function(){
// console.log(this.x);
if (this.x <= -1136) {
this.x += 1136;
}
else{
this.x-=this.speed;
}
});
}
}
}
将两张地图拼接然后组合在box中在挂上上述脚本即可