Explorar o código

更新 'games/yqrxd/launcher/game-min.js'

yunhaipiaodi %!s(int64=6) %!d(string=hai) anos
pai
achega
8c79ed49eb
Modificáronse 1 ficheiros con 5 adicións e 3 borrados
  1. 5 3
      games/yqrxd/launcher/game-min.js

+ 5 - 3
games/yqrxd/launcher/game-min.js

@@ -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) {