报错处理
This commit is contained in:
parent
dbd2649b91
commit
a8aece5173
4
index.js
4
index.js
@ -241,8 +241,8 @@
|
|||||||
this.x += this.speed*_COS[this.orientation];
|
this.x += this.speed*_COS[this.orientation];
|
||||||
this.y += this.speed*_SIN[this.orientation];
|
this.y += this.speed*_SIN[this.orientation];
|
||||||
}else if(value<0){
|
}else if(value<0){
|
||||||
this.x -= map.size*(map.x_length-1)*_SIN[this.orientation];
|
this.x -= map.size*(map.x_length-1)*_COS[this.orientation];
|
||||||
this.y -= map.size*(map.y_length-1)*_COS[this.orientation];
|
this.y -= map.size*(map.y_length-1)*_SIN[this.orientation];
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
this.x += this.speed*_COS[this.orientation];
|
this.x += this.speed*_COS[this.orientation];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user