楼主非常厉害呀,这下mv做的游戏可以高枕无忧了 |
楼主打扰了~闭包这一步不太会 打开index.html写成这样对吗 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <meta name="viewport" content="user-scalable=no"> <link rel="icon" href="icon/icon.png" type="image/png"> <link rel="apple-touch-icon" href="icon/icon.png"> <link rel="stylesheet" type="text/css" href="fonts/gamefont.css"> <title>迷宫</title> </head> <body style="background-color: black"> <script type="text/javascript" src="js/libs/pixi.js"></script> <script type="text/javascript" src="js/libs/pixi-tilemap.js"></script> <script type="text/javascript" src="js/libs/pixi-picture.js"></script> <script type="text/javascript" src="js/libs/fpsmeter.js"></script> <script type="text/javascript" src="js/libs/lz-string.js"></script> <script type="text/javascript" src="js/libs/iphone-inline-video.browser.js"></script> <script type="text/javascript" src="js/cmain.js"></script> <!-- <script type="text/javascript" src="js/rpg_core.js"></script> <script type="text/javascript" src="js/rpg_managers.js"></script> <script type="text/javascript" src="js/rpg_objects.js"></script> <script type="text/javascript" src="js/rpg_scenes.js"></script> <script type="text/javascript" src="js/rpg_sprites.js"></script> <script type="text/javascript" src="js/rpg_windows.js"></script> <script type="text/javascript" src="js/plugins.js"></script> <script type="text/javascript" src="js/main.js"></script> //--> </body> </html> 然后 新建 cmain.js 写入 (function (){ <script type="text/javascript" src="js/rpg_managers.js"></script> <script type="text/javascript" src="js/rpg_objects.js"></script> <script type="text/javascript" src="js/rpg_scenes.js"></script> <script type="text/javascript" src="js/rpg_sprites.js"></script> <script type="text/javascript" src="js/rpg_windows.js"></script> <script type="text/javascript" src="js/plugins.js"></script> <script type="text/javascript" src="js/main.js"></script> })() 最后按照 步骤修改rpg_managers.js里的DataManager.loadDataFile eval(name)替换 游戏进不去 小白一个 希望能帮忙指出错误 |
本帖最后由 Mehmet 于 2019-2-27 19:46 编辑 这个方法比昨晚那个完善很多,在不知道怎么加密的情况下估计部分人会无从下手,不过用到控制台的帮助还是可以弄出来. 方法不错,改了秘钥之后就可以自己用来加密了. 不过好像插件会失效,也是需要弄进cmain里面吗? >>> |
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-11-16 09:24
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.