How to use ea method in wpt

Best JavaScript code snippet using wpt

mmyScripts.js

Source:mmyScripts.js Github

copy

Full Screen

1// プラグイン mmyScripts Version 1.152// 2018/3/30 by Tex3// http://mmy.fe8works.com/4//5// 2018/2/26 by kururin 1.13-k6//7// 実装:スピン攻撃、HP表示、反重力、スターリング8// 回る床、コウモリ9// 使用にはプラグインマネージャーが必要です10//11// 特技の設定値12// 101 - Xキーでスピン攻撃13// 102 - 正男のHP314// 103 - 正男のHP515// 104 - 重力を上にする16//17// 仕掛けの設定値18// 5000 - 重力上19// 5001 - 重力下20// 5002 - スターリング上21// 5003 - スターリング左22// 5004 - スターリング右23// 5005 - 円を描くように動く床*2 右24// 5006 - 円を描くように動く床*2 左25// 5007 - 円を描くように動く床*4 右26// 5008 - 円を描くように動く床*4 左27// 5009 - スーパー正男2のコウモリ28// 5010 - 羽根つきアイテムボックス 1UP29// 5011 - 羽根つきアイテムボックス コイン30// 5012 - 羽根つきアイテムボックス ファイアボール31// 5013 - 羽根つきアイテムボックス バリア32// 5014 - 羽根つきアイテムボックス タイム33// 5015 - 羽根つきアイテムボックス ジェット34// 5016 - 羽根つきアイテムボックス ヘルメット35// 5017 - 羽根つきアイテムボックス しっぽ36// 5018 - 羽根つきアイテムボックス ドリル37// 5019 - 羽根つきアイテムボックス グレネード38// 5020 - 羽根つきアイテムボックス右移動 1UP39// 5021 - 羽根つきアイテムボックス右移動 コイン40// 5022 - 羽根つきアイテムボックス右移動 ファイアボール41// 5023 - 羽根つきアイテムボックス右移動 バリア42// 5024 - 羽根つきアイテムボックス右移動 タイム43// 5025 - 羽根つきアイテムボックス右移動 ジェット44// 5026 - 羽根つきアイテムボックス右移動 ヘルメット45// 5027 - 羽根つきアイテムボックス右移動 しっぽ46// 5028 - 羽根つきアイテムボックス右移動 ドリル47// 5029 - 羽根つきアイテムボックス右移動 グレネード48// 5030 - 羽根つきアイテムボックス左移動 1UP49// 5031 - 羽根つきアイテムボックス左移動 コイン50// 5032 - 羽根つきアイテムボックス左移動 ファイアボール51// 5033 - 羽根つきアイテムボックス左移動 バリア52// 5034 - 羽根つきアイテムボックス左移動 タイム53// 5035 - 羽根つきアイテムボックス左移動 ジェット54// 5036 - 羽根つきアイテムボックス左移動 ヘルメット55// 5037 - 羽根つきアイテムボックス左移動 しっぽ56// 5038 - 羽根つきアイテムボックス左移動 ドリル57// 5039 - 羽根つきアイテムボックス左移動 グレネード58// 5040 - 羽根つきアイテムボックス壁反転 1UP59// 5041 - 羽根つきアイテムボックス壁反転 コイン60// 5042 - 羽根つきアイテムボックス壁反転 ファイアボール61// 5043 - 羽根つきアイテムボックス壁反転 バリア62// 5044 - 羽根つきアイテムボックス壁反転 タイム63// 5045 - 羽根つきアイテムボックス壁反転 ジェット64// 5046 - 羽根つきアイテムボックス壁反転 ヘルメット65// 5047 - 羽根つきアイテムボックス壁反転 しっぽ66// 5048 - 羽根つきアイテムボックス壁反転 ドリル67// 5049 - 羽根つきアイテムボックス壁反転 グレネード68// 5050 - 放置アイテム 1UP69// 5051 - 放置アイテム ファイアボール70// 5052 - 放置アイテム バリア71// 5053 - 放置アイテム タイム72// 5054 - 放置アイテム ジェット73// 5055 - 放置アイテム ヘルメット74// 5056 - 放置アイテム しっぽ75// 5057 - 放置アイテム ドリル76// 5058 - 放置アイテム グレネード77var mmyScripts = (function() {78 // クロージャ内変数79 var plugin_manager = null; // プラグインマネージャー80 // スピン用変数81 mmySpin_simg = new Array(8);82 var mmySpin_spinFlag = 0; //アニメーションカウンタ83 var mmySpin_spinUse = false;84 // HP用変数85 mmyHp_simg = new Array(2);86 var mmyHp_hpUse = false;87 var mmyHp_setHP = 3;88 // 反重力用変数89 ag_imgL = new Array(9);90 ag_imgR = new Array(9);91 ag_simg = new Array(2);92 var mmyAG_agUse = true;93 var mmyAg_def = false;94 // 反重力用変数95 var mmyAg_preVX = 0; // 踏みつけ前のVX96 var mmyAg_pressed = false; // 踏みつけ後、着地までtrue97 var muki = 0;98 var agRc, agc = 0,99 ob_c = 0,100 j_count = 8,101 gmoc = 0;102 // スターリング用変数103 var str_simg = new Array(3);104 var mmy_str_c = 0;105 var mmy_str_yc = 0;106 var komori_simg = [];107 var yuka1_img = [];108 var wing_simg = [];109 // 拡張仕掛け用変数110 var ea_id_max = 0; // ID最大値111 var ea_con = []; // 状態112 var ea_x = []; // X座標113 var ea_y = []; // Y座標114 var ea_x2 = []; // X座標115 var ea_y2 = []; // Y座標116 var ea_x_or = []; // X座標117 var ea_y_or = []; // Y座標118 var ea_vx = []; // X座標119 var ea_vy = []; // Y座標120 var ea_ang = [];121 var ea_rot = [];122 var ea_c1 = [];123 var ea_c2 = [];124 var ea_pt = []; // パターン125 var ea_pt2 = []; // 拡張パターン126 var ea_ptr = []; // パターン反転127 var ea_id = []; // ID128 var ea_type = []; // 1でパターン画像、2で追加パターン129 var ea_yuka1 = [];130 var ea_yuka2 = [];131 var ea_yuka3 = [];132 var ea_yuka4 = [];133 var ac_4 = 0;134 var ac_8 = 0;135 // 起動時の初期化136 function initLoad(ap) {137 // イベントの設定138 plugin_manager.addEventListener("gamestart", mmyScripts.gameStartEvent);139 plugin_manager.addEventListener("game", mmyScripts.gameEvent);140 plugin_manager.addEventListener("putathletic", mmyScripts.putAthleticEvent);141 // パターン画像を元に拡張パターンを作成142 var mmy_imgPtn = ap.getParamValue("filename_pattern");143 mmy_sid = ap.newChipImage(mmy_imgPtn, 32, 32, 10, 28);144 ap.makeReverseChipImage(mmy_sid);145 mmy_sid2 = ap.newChipImage(mmy_imgPtn, 96, 32, 3, 27);146 ap.makeReverseChipImage(mmy_sid2);147 // スピン用のパターン画像を取得148 for (i = 0; i < 4; i++) {149 mmySpin_simg[i] = ap.getChipImage(mmy_sid, i + 250, 0);150 mmySpin_simg[i + 4] = ap.getChipImage(mmy_sid, i + 250, 3);151 }152 // HP用のパターン画像を取得153 for (i = 0; i < 2; i++) {154 mmyHp_simg[i] = ap.getChipImage(mmy_sid, i + 254, 0);155 }156 // 反重力用の主人公パターンを作成157 for (i = 0; i <= 9; i++) {158 ag_imgL[i] = ap.getChipImage(mmy_sid, i + 100, 2);159 ag_imgR[i] = ap.getChipImage(mmy_sid, i + 100, 3);160 }161 // 反重力用のパネル画像を取得162 ag_simg[0] = ap.getChipImage(mmy_sid, 259, 0);163 ag_simg[1] = ap.getChipImage(mmy_sid, 259, 3);164 // スターリング画像を取得165 for (i = 0; i < 3; i++) {166 str_simg[i] = ap.getChipImage(mmy_sid, i + 256, 0);167 }168 // コウモリ画像を取得169 komori_simg[0] = ap.getChipImage(mmy_sid, 260, 0);170 komori_simg[1] = ap.getChipImage(mmy_sid, 261, 0);171 komori_simg[2] = ap.getChipImage(mmy_sid, 262, 0);172 komori_simg[3] = ap.getChipImage(mmy_sid, 261, 1);173 komori_simg[4] = ap.getChipImage(mmy_sid, 262, 1);174 komori_simg[5] = ap.getChipImage(mmy_sid, 263, 0);175 komori_simg[6] = ap.getChipImage(mmy_sid, 263, 1);176 // 移動床用の画像を取得177 yuka1_img[0] = ap.getChipImage(mmy_sid2, 57, 0);178 wing_simg[0] = ap.getChipImage(mmy_sid, 264, 0);179 wing_simg[1] = ap.getChipImage(mmy_sid, 265, 0);180 wing_simg[2] = ap.getChipImage(mmy_sid, 264, 1);181 wing_simg[3] = ap.getChipImage(mmy_sid, 265, 1);182 }183 // ゲーム開始時の初期化184 function initGameStart(ap) {185 // 仕掛けの初期化186 ea_id_max = 0;187 ac_4 = 0;188 for (var i = 0; i < 100; i++) {189 ea_con[i] = 0;190 }191 // スピン初期化192 mmySpin_spinFlag = 0;193 mmySpin_spinUse = false;194 // HP初期化195 mmyHp_hpUse = false;196 // 反重力初期化197 mmyAg_def = false;198 mmyAg_pressed = false;199 mmyAg_preVX = 0;200 // スターリング初期化201 mmy_str_c = 0;202 mmy_str_yc = 0;203 // 正男の特技を取得204 var mmy_GetParam_Tokugi = ap.getParamValue("j_tokugi");205 var mmy_GetParam_AddTokugi1 = ap.getParamValue("j_add_tokugi");206 var mmy_GetParam_AddTokugi2 = ap.getParamValue("j_add_tokugi2");207 var mmy_GetParam_AddTokugi3 = ap.getParamValue("j_add_tokugi3");208 var mmy_GetParam_AddTokugi4 = ap.getParamValue("j_add_tokugi4");209 // 特技のParamを取得210 if (mmy_GetParam_Tokugi == 101 || mmy_GetParam_AddTokugi1 == 101 || mmy_GetParam_AddTokugi2 == 101 || mmy_GetParam_AddTokugi3 == 101 || mmy_GetParam_AddTokugi4 == 101) {211 mmySpin_spinUse = true;212 }213 if (mmy_GetParam_Tokugi == 102 || mmy_GetParam_AddTokugi1 == 102 || mmy_GetParam_AddTokugi2 == 102 || mmy_GetParam_AddTokugi3 == 102 || mmy_GetParam_AddTokugi4 == 102) {214 mmyHp_hpUse = true;215 mmyHp_setHP = 3;216 }217 if (mmy_GetParam_Tokugi == 103 || mmy_GetParam_AddTokugi1 == 103 || mmy_GetParam_AddTokugi2 == 103 || mmy_GetParam_AddTokugi3 == 103 || mmy_GetParam_AddTokugi4 == 103) {218 mmyHp_hpUse = true;219 mmyHp_setHP = 5;220 }221 if (mmy_GetParam_Tokugi == 104 || mmy_GetParam_AddTokugi1 == 104 || mmy_GetParam_AddTokugi2 == 104 || mmy_GetParam_AddTokugi3 == 104 || mmy_GetParam_AddTokugi4 == 104) {222 mmyAg_def = true;223 }224 // HPセット225 if (mmyHp_hpUse == true) {226 ap.setMyMaxHP(mmyHp_setHP);227 }228 // 反重力 フェイク用床セット229 agy1 = ap.newYuka(5 * 32, (26 + 10) * 32, 6 * 32, (26 + 10) * 32, "line");230 ap.setYukaType(agy1, 2);231 agc = 0;232 ob_c = 2;233 j_count = 8;234 //mmySpin_spinUse = false;235 }236 // 拡張仕掛け 設置237 function setExtendAth(code, x, y, ap) {238 for (var i = 0; i < 100; i++) {239 if (ea_con[i] != 0) continue;240 // 初期設定241 ea_x[i] = x;242 ea_y[i] = y;243 ea_x_or[i] = x;244 ea_y_or[i] = y;245 ea_vx[i] = 0;246 ea_vy[i] = 0;247 ea_pt[i] = 0;248 ea_c1[i] = 0;249 ea_c2[i] = 0;250 ea_pt2[i] = 0;251 ea_ptr[i] = 0;252 ea_id[i] = 0;253 ea_type[i] = 0;254 // 種類別の設定255 switch (code) {256 case 5000: // 重力パネル上257 ea_con[i] = 1000;258 ea_id[i] = 1;259 ea_pt[i] = 1;260 ea_pt2[i] = ag_simg[0];261 ea_type[i] = 1;262 break;263 case 5001: // 重力パネル下264 ea_con[i] = 1000;265 ea_id[i] = 2;266 ea_pt[i] = 1;267 ea_pt2[i] = ag_simg[1];268 ea_type[i] = 1;269 break;270 case 5002: // スターリング 上271 ea_con[i] = 1100;272 ea_id[i] = 3;273 ea_pt[i] = 1;274 ea_pt2[i] = str_simg[0];275 ea_type[i] = 1;276 break;277 case 5003: // スターリング 左278 ea_con[i] = 1100;279 ea_id[i] = 4;280 ea_pt[i] = 1;281 ea_pt2[i] = str_simg[1];282 ea_type[i] = 1;283 break;284 case 5004: // スターリング 右285 ea_con[i] = 1100;286 ea_id[i] = 5;287 ea_pt[i] = 1;288 ea_pt2[i] = str_simg[2];289 ea_type[i] = 1;290 break;291 case 5005: // 縁を描くように移動する床292 ea_con[i] = 1110;293 ea_id[i] = 6;294 ea_pt[i] = 190;295 ea_ang[i] = 2;296 ea_rot[i] = 0;297 ea_type[i] = 2;298 ea_yuka1[i] = ap.newYuka(x, y, 80, 16, "rect");299 ea_yuka2[i] = ap.newYuka(x, y, 80, 16, "rect");300 ap.setYukaImage(ea_yuka1[i], yuka1_img[0]);301 ap.setYukaImage(ea_yuka2[i], yuka1_img[0]);302 //ap.setYukaPattern(ea_yuka1[i],183,0);303 //ap.setYukaPattern(ea_yuka1[i],183,0);304 break;305 case 5006: // 縁を描くように移動する床306 ea_con[i] = 1111;307 ea_id[i] = 7;308 ea_pt[i] = 190;309 ea_ang[i] = 2;310 ea_rot[i] = 0;311 ea_type[i] = 2;312 ea_yuka1[i] = ap.newYuka(x, y, 80, 16, "rect");313 ea_yuka2[i] = ap.newYuka(x, y, 80, 16, "rect");314 ap.setYukaImage(ea_yuka1[i], yuka1_img[0]);315 ap.setYukaImage(ea_yuka2[i], yuka1_img[0]);316 //ap.setYukaPattern(ea_yuka1[i],183,0);317 //ap.setYukaPattern(ea_yuka1[i],183,0);318 break;319 case 5007: // 縁を描くように移動する床 4320 ea_con[i] = 1112;321 ea_id[i] = 8;322 ea_pt[i] = 190;323 ea_ang[i] = 2;324 ea_rot[i] = 0;325 ea_type[i] = 2;326 ea_yuka1[i] = ap.newYuka(x, y, 80, 16, "rect");327 ea_yuka2[i] = ap.newYuka(x, y, 80, 16, "rect");328 ea_yuka3[i] = ap.newYuka(x, y, 80, 16, "rect");329 ea_yuka4[i] = ap.newYuka(x, y, 80, 16, "rect");330 ap.setYukaImage(ea_yuka1[i], yuka1_img[0]);331 ap.setYukaImage(ea_yuka2[i], yuka1_img[0]);332 ap.setYukaImage(ea_yuka3[i], yuka1_img[0]);333 ap.setYukaImage(ea_yuka4[i], yuka1_img[0]);334 //ap.setYukaPattern(ea_yuka1[i],183,0);335 //ap.setYukaPattern(ea_yuka1[i],183,0);336 break;337 case 5008: // 縁を描くように移動する床 4338 ea_con[i] = 1113;339 ea_id[i] = 9;340 ea_pt[i] = 190;341 ea_ang[i] = 2;342 ea_rot[i] = 0;343 ea_type[i] = 2;344 ea_yuka1[i] = ap.newYuka(x, y, 80, 16, "rect");345 ea_yuka2[i] = ap.newYuka(x, y, 80, 16, "rect");346 ea_yuka3[i] = ap.newYuka(x, y, 80, 16, "rect");347 ea_yuka4[i] = ap.newYuka(x, y, 80, 16, "rect");348 ap.setYukaImage(ea_yuka1[i], yuka1_img[0]);349 ap.setYukaImage(ea_yuka2[i], yuka1_img[0]);350 ap.setYukaImage(ea_yuka3[i], yuka1_img[0]);351 ap.setYukaImage(ea_yuka4[i], yuka1_img[0]);352 //ap.setYukaPattern(ea_yuka1[i],183,0);353 //ap.setYukaPattern(ea_yuka1[i],183,0);354 break;355 case 5009: // コウモリ356 ea_con[i] = 1150;357 ea_id[i] = 10;358 ea_pt[i] = 164;359 ea_pt2[i] = komori_simg[0];360 ea_rot[i] = 0;361 ea_vy[i] = 6;362 ea_vx[i] = 2;363 //ea_pt2[i] = str_simg[1];364 ea_type[i] = 1;365 break;366 case 5010: // フライングアイテムボックス上下 1UP367 ea_con[i] = 1160;368 ea_id[i] = 11;369 //ea_pt[i] = 164;370 ea_vy[i] = 4;371 ea_vx[i] = 2;372 ea_c1[i] = 0;373 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");374 ap.setYukaPattern(ea_yuka1[i], 40, 0);375 break;376 case 5011: // フライングアイテムボックス上下 コイン377 ea_con[i] = 1160;378 ea_id[i] = 12;379 //ea_pt[i] = 164;380 ea_vy[i] = 4;381 ea_vx[i] = 2;382 ea_c1[i] = 1;383 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");384 ap.setYukaPattern(ea_yuka1[i], 40, 0);385 break;386 case 5012: // フライングアイテムボックス上下 ファイアボール387 ea_con[i] = 1160;388 ea_id[i] = 13;389 //ea_pt[i] = 164;390 ea_vy[i] = 4;391 ea_vx[i] = 2;392 ea_c1[i] = 2;393 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");394 ap.setYukaPattern(ea_yuka1[i], 40, 0);395 break;396 case 5013: // フライングアイテムボックス上下 バリア397 ea_con[i] = 1160;398 ea_id[i] = 14;399 //ea_pt[i] = 164;400 ea_vy[i] = 4;401 ea_vx[i] = 2;402 ea_c1[i] = 3;403 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");404 ap.setYukaPattern(ea_yuka1[i], 40, 0);405 break;406 case 5014: // フライングアイテムボックス上下 タイム407 ea_con[i] = 1160;408 ea_id[i] = 15;409 //ea_pt[i] = 164;410 ea_vy[i] = 4;411 ea_vx[i] = 2;412 ea_c1[i] = 4;413 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");414 ap.setYukaPattern(ea_yuka1[i], 40, 0);415 break;416 case 5015: // フライングアイテムボックス上下 ジェット417 ea_con[i] = 1160;418 ea_id[i] = 16;419 //ea_pt[i] = 164;420 ea_vy[i] = 4;421 ea_vx[i] = 2;422 ea_c1[i] = 5;423 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");424 ap.setYukaPattern(ea_yuka1[i], 40, 0);425 break;426 case 5016: // フライングアイテムボックス上下 ヘルメット427 ea_con[i] = 1160;428 ea_id[i] = 17;429 //ea_pt[i] = 164;430 ea_vy[i] = 4;431 ea_vx[i] = 2;432 ea_c1[i] = 6;433 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");434 ap.setYukaPattern(ea_yuka1[i], 40, 0);435 break;436 case 5017: // フライングアイテムボックス上下 しっぽ437 ea_con[i] = 1160;438 ea_id[i] = 18;439 //ea_pt[i] = 164;440 ea_vy[i] = 4;441 ea_vx[i] = 2;442 ea_c1[i] = 7;443 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");444 ap.setYukaPattern(ea_yuka1[i], 40, 0);445 break;446 case 5018: // フライングアイテムボックス上下 ドリル447 ea_con[i] = 1160;448 ea_id[i] = 19;449 //ea_pt[i] = 164;450 ea_vy[i] = 4;451 ea_vx[i] = 2;452 ea_c1[i] = 8;453 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");454 ap.setYukaPattern(ea_yuka1[i], 40, 0);455 break;456 case 5019: // フライングアイテムボックス上下 グレネード457 ea_con[i] = 1160;458 ea_id[i] = 20;459 //ea_pt[i] = 164;460 ea_vy[i] = 4;461 ea_vx[i] = 2;462 ea_c1[i] = 9;463 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");464 ap.setYukaPattern(ea_yuka1[i], 40, 0);465 break;466 case 5020: // フライングアイテムボックス右移動 1UP467 ea_con[i] = 1161;468 ea_id[i] = 21;469 //ea_pt[i] = 164;470 ea_vy[i] = 4;471 ea_vx[i] = 2;472 ea_c1[i] = 0;473 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");474 ap.setYukaPattern(ea_yuka1[i], 40, 0);475 break;476 case 5021: // フライングアイテムボックス右移動 コイン477 ea_con[i] = 1161;478 ea_id[i] = 22;479 //ea_pt[i] = 164;480 ea_vy[i] = 4;481 ea_vx[i] = 2;482 ea_c1[i] = 1;483 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");484 ap.setYukaPattern(ea_yuka1[i], 40, 0);485 break;486 case 5022: // フライングアイテムボックス右移動 ファイアボール487 ea_con[i] = 1161;488 ea_id[i] = 23;489 //ea_pt[i] = 164;490 ea_vy[i] = 4;491 ea_vx[i] = 2;492 ea_c1[i] = 2;493 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");494 ap.setYukaPattern(ea_yuka1[i], 40, 0);495 break;496 case 5023: // フライングアイテムボックス右移動 バリア497 ea_con[i] = 1161;498 ea_id[i] = 24;499 //ea_pt[i] = 164;500 ea_vy[i] = 4;501 ea_vx[i] = 2;502 ea_c1[i] = 3;503 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");504 ap.setYukaPattern(ea_yuka1[i], 40, 0);505 break;506 case 5024: // フライングアイテムボックス右移動 タイム507 ea_con[i] = 1161;508 ea_id[i] = 25;509 //ea_pt[i] = 164;510 ea_vy[i] = 4;511 ea_vx[i] = 2;512 ea_c1[i] = 4;513 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");514 ap.setYukaPattern(ea_yuka1[i], 40, 0);515 break;516 case 5025: // フライングアイテムボックス右移動 ジェット517 ea_con[i] = 1161;518 ea_id[i] = 26;519 //ea_pt[i] = 164;520 ea_vy[i] = 4;521 ea_vx[i] = 2;522 ea_c1[i] = 5;523 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");524 ap.setYukaPattern(ea_yuka1[i], 40, 0);525 break;526 case 5026: // フライングアイテムボックス右移動 ヘルメット527 ea_con[i] = 1161;528 ea_id[i] = 27;529 //ea_pt[i] = 164;530 ea_vy[i] = 4;531 ea_vx[i] = 2;532 ea_c1[i] = 6;533 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");534 ap.setYukaPattern(ea_yuka1[i], 40, 0);535 break;536 case 5027: // フライングアイテムボックス右移動 しっぽ537 ea_con[i] = 1161;538 ea_id[i] = 28;539 //ea_pt[i] = 164;540 ea_vy[i] = 4;541 ea_vx[i] = 2;542 ea_c1[i] = 7;543 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");544 ap.setYukaPattern(ea_yuka1[i], 40, 0);545 break;546 case 5028: // フライングアイテムボックス右移動 ドリル547 ea_con[i] = 1161;548 ea_id[i] = 29;549 //ea_pt[i] = 164;550 ea_vy[i] = 4;551 ea_vx[i] = 2;552 ea_c1[i] = 8;553 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");554 ap.setYukaPattern(ea_yuka1[i], 40, 0);555 break;556 case 5029: // フライングアイテムボックス右移動 グレネード557 ea_con[i] = 1161;558 ea_id[i] = 30;559 //ea_pt[i] = 164;560 ea_vy[i] = 4;561 ea_vx[i] = 2;562 ea_c1[i] = 9;563 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");564 ap.setYukaPattern(ea_yuka1[i], 40, 0);565 break;566 case 5030: // フライングアイテムボックス左移動 1UP567 ea_con[i] = 1162;568 ea_id[i] = 31;569 //ea_pt[i] = 164;570 ea_vy[i] = 4;571 ea_vx[i] = 2;572 ea_c1[i] = 0;573 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");574 ap.setYukaPattern(ea_yuka1[i], 40, 0);575 break;576 case 5031: // フライングアイテムボックス左移動 コイン577 ea_con[i] = 1162;578 ea_id[i] = 32;579 //ea_pt[i] = 164;580 ea_vy[i] = 4;581 ea_vx[i] = 2;582 ea_c1[i] = 1;583 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");584 ap.setYukaPattern(ea_yuka1[i], 40, 0);585 break;586 case 5032: // フライングアイテムボックス左移動 ファイアボール587 ea_con[i] = 1162;588 ea_id[i] = 33;589 //ea_pt[i] = 164;590 ea_vy[i] = 4;591 ea_vx[i] = 2;592 ea_c1[i] = 2;593 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");594 ap.setYukaPattern(ea_yuka1[i], 40, 0);595 break;596 case 5033: // フライングアイテムボックス左移動 バリア597 ea_con[i] = 1162;598 ea_id[i] = 34;599 //ea_pt[i] = 164;600 ea_vy[i] = 4;601 ea_vx[i] = 2;602 ea_c1[i] = 3;603 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");604 ap.setYukaPattern(ea_yuka1[i], 40, 0);605 break;606 case 5034: // フライングアイテムボックス左移動 タイム607 ea_con[i] = 1162;608 ea_id[i] = 35;609 //ea_pt[i] = 164;610 ea_vy[i] = 4;611 ea_vx[i] = 2;612 ea_c1[i] = 4;613 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");614 ap.setYukaPattern(ea_yuka1[i], 40, 0);615 break;616 case 5035: // フライングアイテムボックス左移動 ジェット617 ea_con[i] = 1162;618 ea_id[i] = 36;619 //ea_pt[i] = 164;620 ea_vy[i] = 4;621 ea_vx[i] = 2;622 ea_c1[i] = 5;623 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");624 ap.setYukaPattern(ea_yuka1[i], 40, 0);625 break;626 case 5036: // フライングアイテムボックス左移動 ヘルメット627 ea_con[i] = 1162;628 ea_id[i] = 37;629 //ea_pt[i] = 164;630 ea_vy[i] = 4;631 ea_vx[i] = 2;632 ea_c1[i] = 6;633 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");634 ap.setYukaPattern(ea_yuka1[i], 40, 0);635 break;636 case 5037: // フライングアイテムボックス左移動 しっぽ637 ea_con[i] = 1162;638 ea_id[i] = 38;639 //ea_pt[i] = 164;640 ea_vy[i] = 4;641 ea_vx[i] = 2;642 ea_c1[i] = 7;643 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");644 ap.setYukaPattern(ea_yuka1[i], 40, 0);645 break;646 case 5038: // フライングアイテムボックス左移動 ドリル647 ea_con[i] = 1162;648 ea_id[i] = 39;649 //ea_pt[i] = 164;650 ea_vy[i] = 4;651 ea_vx[i] = 2;652 ea_c1[i] = 8;653 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");654 ap.setYukaPattern(ea_yuka1[i], 40, 0);655 break;656 case 5039: // フライングアイテムボックス左移動 グレネード657 ea_con[i] = 1162;658 ea_id[i] = 40;659 //ea_pt[i] = 164;660 ea_vy[i] = 4;661 ea_vx[i] = 2;662 ea_c1[i] = 9;663 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");664 ap.setYukaPattern(ea_yuka1[i], 40, 0);665 break;666 case 5040: // フライングアイテムボックス壁反転 1UP667 ea_con[i] = 1163;668 ea_id[i] = 41;669 //ea_pt[i] = 164;670 ea_vy[i] = 4;671 ea_vx[i] = 2;672 ea_c1[i] = 0;673 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");674 ap.setYukaPattern(ea_yuka1[i], 40, 0);675 break;676 case 5041: // フライングアイテムボックス壁反転 コイン677 ea_con[i] = 1163;678 ea_id[i] = 42;679 //ea_pt[i] = 164;680 ea_vy[i] = 4;681 ea_vx[i] = 2;682 ea_c1[i] = 1;683 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");684 ap.setYukaPattern(ea_yuka1[i], 40, 0);685 break;686 case 5042: // フライングアイテムボックス壁反転 ファイアボール687 ea_con[i] = 1163;688 ea_id[i] = 43;689 //ea_pt[i] = 164;690 ea_vy[i] = 4;691 ea_vx[i] = 2;692 ea_c1[i] = 2;693 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");694 ap.setYukaPattern(ea_yuka1[i], 40, 0);695 break;696 case 5043: // フライングアイテムボックス壁反転 バリア697 ea_con[i] = 1163;698 ea_id[i] = 44;699 //ea_pt[i] = 164;700 ea_vy[i] = 4;701 ea_vx[i] = 2;702 ea_c1[i] = 3;703 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");704 ap.setYukaPattern(ea_yuka1[i], 40, 0);705 break;706 case 5044: // フライングアイテムボックス壁反転 タイム707 ea_con[i] = 1163;708 ea_id[i] = 45;709 //ea_pt[i] = 164;710 ea_vy[i] = 4;711 ea_vx[i] = 2;712 ea_c1[i] = 4;713 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");714 ap.setYukaPattern(ea_yuka1[i], 40, 0);715 break;716 case 5045: // フライングアイテムボックス壁反転 ジェット717 ea_con[i] = 1163;718 ea_id[i] = 46;719 //ea_pt[i] = 164;720 ea_vy[i] = 4;721 ea_vx[i] = 2;722 ea_c1[i] = 5;723 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");724 ap.setYukaPattern(ea_yuka1[i], 40, 0);725 break;726 case 5046: // フライングアイテムボックス壁反転 ヘルメット727 ea_con[i] = 1163;728 ea_id[i] = 47;729 //ea_pt[i] = 164;730 ea_vy[i] = 4;731 ea_vx[i] = 2;732 ea_c1[i] = 6;733 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");734 ap.setYukaPattern(ea_yuka1[i], 40, 0);735 break;736 case 5047: // フライングアイテムボックス壁反転 しっぽ737 ea_con[i] = 1163;738 ea_id[i] = 48;739 //ea_pt[i] = 164;740 ea_vy[i] = 4;741 ea_vx[i] = 2;742 ea_c1[i] = 7;743 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");744 ap.setYukaPattern(ea_yuka1[i], 40, 0);745 break;746 case 5048: // フライングアイテムボックス壁反転 ドリル747 ea_con[i] = 1163;748 ea_id[i] = 49;749 //ea_pt[i] = 164;750 ea_vy[i] = 4;751 ea_vx[i] = 2;752 ea_c1[i] = 8;753 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");754 ap.setYukaPattern(ea_yuka1[i], 40, 0);755 break;756 case 5049: // フライングアイテムボックス壁反転 グレネード757 ea_con[i] = 1163;758 ea_id[i] = 50;759 //ea_pt[i] = 164;760 ea_vy[i] = 4;761 ea_vx[i] = 2;762 ea_c1[i] = 9;763 ea_yuka1[i] = ap.newYuka(x, y, 32, 31, "rect");764 ap.setYukaPattern(ea_yuka1[i], 40, 0);765 break;766 case 5050: // 放置アイテム !UP767 ea_con[i] = 1170;768 ea_id[i] = 51;769 break;770 case 5051: // 放置アイテム ファイアボール771 ea_con[i] = 1172;772 ea_id[i] = 52;773 break;774 case 5052: // 放置アイテム バリア775 ea_con[i] = 1173;776 ea_id[i] = 53;777 break;778 case 5053: // 放置アイテム タイム779 ea_con[i] = 1174;780 ea_id[i] = 54;781 break;782 case 5054: // 放置アイテム ジェット783 ea_con[i] = 1175;784 ea_id[i] = 55;785 break;786 case 5055: // 放置アイテム ヘルメット787 ea_con[i] = 1176;788 ea_id[i] = 56;789 break;790 case 5056: // 放置アイテム しっぽ791 ea_con[i] = 1177;792 ea_id[i] = 57;793 break;794 case 5057: // 放置アイテム ドリル795 ea_con[i] = 1178;796 ea_id[i] = 58;797 break;798 case 5058: // 放置アイテム グレネード799 ea_con[i] = 1179;800 ea_id[i] = 59;801 break;802 }803 if (i > ea_id_max) ea_id_max = i;804 break;805 }806 }807 // 拡張仕掛け 動作808 function moveExtendAth(os_g, ap, view_x, view_y) {809 // 自分810 var my_x = ap.getMyXReal(); // X座標811 var my_y = ap.getMyYReal(); // Y座標812 var my_fumi_f = false; // 踏み潰しフラグ813 var my_x_block = ap.getMyX();814 var my_y_block = ap.getMyY();815 muki = ap.getMyDirection();816 key = ap.getKeyCode();817 rgc = ap.isRideGround();818 for (var i = 0; i <= ea_id_max; i++) {819 if (ea_con[i] == 0) continue;820 switch (ea_con[i]) {821 case 500: // 潰れた コウモリ822 ea_pt[i] = 149;823 ea_pt2[i] = komori_simg[5 + ea_ptr[i]];824 ea_c1[i]++;825 if (ea_c1[i] >= 10) {826 // 消える827 ea_con[i] = 0;828 ap.addScore(10);829 }830 break;831 case 1000: // 重力パネル832 // 画面外833 if (ea_x[i] - view_x < -31 || ea_x[i] - view_x > 519 ||834 ea_y[i] - view_y < -31 || ea_y[i] - view_y > 319) {835 ea_pt[i] = 0;836 break;837 }838 ea_pt[i] = 1;839 // 自分との当たり判定840 if (my_x + 31 >= ea_x[i] + 4 && my_x <= ea_x[i] + 31 - 4 &&841 my_y + 31 >= ea_y[i] + 8 && my_y <= ea_y[i] + 31) {842 //反重力オン843 if (ea_id[i] == 1) {844 mmy_AG(ap, true);845 }846 //反重力オフ847 else if (ea_id[i] == 2) {848 mmy_AG(ap, false);849 }850 }851 break;852 case 1100: // スターリング853 // 画面外854 if (ea_x[i] - view_x < -31 || ea_x[i] - view_x > 519 ||855 ea_y[i] - view_y < -31 || ea_y[i] - view_y > 319) {856 ea_pt[i] = 0;857 break;858 }859 ea_pt[i] = 1;860 // 設置された座標をブロック単位で取得861 str_chip_x = ea_x[i] / 32 - 1;862 str_chip_y = ea_y[i] / 32 - 10;863 // 自分との当たり判定864 if (my_x + 31 >= ea_x[i] + 4 && my_x <= ea_x[i] + 31 - 4 &&865 my_y + 31 >= ea_y[i] + 8 && my_y <= ea_y[i] + 31) {866 if (mmy_str_c == 0) {867 ap.setMyWait(1, 101, muki);868 ap.playSound(14);869 mmy_str_c = 1;870 }871 ap.setMyPosition(str_chip_x, str_chip_y);872 if (key == 40) {873 if (agc == 0) {874 ap.setMyYReal(my_y + 20);875 } else if (agc == 1) {876 ap.setMyYReal(my_y - 20);877 }878 ap.resetKeyCode();879 mmy_str_c = 0;880 mmy_str_yc = 0;881 } else if (key == 32 || key == 90) {882 mmy_AG(ap, false);883 mmy_str_c = 0;884 ap.setMyYReal(my_y - 10);885 switch (ea_id[i]) {886 case 3:887 ap.setMyVY(-300);888 break;889 case 4:890 ap.setMyVX(-300);891 ap.setMyVY(-350);892 break;893 case 5:894 ap.setMyVX(+300);895 ap.setMyVY(-350);896 break;897 }898 ap.playSound(8);899 mmy_str_yc = 1;900 ap.resetKeyCode();901 }902 }903 if (mmy_str_c == 2 && my_x_block != str_chip_x || mmy_str_c == 2 && my_y_block != str_chip_y) {904 mmy_str_c = 0;905 }906 break;907 case 1110: // 円を描くように移動する2つの床908 ea_rot[i] += ea_ang[i];909 var ea_rot2 = ea_rot[i] + 180 + ea_ang[i];910 ea_x[i] = ea_x_or[i] + Math.floor(Math.cos(ea_rot[i] * Math.PI / 180) * (5 * 32)) - 24;911 ea_y[i] = ea_y_or[i] + Math.floor(Math.sin(ea_rot[i] * Math.PI / 180) * (5 * 32)) + 32;912 var ea_x2 = ea_x_or[i] + Math.floor(Math.cos(ea_rot2 * Math.PI / 180) * (5 * 32)) - 24;913 var ea_y2 = ea_y_or[i] + Math.floor(Math.sin(ea_rot2 * Math.PI / 180) * (5 * 32)) + 32;914 ap.setYukaPosition(ea_yuka1[i], ea_x[i], ea_y[i]);915 ap.setYukaPosition(ea_yuka2[i], ea_x2, ea_y2);916 //os_g.drawLine(ea_x_or[i]+16 - view_x, ea_y_or[i]+16 - view_y,ea_x[i] - view_x, ea_y[i] - view_y);917 break;918 case 1111: // 円を描くように移動する2つの床 左919 ea_rot[i] += ea_ang[i];920 var ea_rot2 = ea_rot[i] + 180 + ea_ang[i];921 ea_x[i] = ea_x_or[i] + Math.floor(Math.sin(ea_rot[i] * Math.PI / 180) * (5 * 32)) - 24;922 ea_y[i] = ea_y_or[i] + Math.floor(Math.cos(ea_rot[i] * Math.PI / 180) * (5 * 32)) + 32;923 var ea_x2 = ea_x_or[i] + Math.floor(Math.sin(ea_rot2 * Math.PI / 180) * (5 * 32)) - 24;924 var ea_y2 = ea_y_or[i] + Math.floor(Math.cos(ea_rot2 * Math.PI / 180) * (5 * 32)) + 32;925 ap.setYukaPosition(ea_yuka1[i], ea_x[i], ea_y[i]);926 ap.setYukaPosition(ea_yuka2[i], ea_x2, ea_y2);927 //os_g.drawLine(ea_x_or[i]+16 - view_x, ea_y_or[i]+16 - view_y,ea_x[i] - view_x, ea_y[i] - view_y);928 break;929 case 1112: // 円を描くように移動する4つの床 右930 ea_rot[i] += ea_ang[i];931 var ea_rot2 = ea_rot[i] + 90 + ea_ang[i];932 var ea_rot3 = ea_rot[i] + 180 + ea_ang[i];933 var ea_rot4 = ea_rot[i] + 270 + ea_ang[i];934 ea_x[i] = ea_x_or[i] + Math.floor(Math.cos(ea_rot[i] * Math.PI / 180) * (5 * 32)) - 24;935 ea_y[i] = ea_y_or[i] + Math.floor(Math.sin(ea_rot[i] * Math.PI / 180) * (5 * 32)) + 32;936 var ea_x2 = ea_x_or[i] + Math.floor(Math.cos(ea_rot2 * Math.PI / 180) * (5 * 32)) - 24;937 var ea_y2 = ea_y_or[i] + Math.floor(Math.sin(ea_rot2 * Math.PI / 180) * (5 * 32)) + 32;938 var ea_x3 = ea_x_or[i] + Math.floor(Math.cos(ea_rot3 * Math.PI / 180) * (5 * 32)) - 24;939 var ea_y3 = ea_y_or[i] + Math.floor(Math.sin(ea_rot3 * Math.PI / 180) * (5 * 32)) + 32;940 var ea_x4 = ea_x_or[i] + Math.floor(Math.cos(ea_rot4 * Math.PI / 180) * (5 * 32)) - 24;941 var ea_y4 = ea_y_or[i] + Math.floor(Math.sin(ea_rot4 * Math.PI / 180) * (5 * 32)) + 32;942 ap.setYukaPosition(ea_yuka1[i], ea_x[i], ea_y[i]);943 ap.setYukaPosition(ea_yuka2[i], ea_x2, ea_y2);944 ap.setYukaPosition(ea_yuka3[i], ea_x3, ea_y3);945 ap.setYukaPosition(ea_yuka4[i], ea_x4, ea_y4);946 //os_g.drawLine(ea_x_or[i]+16 - view_x, ea_y_or[i]+16 - view_y,ea_x[i] - view_x, ea_y[i] - view_y);947 break;948 case 1113: // 円を描くように移動する4つの床 左949 ea_rot[i] += ea_ang[i];950 var ea_rot2 = ea_rot[i] + 90 + ea_ang[i];951 var ea_rot3 = ea_rot[i] + 180 + ea_ang[i];952 var ea_rot4 = ea_rot[i] + 270 + ea_ang[i];953 ea_x[i] = ea_x_or[i] + Math.floor(Math.sin(ea_rot[i] * Math.PI / 180) * (5 * 32)) - 24;954 ea_y[i] = ea_y_or[i] + Math.floor(Math.cos(ea_rot[i] * Math.PI / 180) * (5 * 32)) + 32;955 var ea_x2 = ea_x_or[i] + Math.floor(Math.sin(ea_rot2 * Math.PI / 180) * (5 * 32)) - 24;956 var ea_y2 = ea_y_or[i] + Math.floor(Math.cos(ea_rot2 * Math.PI / 180) * (5 * 32)) + 32;957 var ea_x3 = ea_x_or[i] + Math.floor(Math.sin(ea_rot3 * Math.PI / 180) * (5 * 32)) - 24;958 var ea_y3 = ea_y_or[i] + Math.floor(Math.cos(ea_rot3 * Math.PI / 180) * (5 * 32)) + 32;959 var ea_x4 = ea_x_or[i] + Math.floor(Math.sin(ea_rot4 * Math.PI / 180) * (5 * 32)) - 24;960 var ea_y4 = ea_y_or[i] + Math.floor(Math.cos(ea_rot4 * Math.PI / 180) * (5 * 32)) + 32;961 ap.setYukaPosition(ea_yuka1[i], ea_x[i], ea_y[i]);962 ap.setYukaPosition(ea_yuka2[i], ea_x2, ea_y2);963 ap.setYukaPosition(ea_yuka3[i], ea_x3, ea_y3);964 ap.setYukaPosition(ea_yuka4[i], ea_x4, ea_y4);965 //os_g.drawLine(ea_x_or[i]+16 - view_x, ea_y_or[i]+16 - view_y,ea_x[i] - view_x, ea_y[i] - view_y);966 break;967 case 1150: // コウモリ ぶら下がっている968 ea_c2[i] = 0;969 // 画面外970 if (ea_x[i] - view_x < -31 || ea_x[i] - view_x > 519 ||971 ea_y[i] - view_y < -31 || ea_y[i] - view_y > 319) {972 ea_pt[i] = 0;973 break;974 }975 ea_ptr[i] = 0;976 ea_pt[i] = 147;977 ea_pt2[i] = komori_simg[0];978 //近くに寄ったら目がさめる979 if (my_x >= ea_x[i] - 4 * 32 && my_x <= ea_x[i] && my_y > ea_y[i] && my_y < ea_y[i] + 128) {980 ea_con[i] = 1151;981 ea_vx[i] = 2;982 }983 // 自分との当たり判定984 if (my_x + 31 >= ea_x[i] + 4 && my_x <= ea_x[i] + 31 - 4 &&985 my_y + 31 >= ea_y[i] + 8 && my_y <= ea_y[i] + 31) {986 if (ap.getMyVY() > 10 || my_fumi_f == true) {987 // 自分が降下中988 // 踏み潰す989 ea_con[i] = 500;990 ea_pt[i] = 149;991 ea_pt2[i] = komori_simg[5 + ea_ptr[i]];992 ea_c1[i] = 0;993 my_fumi_f = true;994 // 自分995 ap.setMyPress(1);996 ap.setMyYReal(ea_y[i] - 12);997 } else {998 // 自分 死亡999 ap.setMyMiss(2);1000 }1001 }1002 break;1003 case 1151: // コウモリ 移動1004 vx = ea_vx[i]; //速度1005 if (vx < 0) {1006 ea_x[i] += vx;1007 if (ea_x[i] <= ea_x_or[i] - 9 * 32) {1008 ea_x[i] = ea_x_or[i] - 9 * 32;1009 ea_vx[i] = 2;1010 ea_ptr[i] = 1;1011 }1012 } else if (vx > 0) {1013 ea_x[i] += vx;1014 if (ea_x[i] == ea_x_or[i]) {1015 ea_vx[i] = 0;1016 ea_c2[i] = 1;1017 } else if (ea_x[i] > ea_x_or[i]) {1018 ea_x[i] = ea_x_or[i];1019 ea_vx[i] = -2;1020 ea_ptr[i] = 0;1021 }1022 }1023 vy = ea_vy[i]; // 速度1024 if (ea_y[i] < ea_y_or[i] + 6 || ea_y[i] > ea_y_or[i] + 96 - 6) {1025 // 減速1026 vy /= 2;1027 }1028 if (vy < 0) {1029 ea_y[i] += vy;1030 if (ea_y[i] == ea_y_or[i] && ea_c2[i] == 1) {1031 ea_con[i] = 1150;1032 } else if (ea_y[i] <= ea_y_or[i]) {1033 ea_y[i] = ea_y_or[i];1034 ea_vy[i] = 6;1035 }1036 } else if (vy > 0) {1037 ea_y[i] += vy;1038 if (ea_y[i] >= ea_y_or[i] + 96) {1039 ea_y[i] = ea_y_or[i] + 96;1040 ea_vy[i] = -6;1041 }1042 }1043 if (ea_x[i] - view_x < -31 || ea_x[i] - view_x > 519 ||1044 ea_y[i] - view_y < -31 || ea_y[i] - view_y > 319) {1045 ea_pt[i] = 0;1046 break;1047 }1048 // パターン1049 if (ac_4 <= 1) {1050 ea_pt[i] = 147;1051 ea_pt2[i] = komori_simg[1 + ea_ptr[i] * 2];1052 } else {1053 ea_pt[i] = 148;1054 ea_pt2[i] = komori_simg[2 + ea_ptr[i] * 2];1055 }1056 // 自分との当たり判定1057 if (my_x + 31 >= ea_x[i] + 4 && my_x <= ea_x[i] + 31 - 4 &&1058 my_y + 31 >= ea_y[i] + 8 && my_y <= ea_y[i] + 31) {1059 if (ap.getMyVY() > 10 || my_fumi_f == true) {1060 // 自分が降下中1061 // 踏み潰す1062 ea_con[i] = 500;1063 ea_pt[i] = 149;1064 ea_pt2[i] = komori_simg[5 + ea_ptr[i]];1065 ea_c1[i] = 0;1066 my_fumi_f = true;1067 // 自分1068 ap.setMyPress(1);1069 ap.setMyYReal(ea_y[i] - 12);1070 } else {1071 // 自分 死亡1072 ap.setMyMiss(2);1073 }1074 }1075 break;1076 // フライングアイテムボックス 固定1077 case 1160:1078 if (my_x >= ea_x[i] - 15 && my_x + 15 <= ea_x[i] + 31 &&1079 my_y > ea_y[i] && my_y <= ea_y[i] + 31) {1080 ea_y[i] = ea_y[i] - 32;1081 ea_con[i] = 1170 + ea_c1[i];1082 ap.setYukaPattern(ea_yuka1[i], 41, 0);1083 ap.playSound(14);1084 break;1085 }1086 // 移動1087 vy = ea_vy[i]; // 速度1088 if (ea_y[i] < ea_y_or[i] - 128 + 8 || ea_y[i] > ea_y_or[i] - 8) {1089 // 減速1090 vy /= 2;1091 }1092 if (vy < 0) {1093 ea_y[i] += vy;1094 if (ea_y[i] <= ea_y_or[i] - 128) {1095 ea_y[i] = ea_y_or[i] - 128;1096 ea_vy[i] = 4;1097 }1098 } else {1099 ea_y[i] += vy;1100 if (ea_y[i] >= ea_y_or[i]) {1101 ea_y[i] = ea_y_or[i];1102 ea_vy[i] = -4;1103 }1104 }1105 ap.setYukaPosition(ea_yuka1[i], ea_x[i], ea_y[i]);1106 if (ea_x[i] + 32 - view_x < -31 || ea_x[i] + 32 - view_x > 519 ||1107 ea_y[i] - view_y < -31 || ea_y[i] - view_y > 319) {1108 ea_pt[i] = 0;1109 break;1110 }1111 // パターン1112 if (ac_4 <= 1) {1113 os_g.drawImage(wing_simg[0], ea_x[i] - 32 - view_x, ea_y[i] - view_y);1114 os_g.drawImage(wing_simg[2], ea_x[i] + 32 - view_x, ea_y[i] - view_y);1115 } else {1116 os_g.drawImage(wing_simg[1], ea_x[i] - 32 - view_x, ea_y[i] - view_y);1117 os_g.drawImage(wing_simg[3], ea_x[i] + 32 - view_x, ea_y[i] - view_y);1118 }1119 /*1120 if (my_x >= ea_x[i]-16 && my_x+16 <= ea_x[i]+31 &&1121 my_y > ea_y[i] && my_y-4 <= ea_y[i]+31 && vy < 0) {1122 console.log("now");1123 ea_con[i] = 1161;1124 }1125 else if (my_x >= ea_x[i]-16 && my_x+16 <= ea_x[i]+31 &&1126 my_y > ea_y[i] && my_y <= ea_y[i]+31 && vy > 0) {1127 console.log("now2");1128 ea_con[i] = 1161;1129 }1130 */1131 break;1132 // フライングアイテムボックス 右移動1133 case 1161:1134 if (my_x >= ea_x[i] - 15 && my_x + 15 <= ea_x[i] + 31 &&1135 my_y > ea_y[i] && my_y <= ea_y[i] + 31) {1136 ea_y[i] = ea_y[i] - 32;1137 ea_con[i] = 1170 + ea_c1[i];1138 ap.setYukaPattern(ea_yuka1[i], 41, 0);1139 ap.playSound(14);1140 break;1141 }1142 // 移動1143 vy = ea_vy[i]; // 速度1144 if (ea_y[i] < ea_y_or[i] - 128 + 8 || ea_y[i] > ea_y_or[i] - 8) {1145 // 減速1146 vy /= 2;1147 }1148 if (vy < 0) {1149 ea_y[i] += vy;1150 if (ea_y[i] <= ea_y_or[i] - 128) {1151 ea_y[i] = ea_y_or[i] - 128;1152 ea_vy[i] = 4;1153 }1154 } else {1155 ea_y[i] += vy;1156 if (ea_y[i] >= ea_y_or[i]) {1157 ea_y[i] = ea_y_or[i];1158 ea_vy[i] = -4;1159 }1160 }1161 ea_x[i] += ea_vx[i];1162 ap.setYukaPosition(ea_yuka1[i], ea_x[i], ea_y[i]);1163 if (ea_x[i] - view_x < -31 || ea_x[i] - 32 - view_x > 519 ||1164 ea_y[i] - view_y < -31 || ea_y[i] - view_y > 319) {1165 ea_pt[i] = 0;1166 break;1167 }1168 // パターン1169 if (ac_4 <= 1) {1170 os_g.drawImage(wing_simg[0], ea_x[i] - 34 - view_x, ea_y[i] - ea_vy[i] - view_y);1171 os_g.drawImage(wing_simg[2], ea_x[i] + 30 - view_x, ea_y[i] - ea_vy[i] - view_y);1172 } else {1173 os_g.drawImage(wing_simg[1], ea_x[i] - 34 - view_x, ea_y[i] - ea_vy[i] - view_y);1174 os_g.drawImage(wing_simg[3], ea_x[i] + 30 - view_x, ea_y[i] - ea_vy[i] - view_y);1175 }1176 break;1177 // フライングアイテムボックス 左移動1178 case 1162:1179 if (my_x >= ea_x[i] - 15 && my_x + 15 <= ea_x[i] + 31 &&1180 my_y > ea_y[i] && my_y <= ea_y[i] + 31) {1181 ea_y[i] = ea_y[i] - 32;1182 ea_con[i] = 1170 + ea_c1[i];1183 ap.setYukaPattern(ea_yuka1[i], 41, 0);1184 ap.playSound(14);1185 break;1186 }1187 // 移動1188 vy = ea_vy[i]; // 速度1189 if (ea_y[i] < ea_y_or[i] - 128 + 8 || ea_y[i] > ea_y_or[i] - 8) {1190 // 減速1191 vy /= 2;1192 }1193 if (vy < 0) {1194 ea_y[i] += vy;1195 if (ea_y[i] <= ea_y_or[i] - 128) {1196 ea_y[i] = ea_y_or[i] - 128;1197 ea_vy[i] = 4;1198 }1199 } else {1200 ea_y[i] += vy;1201 if (ea_y[i] >= ea_y_or[i]) {1202 ea_y[i] = ea_y_or[i];1203 ea_vy[i] = -4;1204 }1205 }1206 ea_x[i] -= ea_vx[i];1207 if (ea_x[i] + 31 <= 1) {1208 ea_con[i] = 0;1209 }1210 ap.setYukaPosition(ea_yuka1[i], ea_x[i], ea_y[i]);1211 if (ea_x[i] + 31 - view_x < -31 || ea_x[i] - view_x > 519 ||1212 ea_y[i] - view_y < -31 || ea_y[i] - view_y > 319) {1213 ea_pt[i] = 0;1214 break;1215 }1216 // パターン1217 if (ac_4 <= 1) {1218 os_g.drawImage(wing_simg[0], ea_x[i] - 30 - view_x, ea_y[i] - ea_vy[i] - view_y);1219 os_g.drawImage(wing_simg[2], ea_x[i] + 34 - view_x, ea_y[i] - ea_vy[i] - view_y);1220 } else {1221 os_g.drawImage(wing_simg[1], ea_x[i] - 30 - view_x, ea_y[i] - ea_vy[i] - view_y);1222 os_g.drawImage(wing_simg[3], ea_x[i] + 34 - view_x, ea_y[i] - ea_vy[i] - view_y);1223 }1224 break;1225 // フライングアイテムボックス 壁反転1226 case 1163:1227 if (my_x >= ea_x[i] - 15 && my_x + 15 <= ea_x[i] + 31 &&1228 my_y > ea_y[i] && my_y <= ea_y[i] + 31) {1229 ea_y[i] = ea_y[i] - 32;1230 ea_con[i] = 1170 + ea_c1[i];1231 ap.setYukaPattern(ea_yuka1[i], 41, 0);1232 ap.playSound(14);1233 break;1234 }1235 // 移動1236 vy = ea_vy[i]; // 速度1237 if (ea_y[i] < ea_y_or[i] - 128 + 8 || ea_y[i] > ea_y_or[i] - 8) {1238 // 減速1239 vy /= 2;1240 }1241 if (vy < 0) {1242 ea_y[i] += vy;1243 if (ea_y[i] <= ea_y_or[i] - 128) {1244 ea_y[i] = ea_y_or[i] - 128;1245 ea_vy[i] = 4;1246 }1247 } else {1248 ea_y[i] += vy;1249 if (ea_y[i] >= ea_y_or[i]) {1250 ea_y[i] = ea_y_or[i];1251 ea_vy[i] = -4;1252 }1253 }1254 ea_x[i] += ea_vx[i];1255 if (ea_vx[i] < 0) {1256 vx = ap.getMapchip(Math.floor(ea_x[i] / 32) - 1, Math.floor(ea_y[i] / 32) - 10);1257 if (vx >= 18 || vx < 0) {1258 ea_x[i] = Math.floor(ea_x[i] / 32) * 32 + 32;1259 ea_vx[i] = 2;1260 }1261 } else {1262 vx = ap.getMapchip(Math.floor((ea_x[i] + 31) / 32) - 1, Math.floor(ea_y[i] / 32) - 10);1263 if (vx >= 18 || vx < 0) {1264 ea_x[i] = Math.floor((ea_x[i] + 31) / 32) * 32 - 32;1265 ea_vx[i] = -2;1266 }1267 }1268 ap.setYukaPosition(ea_yuka1[i], ea_x[i], ea_y[i]);1269 if (ea_x[i] + 31 - view_x < -31 || ea_x[i] - view_x > 519 ||1270 ea_y[i] - view_y < -31 || ea_y[i] - view_y > 319) {1271 ea_pt[i] = 0;1272 break;1273 }1274 // パターン1275 if (ac_4 <= 1) {1276 os_g.drawImage(wing_simg[0], ea_x[i] - 32 - ea_vx[i] - view_x, ea_y[i] - ea_vy[i] - view_y);1277 os_g.drawImage(wing_simg[2], ea_x[i] + 32 - ea_vx[i] - view_x, ea_y[i] - ea_vy[i] - view_y);1278 } else {1279 os_g.drawImage(wing_simg[1], ea_x[i] - 32 - ea_vx[i] - view_x, ea_y[i] - ea_vy[i] - view_y);1280 os_g.drawImage(wing_simg[3], ea_x[i] + 32 - ea_vx[i] - view_x, ea_y[i] - ea_vy[i] - view_y);1281 }1282 break;1283 //>>1up1284 case 1170:1285 if (ea_x[i] - view_x < -31 || ea_x[i] - view_x > 519 ||1286 ea_y[i] - view_y < -31 || ea_y[i] - view_y > 319) {1287 ea_pt[i] = 0;1288 break;1289 }1290 // 自分との当たり判定1291 if (my_x + 15 >= ea_x[i] && my_x + 15 <= ea_x[i] + 31 &&1292 my_y + 15 >= ea_y[i] && my_y + 15 <= ea_y[i] + 31) {1293 ea_con[i] = 0;1294 ap.addScore(5);1295 ap.setMyLeft(ap.getMyLeft() + 1);1296 ap.playSound(8);1297 }1298 ap.drawPattern(ea_x[i] - view_x, ea_y[i] - view_y, 59, 0);1299 break;1300 // >>コイン1301 case 1171:1302 if (ea_x[i] - view_x < -31 || ea_x[i] - view_x > 519 ||1303 ea_y[i] - view_y < -31 || ea_y[i] - view_y > 319) {1304 ea_pt[i] = 0;1305 break;1306 }1307 // 自分との当たり判定1308 if (my_x + 15 >= ea_x[i] && my_x + 15 <= ea_x[i] + 31 &&1309 my_y + 15 >= ea_y[i] && my_y + 15 <= ea_y[i] + 31) {1310 ea_con[i] = 0;1311 ap.addScore(5);1312 ap.playSound(7);1313 }1314 ea_c2[i] = 90 + Math.floor(ac_8 / 2);1315 ap.drawPattern(ea_x[i] - view_x, ea_y[i] - view_y, ea_c2[i], 0);1316 break;1317 //>>ファイアボール1318 case 1172:1319 if (ea_x[i] - view_x < -31 || ea_x[i] - view_x > 519 ||1320 ea_y[i] - view_y < -31 || ea_y[i] - view_y > 319) {1321 ea_pt[i] = 0;1322 break;1323 }1324 // 自分との当たり判定1325 if (my_x + 15 >= ea_x[i] && my_x + 15 <= ea_x[i] + 31 &&1326 my_y + 15 >= ea_y[i] && my_y + 15 <= ea_y[i] + 31) {1327 ea_con[i] = 0;1328 ap.addScore(5);1329 ap.equipFire(1);1330 ap.playSound(8);1331 }1332 ap.drawPattern(ea_x[i] - view_x, ea_y[i] - view_y, 42, 0);1333 break;1334 //>>バリア1335 case 1173:1336 if (ea_x[i] - view_x < -31 || ea_x[i] - view_x > 519 ||1337 ea_y[i] - view_y < -31 || ea_y[i] - view_y > 319) {1338 ea_pt[i] = 0;1339 break;1340 }1341 // 自分との当たり判定1342 if (my_x + 15 >= ea_x[i] && my_x + 15 <= ea_x[i] + 31 &&1343 my_y + 15 >= ea_y[i] && my_y + 15 <= ea_y[i] + 31) {1344 ea_con[i] = 0;1345 ap.addScore(5);1346 ap.equipBarrier(150);1347 ap.playSound(8);1348 }1349 ap.drawPattern(ea_x[i] - view_x, ea_y[i] - view_y, 43, 0);1350 break;1351 //>>タイム1352 case 1174:1353 if (ea_x[i] - view_x < -31 || ea_x[i] - view_x > 519 ||1354 ea_y[i] - view_y < -31 || ea_y[i] - view_y > 319) {1355 ea_pt[i] = 0;1356 break;1357 }1358 // 自分との当たり判定1359 if (my_x + 15 >= ea_x[i] && my_x + 15 <= ea_x[i] + 31 &&1360 my_y + 15 >= ea_y[i] && my_y + 15 <= ea_y[i] + 31) {1361 ea_con[i] = 0;1362 ap.addScore(5);1363 ap.setTimeLimit(ap.getTimeLimit() + 30);1364 ap.playSound(8);1365 }1366 ap.drawPattern(ea_x[i] - view_x, ea_y[i] - view_y, 44, 0);1367 break;1368 //>>ジェット1369 case 1175:1370 if (ea_x[i] - view_x < -31 || ea_x[i] - view_x > 519 ||1371 ea_y[i] - view_y < -31 || ea_y[i] - view_y > 319) {1372 ea_pt[i] = 0;1373 break;1374 }1375 // 自分との当たり判定1376 if (my_x + 15 >= ea_x[i] && my_x + 15 <= ea_x[i] + 31 &&1377 my_y + 15 >= ea_y[i] && my_y + 15 <= ea_y[i] + 31) {1378 ea_con[i] = 0;1379 ap.addScore(5);1380 ap.equipJet(80);1381 ap.playSound(8);1382 }1383 ap.drawPattern(ea_x[i] - view_x, ea_y[i] - view_y, 45, 0);1384 break;1385 //>>ヘルメット1386 case 1176:1387 if (ea_x[i] - view_x < -31 || ea_x[i] - view_x > 519 ||1388 ea_y[i] - view_y < -31 || ea_y[i] - view_y > 319) {1389 ea_pt[i] = 0;1390 break;1391 }1392 // 自分との当たり判定1393 if (my_x + 15 >= ea_x[i] && my_x + 15 <= ea_x[i] + 31 &&1394 my_y + 15 >= ea_y[i] && my_y + 15 <= ea_y[i] + 31) {1395 ea_con[i] = 0;1396 ap.addScore(5);1397 ap.addMyTokugi(1);1398 ap.playSound(8);1399 }1400 ap.drawPattern(ea_x[i] - view_x, ea_y[i] - view_y, 46, 0);1401 break;1402 //>>しっぽ1403 case 1177:1404 if (ea_x[i] - view_x < -31 || ea_x[i] - view_x > 519 ||1405 ea_y[i] - view_y < -31 || ea_y[i] - view_y > 319) {1406 ea_pt[i] = 0;1407 break;1408 }1409 // 自分との当たり判定1410 if (my_x + 15 >= ea_x[i] && my_x + 15 <= ea_x[i] + 31 &&1411 my_y + 15 >= ea_y[i] && my_y + 15 <= ea_y[i] + 31) {1412 ea_con[i] = 0;1413 ap.addScore(5);1414 ap.equipTail(1);1415 ap.playSound(8);1416 }1417 ap.drawPattern(ea_x[i] - view_x, ea_y[i] - view_y, 47, 0);1418 break;1419 //>>ドリル1420 case 1178:1421 if (ea_x[i] - view_x < -31 || ea_x[i] - view_x > 519 ||1422 ea_y[i] - view_y < -31 || ea_y[i] - view_y > 319) {1423 ea_pt[i] = 0;1424 break;1425 }1426 // 自分との当たり判定1427 if (my_x + 15 >= ea_x[i] && my_x + 15 <= ea_x[i] + 31 &&1428 my_y + 15 >= ea_y[i] && my_y + 15 <= ea_y[i] + 31) {1429 ea_con[i] = 0;1430 ap.addScore(5);1431 ap.addMyTokugi(2);1432 ap.playSound(8);1433 }1434 ap.drawPattern(ea_x[i] - view_x, ea_y[i] - view_y, 48, 0);1435 break;1436 //>>グレネード1437 case 1179:1438 if (ea_x[i] - view_x < -31 || ea_x[i] - view_x > 519 ||1439 ea_y[i] - view_y < -31 || ea_y[i] - view_y > 319) {1440 ea_pt[i] = 0;1441 break;1442 }1443 // 自分との当たり判定1444 if (my_x + 15 >= ea_x[i] && my_x + 15 <= ea_x[i] + 31 &&1445 my_y + 15 >= ea_y[i] && my_y + 15 <= ea_y[i] + 31) {1446 ea_con[i] = 0;1447 ap.addScore(5);1448 ap.equipGrenade(1);1449 ap.playSound(8);1450 }1451 ap.drawPattern(ea_x[i] - view_x, ea_y[i] - view_y, 49, 0);1452 break;1453 }1454 }1455 }1456 // 拡張仕掛け 描画1457 function drawExtendAth(os_g, ap, view_x, view_y) {1458 for (var i = 0; i <= ea_id_max; i++) {1459 if (ea_con[i] == 0 || ea_pt[i] == 0) continue;1460 ap.setOffscreenColor(255, 0, 0, 255);1461 if (ea_type[i] == 0) {1462 // パターン画像から表示1463 ap.drawPattern(ea_x[i] - view_x, ea_y[i] - view_y, ea_pt[i], ea_ptr[i]);1464 } else if (ea_type[i] == 1) {1465 // 拡張パターン画像から表示1466 os_g.drawImage(ea_pt2[i], ea_x[i] - view_x, ea_y[i] - view_y);1467 } else if (ea_type[i] == 2) {1468 // パターン画像から長方形で表示(2*1)1469 }1470 }1471 }1472 // スターリング着地1473 function mmy_Str(ap) {1474 if (mmy_str_yc == 1) {1475 if (rgc == 1) {1476 ap.setMyWait(2, 109, 0);1477 ap.playSound(9);1478 mmy_str_yc = 0;1479 }1480 }1481 }1482 // スピン攻撃1483 function mmy_Spin(ap) {1484 key = ap.getKeyCode();1485 myX = ap.getMyX();1486 myY = ap.getMyY();1487 myYr = ap.getMyYReal();1488 myXr = ap.getMyXReal();1489 // Xキーが押された1490 if (key == 88 && !mmySpin_spinFlag) {1491 if (mmy_str_c == 0) {1492 mmySpin_spinFlag = 1;1493 }1494 }1495 if (mmySpin_spinFlag) {1496 if (mmySpin_spinFlag == 1) {1497 ap.playSound(12);1498 }1499 // 左右の敵を倒す1500 ap.destroyEnemy(myXr + 20, myYr, 20, 20);1501 ap.destroyEnemy(myXr - 20, myYr, 20, 20);1502 // アニメーション1503 if (agc == 0) {1504 ap.setMyObjectImage(mmySpin_simg[mmySpin_spinFlag - 1], 0, 0);1505 } else {1506 ap.setMyObjectImage(mmySpin_simg[mmySpin_spinFlag + 3], 0, 0);1507 }1508 mmySpin_spinFlag++;1509 // アニメーションリセット1510 if (mmySpin_spinFlag > 5) {1511 mmySpin_spinFlag = 0;1512 ap.setMyObjectImage(null, 0, 0);1513 ap.resetKeyCode();1514 }1515 }1516 }1517 // HP1518 function mmy_Hp(os_g, ap) {1519 // HPを取得1520 var nowhp = ap.getMyHP();1521 var HPc = mmyHp_setHP - nowhp;1522 // 残り1523 for (i = 1; i < nowhp + 1; i++) {1524 os_g.drawImage(mmyHp_simg[0], 32 * i, 32);1525 }1526 // 減った分1527 for (i = 1; i < HPc + 1; i++) {1528 os_g.drawImage(mmyHp_simg[1], 32 * (i + nowhp), 32);1529 }1530 }1531 // 反重力 スイッチ1532 // trueでオン1533 function mmy_AG(ap, bl) {1534 if (bl == true && agc == 0) {1535 agc = 1;1536 mmyAg_def = false;1537 ap.setYukaType(agy1, 1);1538 } else if (bl == false && agc != 0) {1539 agc = 0;1540 ap.setYukaType(agy1, 2);1541 ap.setMyObjectImage(null, 0, 0);1542 }1543 mmyAg_pressed = false;1544 ap.setEnemyPress(bl ? 2 : 1);1545 }1546 // 反重力 動作1547 function mmy_AntiGravity(os_g, ap) {1548 j_count++;1549 // agcカウンタについて1550 // 0 - 通常重力1551 // 1 - 反重力(空中時)1552 // 2 - 上地面にいるとき1553 // 3 - ジャンプした時1554 // 使用メソッドの宣言1555 key = ap.getKeyCode();1556 var ag_h = ap.getMapchip(myX, myY - 1);1557 var ag_l = ap.getMapchip(myX - 1, myY);1558 var ag_r = ap.getMapchip(myX + 1, myY);1559 getp = ap.getMyObjectPattern();1560 myX = ap.getMyX();1561 myY = ap.getMyY();1562 myYr = ap.getMyYReal();1563 myXr = ap.getMyXReal();1564 rgc = ap.isRideGround();1565 muki = ap.getMyDirection();1566 gmoc = ap.getMyObjectCondition();1567 if (gmoc >= 200) {1568 ap.setMyObjectImage(null, 0, 0);1569 mmy_AG(ap, false);1570 }1571 // デバッグ用、Aキーで反重力モード1572 /*1573 if (key == 65) {1574 if (agc == 0) {1575 agc = 1;1576 ap.setYukaType(agy1, 1);1577 ap.resetKeyCode();1578 } else {1579 agc = 0;1580 ap.setYukaType(agy1, 2);1581 ap.setMyObjectImage(null, 0, 0);1582 ap.resetKeyCode();1583 }1584 }1585 */1586 //ジャンプした時1587 if (agc == 3) {1588 //スピン中は描画しない1589 if (mmySpin_spinFlag == 0) {1590 if (muki == 0) {1591 ap.setMyObjectImage(ag_imgL[1], 0, 0);1592 }1593 if (muki == 1) {1594 ap.setMyObjectImage(ag_imgR[1], 0, 0);1595 }1596 }1597 ap.setYukaPosition(agy1, myX * 32 + 32, (myY + 10) * 32 + 35, myX * 32 + 64, (myY + 10) * 32 + 35);1598 ap.setYukaType(agy1, 2);1599 ap.setMyVY(160);1600 ap.resetKeyCode();1601 if (j_count == 6) {1602 ap.setYukaType(agy1, 1);1603 agc = 1;1604 ap.resetKeyCode();1605 }1606 }1607 // 空中にいる時1608 if (agc == 1) {1609 ap.resetKeyCode();1610 ap.setMyVY(-165);1611 // 反重力踏み1612 if (ap.destroyEnemy(myXr + ap.getMyVX() / 10, myYr - 16, 32, 16)) {1613 agc = 4;1614 j_count = 0;1615 mmyAg_pressed = true;1616 mmyAg_preVX = ap.getMyVX();1617 }1618 if (ag_h == 20 || ag_h == 21 || ag_h == 22 || ag_h == 23 || ag_h == 24 || ag_h == 25 || ag_h == 26 || ag_h == 27 || ag_h == 28 || ag_h == 29 || ag_h == 31 || ag_h == 40 || ag_h == 41 || ag_h == 50 || ag_h == 60 || ag_h == 61 || ag_h == 62 || ag_h == 63 || ag_h == 64 || ag_h == 65 || ag_h == 66 || ag_h == 67 || ag_h == 69 || ag_h == 180 || ag_h == 181 || ag_h == 182 || ag_h == 183 || ag_h == 184 || ag_h == 185 || ag_h == 190 || ag_h == 191 || ag_h == 192 || ag_h == 193 || ag_h == 194 || ag_h == 195) {1619 agc = 2;1620 } else {1621 ap.setMyYReal(myYr - 1);1622 }1623 if (myYr < 288) {1624 ap.setMyObjectPattern(0);1625 ap.setMyMiss(3);1626 }1627 }1628 // 踏みつけている時1629 if (agc == 4) {1630 if (j_count > 3) {1631 ap.setMyVX(mmyAg_preVX);1632 agc = 3;1633 j_count = 0;1634 } else {1635 ap.setMyWait(1, 0, muki);1636 }1637 }1638 if (agc != 2 && mmyAg_pressed) {1639 if (muki == 0) {1640 ap.setMyObjectImage(ag_imgL[9], 0, 0);1641 }1642 if (muki == 1) {1643 ap.setMyObjectImage(ag_imgR[9], 0, 0);1644 }1645 }1646 //地面に張り付いた時1647 if (agc == 2) {1648 mmyAg_pressed = false;1649 if (key == 32 || key == 90) {1650 j_count = 0;1651 ap.resetKeyCode();1652 agc = 3;1653 }1654 // 頭上に地面があるか1655 if (ag_l == 20 || ag_l == 21 || ag_l == 22 || ag_l == 23 || ag_l == 24 || ag_l == 25 || ag_l == 26 || ag_l == 27 || ag_l == 28 || ag_l == 29 || ag_l == 31 || ag_l == 40 || ag_l == 41 || ag_l == 50 || ag_l == 60 || ag_l == 61 || ag_l == 62 || ag_l == 63 || ag_l == 64 || ag_l == 65 || ag_l == 66 || ag_l == 67 || ag_l == 69 || ag_l == 180 || ag_l == 181 || ag_l == 182 || ag_l == 183 || ag_l == 184 || ag_l == 185 || ag_l == 190 || ag_l == 191 || ag_l == 192 || ag_l == 193 || ag_l == 194 || ag_l == 195) {1656 ap.setYukaPosition(agy1, myX * 32 + 32, (myY + 10) * 32 + 32, myX * 32 + 63, (myY + 10) * 32 + 32);1657 } else if (ag_r == 20 || ag_r == 21 || ag_r == 22 || ag_r == 23 || ag_r == 24 || ag_r == 25 || ag_r == 26 || ag_r == 27 || ag_r == 28 || ag_r == 29 || ag_r == 31 || ag_r == 40 || ag_r == 41 || ag_r == 50 || ag_r == 60 || ag_r == 61 || ag_r == 62 || ag_r == 63 || ag_r == 64 || ag_r == 65 || ag_r == 66 || ag_r == 67 || ag_r == 69 || ag_r == 180 || ag_r == 181 || ag_r == 182 || ag_r == 183 || ag_r == 184 || ag_r == 185 || ag_r == 190 || ag_r == 191 || ag_r == 192 || ag_r == 193 || ag_r == 194 || ag_r == 195) {1658 ap.setYukaPosition(agy1, myX * 32 + 33, (myY + 10) * 32 + 32, myX * 32 + 64, (myY + 10) * 32 + 32);1659 } else {1660 ap.setYukaPosition(agy1, myX * 32 + 33, (myY + 10) * 32 + 32, myX * 32 + 63, (myY + 10) * 32 + 32);1661 }1662 if (mmySpin_spinFlag == 0) {1663 // 主人公のイメージセット1664 switch (getp) {1665 case 100:1666 if (muki == 0) {1667 ap.setMyObjectImage(ag_imgL[0], 0, 0);1668 }1669 if (muki == 1) {1670 ap.setMyObjectImage(ag_imgR[0], 0, 0);1671 }1672 break;1673 case 101:1674 if (muki == 0) {1675 ap.setMyObjectImage(ag_imgL[1], 0, 0);1676 }1677 if (muki == 1) {1678 ap.setMyObjectImage(ag_imgR[1], 0, 0);1679 }1680 break;1681 case 102:1682 if (muki == 0) {1683 ap.setMyObjectImage(ag_imgL[2], 0, 0);1684 }1685 if (muki == 1) {1686 ap.setMyObjectImage(ag_imgR[2], 0, 0);1687 }1688 break;1689 case 103:1690 if (muki == 0) {1691 ap.setMyObjectImage(ag_imgL[3], 0, 0);1692 }1693 if (muki == 1) {1694 ap.setMyObjectImage(ag_imgR[3], 0, 0);1695 }1696 break;1697 case 104:1698 if (muki == 0) {1699 ap.setMyObjectImage(ag_imgL[4], 0, 0);1700 }1701 if (muki == 1) {1702 ap.setMyObjectImage(ag_imgR[4], 0, 0);1703 }1704 break;1705 case 105:1706 if (muki == 0) {1707 ap.setMyObjectImage(ag_imgL[5], 0, 0);1708 }1709 if (muki == 1) {1710 ap.setMyObjectImage(ag_imgR[5], 0, 0);1711 }1712 break;1713 case 106:1714 if (muki == 0) {1715 ap.setMyObjectImage(ag_imgL[6], 0, 0);1716 }1717 if (muki == 1) {1718 ap.setMyObjectImage(ag_imgR[6], 0, 0);1719 }1720 break;1721 case 107:1722 if (muki == 0) {1723 ap.setMyObjectImage(ag_imgL[7], 0, 0);1724 }1725 if (muki == 1) {1726 ap.setMyObjectImage(ag_imgR[7], 0, 0);1727 }1728 break;1729 case 108:1730 if (muki == 0) {1731 ap.setMyObjectImage(ag_imgL[8], 0, 0);1732 }1733 if (muki == 1) {1734 ap.setMyObjectImage(ag_imgR[8], 0, 0);1735 }1736 break;1737 case 109:1738 if (muki == 0) {1739 ap.setMyObjectImage(ag_imgL[9], 0, 0);1740 }1741 if (muki == 1) {1742 ap.setMyObjectImage(ag_imgR[9], 0, 0);1743 }1744 break;1745 }1746 }1747 if (ag_h == 0) {1748 agc = 1;1749 }1750 }1751 }1752 // 公開メソッド1753 return {1754 setPluginManager: function(pm) {1755 // プラグインマネージャーをセット1756 plugin_manager = pm;1757 // 拡張仕掛けを使う1758 plugin_manager.setExtendAthleticEnable(true);1759 // 起動時に呼び出す関数1760 plugin_manager.addEventListener("onload", mmyScripts.onLoadEvent);1761 },1762 onLoadEvent: function(os_g, ap) {1763 // 起動1764 // 起動時の初期化1765 initLoad(ap);1766 },1767 gameStartEvent: function(os_g, ap, stage) {1768 // ゲーム開始1769 initGameStart(ap);1770 },1771 putAthleticEvent: function(code, chip_x, chip_y, ap) {1772 // 拡張仕掛け設置1773 // ピクセル座標1774 var px = (chip_x + 1) * 32;1775 var py = (chip_y + 10) * 32;1776 // 拡張敵を設置する1777 setExtendAth(code, px, py, ap);1778 },1779 gameEvent: function(os_g, ap, view_x, view_y) {1780 // ゲーム中1781 myX = ap.getMyX();1782 myY = ap.getMyY();1783 ac_4++;1784 if (ac_4 > 3) ac_4 = 0;1785 ac_8++;1786 if (ac_8 > 7) ac_8 = 0;1787 // 拡張仕掛け 動作1788 moveExtendAth(os_g, ap, view_x, view_y);1789 // 拡張仕掛け 描画1790 drawExtendAth(os_g, ap, view_x, view_y);1791 // スピン攻撃1792 if (mmySpin_spinUse == true) {1793 //mmy_Spin(ap);1794 }1795 // HP1796 if (mmyHp_hpUse == true) {1797 mmy_Hp(os_g, ap);1798 }1799 mmy_AntiGravity(os_g, ap);1800 if (mmyAg_def == true) {1801 mmy_AG(ap, true);1802 }1803 mmy_Str(ap);1804 }1805 };...

