|
@@ -3423,14 +3423,16 @@ InGame.prototype.__class__ = "InGame";
|
|
|
//添加左右键盘按键操作
|
|
|
document.onkeydown = function (event) {
|
|
|
var e = event || window.event || arguments.callee.caller.arguments[0];
|
|
|
+ var ingame = new InGame();
|
|
|
+
|
|
|
if(e && e.keycode == 39){ //右方向键
|
|
|
- InGame.prototype.d.prototype.clickBtnNum = 1;
|
|
|
+ ingame.clickBtnNum = 1;
|
|
|
}
|
|
|
|
|
|
if(e && e.keycode == 37){ //左方向键
|
|
|
- InGame.prototype.d.prototype.clickBtnNum = 0;
|
|
|
+ ingame.clickBtnNum = 0;
|
|
|
}
|
|
|
- InGame.prototype.d.prototype.checkValue();
|
|
|
+ ingame.checkValue();
|
|
|
};
|
|
|
|
|
|
var __extends = this.__extends || function(c, d) {
|