From a8aece5173111039afa1f0e66b9361b15458a11e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=B5=A9=E4=B9=90?= Date: Wed, 6 Jan 2016 23:51:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E9=94=99=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 5db12d8..7eeae3a 100644 --- a/index.js +++ b/index.js @@ -241,8 +241,8 @@ this.x += this.speed*_COS[this.orientation]; this.y += this.speed*_SIN[this.orientation]; }else if(value<0){ - this.x -= map.size*(map.x_length-1)*_SIN[this.orientation]; - this.y -= map.size*(map.y_length-1)*_COS[this.orientation]; + this.x -= map.size*(map.x_length-1)*_COS[this.orientation]; + this.y -= map.size*(map.y_length-1)*_SIN[this.orientation]; } }else{ this.x += this.speed*_COS[this.orientation];