Full Screen

Full Screen

combineReaderS.ts

Source:combineReaderS.ts Github

copy

Full Screen

1import { WriterS, ReaderS } from './index';2export interface CombineReaderS {3 <E, A, R>(a: ReaderS<E, A>, project: (a: A) => WriterS<R>): ReaderS<E, R>;4 <EA, A, EB, B, R>(a: ReaderS<EA, A>, b: ReaderS<EB, B>, project: (a: A, b: B) => WriterS<R>): ReaderS<EA & EB, R>;5 <EA, A, EB, B, EC, C, R>(6 a: ReaderS<EA, A>,7 b: ReaderS<EB, B>,8 C: ReaderS<EC, C>,9 project: (a: A, b: B, c: C) => WriterS<R>,10 ): ReaderS<EA & EB & EC, R>;11 <EA, A, EB, B, EC, C, ED, D, R>(12 a: ReaderS<EA, A>,13 b: ReaderS<EB, B>,14 c: ReaderS<EC, C>,15 d: ReaderS<ED, D>,16 project: (a: A, b: B, c: C, d: D) => WriterS<R>,17 ): ReaderS<EA & EB & EC & ED, R>;18 <EA, A, EB, B, EC, C, ED, D, EE, E, R>(19 a: ReaderS<EA, A>,20 b: ReaderS<EB, B>,21 c: ReaderS<EC, C>,22 d: ReaderS<ED, D>,23 e: ReaderS<EE, E>,24 project: (a: A, b: B, c: C, d: D, e: E) => WriterS<R>,25 ): ReaderS<EA & EB & EC & ED & EE, R>;26 <EA, A, EB, B, EC, C, ED, D, EE, E, R>(27 a: ReaderS<EA, A>,28 b: ReaderS<EB, B>,29 c: ReaderS<EC, C>,30 d: ReaderS<ED, D>,31 e: ReaderS<EE, E>,32 project: (a: A, b: B, c: C, d: D, e: E) => WriterS<R>,33 ): ReaderS<EA & EB & EC & ED & EE, R>;34 <EA, A, EB, B, EC, C, ED, D, EE, E, EG, G, R>(35 a: ReaderS<EA, A>,36 b: ReaderS<EB, B>,37 c: ReaderS<EC, C>,38 d: ReaderS<ED, D>,39 e: ReaderS<EE, E>,40 g: ReaderS<EG, G>,41 project: (a: A, b: B, c: C, d: D, e: E, g: G) => WriterS<R>,42 ): ReaderS<EA & EB & EC & ED & EE & EG, R>;43 <EA, A, EB, B, EC, C, ED, D, EE, E, EG, G, EH, H, R>(44 a: ReaderS<EA, A>,45 b: ReaderS<EB, B>,46 c: ReaderS<EC, C>,47 d: ReaderS<ED, D>,48 e: ReaderS<EE, E>,49 g: ReaderS<EG, G>,50 h: ReaderS<EH, H>,51 project: (a: A, b: B, c: C, d: D, e: E, g: G, h: H) => WriterS<R>,52 ): ReaderS<EA & EB & EC & ED & EE & EG & EH, R>;53 <EA, A, EB, B, EC, C, ED, D, EE, E, EG, G, EH, H, EI, I, R>(54 a: ReaderS<EA, A>,55 b: ReaderS<EB, B>,56 c: ReaderS<EC, C>,57 d: ReaderS<ED, D>,58 e: ReaderS<EE, E>,59 g: ReaderS<EG, G>,60 h: ReaderS<EH, H>,61 i: ReaderS<EI, I>,62 project: (a: A, b: B, c: C, d: D, e: E, g: G, h: H, i: I) => WriterS<R>,63 ): ReaderS<EA & EB & EC & ED & EE & EG & EH & EI, R>;64 <EA, A, EB, B, EC, C, ED, D, EE, E, EG, G, EH, H, EI, I, EJ, J, R>(65 a: ReaderS<EA, A>,66 b: ReaderS<EB, B>,67 c: ReaderS<EC, C>,68 d: ReaderS<ED, D>,69 e: ReaderS<EE, E>,70 g: ReaderS<EG, G>,71 h: ReaderS<EH, H>,72 i: ReaderS<EI, I>,73 j: ReaderS<EJ, J>,74 project: (a: A, b: B, c: C, d: D, e: E, g: G, h: H, i: I, j: J) => WriterS<R>,75 ): ReaderS<EA & EB & EC & ED & EE & EG & EH & EI & EJ, R>;76 <EA, A, EB, B, EC, C, ED, D, EE, E, EG, G, EH, H, EI, I, EJ, J, EK, K, R>(77 a: ReaderS<EA, A>,78 b: ReaderS<EB, B>,79 c: ReaderS<EC, C>,80 d: ReaderS<ED, D>,81 e: ReaderS<EE, E>,82 g: ReaderS<EG, G>,83 h: ReaderS<EH, H>,84 i: ReaderS<EI, I>,85 j: ReaderS<EJ, J>,86 k: ReaderS<EK, K>,87 project: (a: A, b: B, c: C, d: D, e: E, g: G, h: H, i: I, j: J, k: K) => WriterS<R>,88 ): ReaderS<EA & EB & EC & ED & EE & EG & EH & EI & EJ & EK, R>;89 <EA, A, EB, B, EC, C, ED, D, EE, E, EG, G, EH, H, EI, I, EJ, J, EK, K, EL, L, R>(90 a: ReaderS<EA, A>,91 b: ReaderS<EB, B>,92 c: ReaderS<EC, C>,93 d: ReaderS<ED, D>,94 e: ReaderS<EE, E>,95 g: ReaderS<EG, G>,96 h: ReaderS<EH, H>,97 i: ReaderS<EI, I>,98 j: ReaderS<EJ, J>,99 k: ReaderS<EK, K>,100 l: ReaderS<EL, L>,101 project: (a: A, b: B, c: C, d: D, e: E, g: G, h: H, i: I, j: J, k: K, l: L) => WriterS<R>,102 ): ReaderS<EA & EB & EC & ED & EE & EG & EH & EI & EJ & EK & EL, R>;...

Full Screen

Full Screen

easy.js

Source:easy.js Github

copy

Full Screen

1;(function($) {2 $('body').find('.sp-easy-accordion').each(function () {3 var accordion_id = $(this).attr('id');4 var _this = $(this);5 var ea_active = _this.data('ea-active');6 var ea_mode = _this.data('ea-mode');7 var preloader = _this.data('preloader'); 8 if (ea_mode === 'vertical') {9 if (ea_active === 'ea-click') {10 $("#" + accordion_id).each(function () {11 $("#" + accordion_id + " > .ea-card > .ea-header").on("click", function () {12 $("#" + accordion_id + " > .ea-card > .sp-collapse").on("hide.bs.spcollapse", function (e) {13 $(this).parent(".ea-card").removeClass("ea-expand");14 $(this).siblings(".ea-header").find(".ea-expand-icon").addClass('fa-plus').removeClass('fa-minus');15 e.stopPropagation();16 })17 $("#" + accordion_id + " > .ea-card > .sp-collapse").on("show.bs.spcollapse", function (e) {18 $(this).parent(".ea-card").addClass("ea-expand");19 $(this).siblings(".ea-header").find(".ea-expand-icon").addClass('fa-minus').removeClass('fa-plus');20 e.stopPropagation();21 })22 });23 });24 $("#" + accordion_id + " > .ea-card .ea-header a ").click(function (event) {25 event.preventDefault();26 });27 }28 if (ea_active === 'ea-hover') {29 $("#" + accordion_id + " > .ea-card").mouseover(function () {30 $(this).children(".sp-collapse").spcollapse("show");31 if( $('.sp-collapse.show').length > 1 ) {32 $(this).children(".sp-collapse").spcollapse("hide");33 }34 });35 $("#" + accordion_id + " > .ea-card > .sp-collapse").on("hide.bs.spcollapse", function (e) {36 $(this).parent(".ea-card").removeClass("ea-expand");37 $(this).siblings(".ea-header").find(".ea-expand-icon").addClass('fa-plus').removeClass('fa-minus');38 e.stopPropagation();39 })40 $("#" + accordion_id + " > .ea-card > .sp-collapse").on("show.bs.spcollapse", function (e) {41 $(this).parent(".ea-card").addClass("ea-expand");42 $(this).siblings(".ea-header").find(".ea-expand-icon").addClass('fa-minus').removeClass('fa-plus');43 e.stopPropagation();44 })45 };46 }47 var preloader_id = $('#' + accordion_id + ' .accordion-preloader').attr('id');48 if ( preloader_id ) {49 $(document).ready(function() {50 $('#' + preloader_id).animate({ opacity: 0, }, 500).remove();51 $('#' + accordion_id).find('.ea-card').animate({ opacity: 1 }, 500);52 });53 }54 if( $("#" + accordion_id + ' .wp-easy-accordion-iframe-container').length <= 1 ) {55 $("#" + accordion_id + ' iframe').addClass('wp-ea-iframe').wrap("<div class='wp-easy-accordion-iframe-container'></div>");56 }57 });...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptools = require('wptools');2var fs = require('fs');3var path = require('path');4var async = require('async');5var _ = require('lodash');6var request = require('request');7var cheerio = require('cheerio');8var mkdirp = require('mkdirp');9var entities = require("entities");10var sanitize = require("sanitize-filename");11var moment = require('moment');12wiki.get(function(err, resp) {13 console.log('pageid: ' + resp.pageid);14 console.log('title: ' + resp.title);15 console.log('categories: ' + resp.categories);16 console.log('coordinates: ' + resp.coordinates);17 console.log('disambiguation: ' + resp.disambiguation);18 console.log('extract: ' + resp.extract);19 console.log('extlinks: ' + resp.extlinks);20 console.log('images: ' + resp.images);21 console.log('infobox: ' + resp.infobox);22 console.log('langlinks: ' + resp.langlinks);23 console.log('links: ' + resp.links);24 console.log('pageid: ' + resp.pageid);25 console.log('redirects: ' + resp.redirects);26 console.log('sections: ' + resp.sections);27 console.log('type: ' + resp.type);28 console.log('url: ' + resp.url);29 console.log('wikibase: ' + resp.wikibase);30 console.log('wikidata: ' + resp.wikidata);31 console.log('wikitext: ' + resp.wikitext);32});33wiki.get_text(function(err, resp) {34 console.log('wikitext: ' + resp);35});36wiki.get_wikidata(function(err, resp) {37 console.log('wikidata: ' + resp);38});39wiki.get_categories(function(err, resp) {40 console.log('categories: ' + resp);41});42wiki.get_images(function(err, resp) {43 console.log('images: ' + resp);44});45wiki.get_langlinks(function(err, resp) {46 console.log('langlinks: ' + resp);47});48wiki.get_links(function(err, resp) {49 console.log('links: ' + resp);50});51wiki.get_sections(function(err, resp) {52 console.log('sections: ' + resp);53});54wiki.get_coordinates(function(err, resp) {55 console.log('coordinates: '

Full Screen

Using AI Code Generation

copy

Full Screen

1const wptoolkit = require('wptoolkit')2const toolkit = new wptoolkit()3 console.log(title)4})5 console.log(title)6})7 console.log(title)8})9 console.log(title)10})11 console.log(title)12})13 console.log(title)14})15 console.log(title)16})17 console.log(title)18})19 console.log(title)20})21 console.log(title)22})23 console.log(title)24})

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptool = require('wptool');2wp.get('page', 'Main_Page', function(err, data) {3 console.log(data);4});5wp.get('page', 'Main_Page', {rvprop: 'content'}, function(err, data) {6 console.log(data);7});8wp.get('page', 'Main_Page', {rvprop: 'content'}, true, function(err, data) {9 console.log(data);10});11wp.get('page', 'Main_Page', function(err, data) {12 console.log(data);13});14wp.get('page', 'Main_Page', {rvprop: 'content'}, function(err, data) {15 console.log(data);16});17wp.get('page', 'Main_Page', {rvprop: 'content'}, true, function(err, data) {18 console.log(data);19});20wp.get('page', 'Main_Page', function(err, data) {21 console.log(data);22});23wp.get('page', 'Main_Page', {rvprop: 'content'}, function(err, data) {24 console.log(data);25});26wp.get('page', 'Main_Page', {rvprop: 'content'}, true, function(err, data) {27 console.log(data);28});29wp.get('page', 'Main_Page', function(err, data) {30 console.log(data);31});32wp.get('page', 'Main_Page', {rvprop: 'content'}, function(err, data) {33 console.log(data);34});35wp.get('page', 'Main_Page', {rvprop: 'content'}, true, function(err, data) {36 console.log(data);37});38wp.get('page', 'Main_Page', function(err, data) {39 console.log(data);40});41wp.get('page', 'Main_Page', {rvprop: 'content'}, function(err, data) {42 console.log(data);43});44wp.get('page', 'Main_Page', {rvprop: 'content'}, true, function(err, data) {45 console.log(data);46});47wp.get('page', 'Main_Page', function(err, data) {48 console.log(data);49});50wp.get('page', 'Main_Page', {rvprop: 'content'}, function(err, data) {51 console.log(data);52});53wp.get('page', 'Main_Page', {rvprop: 'content'}, true, function(err, data) {54 console.log(data

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('webpagetest');2var wpt = new WebPageTest('www.webpagetest.org','A.6b1a6a1b1f0b9c3c0d3d8c2d2e2e0d0e');3var location = 'Dulles:Chrome';4var options = {5};6wpt.runTest(url, options, function(err, data) {7 if (err) return console.error(err);8 console.log('Test status:', data.statusText);9 console.log('Test ID:', data.data.testId);10});11wpt.getTestStatus('150626_7A_8C8', function(err, data) {12 if (err) return console.error(err);13 console.log('Test status:', data.statusText);14 console.log('Test ID:', data.data.testId);15});16wpt.getTestResults('150626_7A_8C8', function(err, data) {17 if (err) return console.error(err);18 console.log('Test status:', data.statusText);19 console.log('Test ID:', data.data.testId);20});21wpt.getLocations(function(err, data) {22 if (err) return console.error(err);23 console.log('Test status:', data.statusText);24 console.log('Test ID:', data.data.testId);25});26wpt.getLocations(function(err, data) {27 if (err) return console.error(err);28 console.log('Test status:', data.statusText);29 console.log('Test ID:', data.data.testId);30});31wpt.getTesters(function(err, data) {32 if (err) return console.error(err);33 console.log('Test status:', data.statusText);34 console.log('Test ID:', data.data.testId);35});36wpt.getTesters(function(err, data) {37 if (err) return console.error(err);38 console.log('Test status:', data.statusText);39 console.log('Test ID:', data.data.testId);40});41wpt.getTesters(function(err, data) {42 if (err) return console.error(err);43 console.log('Test status:', data.statusText);44 console.log('Test ID:', data.data.testId);45});

Full Screen

Using AI Code Generation

copy

Full Screen

1const WebPageTest = require('webpagetest');2const wpt = new WebPageTest('www.webpagetest.org', 'A.1f6b0c9c9b9d9f7c5d0f5a7c8a1e2b1a');3const options = {4};5wpt.runTest(url, options, (err, data) => {6 if (err) {7 console.log('Error: ', err);8 } else {9 console.log('Data: ', data);10 }11});

Full Screen

Using AI Code Generation

copy

Full Screen

1const wpt = require('webpagetest');2const client = wpt('A.5e8f5a5c5d5ef5a5e8f5a5e8f5a5e8f5');3}, function(err, data) {4 if (err) return console.error(err);5 console.log(data);6});

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('webpagetest');2var options = {3 },4 wpt = new wpt(options);5var location = 'Dulles:Chrome';6var runs = 1;7var firstViewOnly = true;8var pollResults = 5;9var video = true;10var connectivity = 'Cable';11var mobile = 0;12var label = 'Test Label';13var private = false;

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run wpt automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful