// 不清除的图片编号 var Undo = [8,9,20]; // 清除图片,编号 1..100 for (var i = 1; i <= 100; i++) { if (Undo.contains(i)) { continue; } $gameScreen.erasePicture(i); }
Game_Screen.prototype.batchErase = function() { var index = 0; while (!!arguments[index]) {this.erasePicture(arguments[index]); index++;} };
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |