|
@@ -38,19 +38,19 @@ egret_h5.startGame = function () {
|
|
|
throw new Error("找不到文档类!");
|
|
|
}
|
|
|
|
|
|
- //添加左右键盘按键操作
|
|
|
+ //添加左右键盘按键操作
|
|
|
document.onkeydown = function (event) {
|
|
|
var e = event || window.event || arguments.callee.caller.arguments[0];
|
|
|
|
|
|
|
|
|
if(e && e.keyCode == 39){ //右方向键
|
|
|
- rootClass.ingame.clickBtnNum = 1;
|
|
|
+ document_class.ingame.clickBtnNum = 1;
|
|
|
}
|
|
|
|
|
|
if(e && e.keyCode == 37){ //左方向键
|
|
|
- rootClass.ingame.clickBtnNum = 0;
|
|
|
+ document_class.ingame.clickBtnNum = 0;
|
|
|
}
|
|
|
- rootClass.ingame.checkValue();
|
|
|
+ document_class.ingame.checkValue();
|
|
|
};
|
|
|
|
|
|
};
|