Добрый день. У меня получился относительно короткий код. Я этому очень рада, но он не работает и постоянно уведомляет о нехватке ";".
Я понятия не имею, куда тут еще прилепить ";". Даже, если на каждой строке разместить по одной ";", он не работает (правда сообщение изчезает).
http://bitsquest.bitbucket.org/index.html#5
this.on("start", function(contact){
if (this.on("sensor:bottom")){
this.thrusters.left(true);
this.thrusters.top(false);
}else if (this.on("sensor:right")){
this.thrusters.bottom(true);
this.thrusters.left(false);
}else if (this.on("sensor:top")){
this.thrusters.right(true);
this.thrusters.bottom(false);
}else if (this.on("sensor:left")){
this.thrusters.top(true);
this.thrusters.right(false);
}});
Хотелось бы узнать, где я допустила ошибку и почему от него так тормозит компьютер.