
	let obj;
	let mauvaise1 = "script\DanMUku\Image\mauvaiseFin1.png";
	let mauvaise2 = "script\DanMUku\Image\mauvaiseFin2.png";
	let mauvaise3 = "script\DanMUku\Image\mauvaiseFin3.png";
	let num = 0;


	task MauvaiseFin() {
		LoadGraphic(mauvaise1);
		LoadGraphic(mauvaise2);
		LoadGraphic(mauvaise3);
          obj = Obj_Create(OBJ_EFFECT);
          Obj_SetX(obj, 0);
          Obj_SetY(obj, 0);

	  ObjEffect_SetLayer(obj, 8);

          ObjEffect_SetTexture(obj, mauvaise1);

          ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLESTRIP);

          ObjEffect_CreateVertex(obj, 4);

          ObjEffect_SetVertexXY(obj, 0, 0, 0);
          ObjEffect_SetVertexUV(obj, 0, 0, 0);

          ObjEffect_SetVertexXY(obj, 1, 640, 0);
          ObjEffect_SetVertexUV(obj, 1, 800, 0);

          ObjEffect_SetVertexXY(obj, 2, 0, 480);
          ObjEffect_SetVertexUV(obj, 2, 0, 600);

          ObjEffect_SetVertexXY(obj, 3, 640, 480);
          ObjEffect_SetVertexUV(obj, 3, 800, 600);


	  loop {
		ForbidBomb(true);
		if (GetKeyState(VK_SHOT)==KEY_PUSH) {
			num++;
			if (num<3) {
				ObjEffect_SetTexture(obj, [mauvaise1, mauvaise2, mauvaise3][num]);
			}
			else {
				Clear;
			}
		}
		yield;
	  }

	}

