S22Saenke-Slagskibe_Main/battleship_game_board/target_missed.pde
void target_missed(){
  if (a1==2) {
    //          eksempel jeg snakker om i linje 125;          PImage splash=loadImage("splash.png");
    splash.resize(130, 0);
    image(splash, 75, 230);
  }
  //A2 splash
  if (a2==2) {
    //          eksempel jeg snakker om i linje 125;          PImage splash=loadImage("splash.png");
    splash.resize(130, 0);
    image(splash, 80, 230+(75*1));
  }
  //A3 splash
  if (a3==2) {
    //          eksempel jeg snakker om i linje 125;          PImage splash=loadImage("splash.png");            ...osv
    splash.resize(130, 0);
    image(splash, 80, 230+(75*2));
  }
  //A4 splash
  if (a4==2) {

    splash.resize(130, 0);
    image(splash, 80, 230+(75*3));
  }
  //A5 splash
  if (a5==2) {

    splash.resize(130, 0);
    image(splash, 80, 230+(75*4));
  }
  //A6 splash
  if (a6==2) {
    splash.resize(130, 0);
    image(splash, 80, 230+(75*5));
  }
  //A7 splash
  if (a7==2) {
    splash.resize(130, 0);
    image(splash, 80, 230+(75*6));
  }
  //A8 splash
  if (a8==2) {
    splash.resize(130, 0);
    image(splash, 80, 230+(75*7));
  }
  //A9 splash
  if (a9==2) {
    splash.resize(130, 0);
    image(splash, 80, 230+(75*8));
  }
  //A10 splash
  if (a10==2) {
    splash.resize(130, 0);
    image(splash, 80, 230+(75*9));
  }
  /////////////////////////////////////////////////////////////    B SPLASH IMAGES   //////////////////////////////////////////////////////////////////////
  //B1 splash
  if (b1==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*1), 230);
  }
  //B2 splash
  if (b2==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*1), 230+(75*1));
  }
  //B3 splash
  if (b3==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*1), 230+(75*2));
  }
  //B4 splash
  if (b4==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*1), 230+(75*3));
  }
  //B5 splash
  if (b5==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*1), 230+(75*4));
  }
  //B6 splash
  if (b6==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*1), 230+(75*5));
  }
  //B7 splash
  if (b7==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*1), 230+(75*6));
  }
  //B8 splash
  if (b8==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*1), 230+(75*7));
  }
  //B9 splash
  if (b9==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*1), 230+(75*8));
  }
  //B10 splash
  if (b10==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*1), 230+(75*9));
  }
  /////////////////////////////////////////////////////////////    C SPLASH IMAGES   //////////////////////////////////////////////////////////////////////
  //C1 splash
  if (c1==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*2), 230);
  }
  //C2 splash
  if (c2==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*2), 230+(75*1));
  }
  //C3 splash
  if (c3==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*2), 230+(75*2));
  }
  //C4 splash
  if (c4==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*2), 230+(75*3));
  }
  //C5 splash
  if (c5==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*2), 230+(75*4));
  }
  //C6 splash
  if (c6==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*2), 230+(75*5));
  }
  //C7 splash
  if (c7==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*2), 230+(75*6));
  }
  //C8 splash
  if (c8==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*2), 230+(75*7));
  }
  //C9 splash
  if (c9==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*2), 230+(75*8));
  }
  //C10 splash
  if (c10==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*2), 230+(75*9));
  }
  /////////////////////////////////////////////////////////////    D SPLASH IMAGES   //////////////////////////////////////////////////////////////////////
  //B1 splash
  if (d1==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*3), 230);
  }
  //D2 splash
  if (d2==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*3), 230+(75*1));
  }
  //D3 splash
  if (d3==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*3), 230+(75*2));
  }
  //D4 splash
  if (d4==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*3), 230+(75*3));
  }
  //D5 splash
  if (d5==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*3), 230+(75*4));
  }
  //D6 splash
  if (d6==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*3), 230+(75*5));
  }
  //D7 splash
  if (d7==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*3), 230+(75*6));
  }
  //D8 splash
  if (d8==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*3), 230+(75*7));
  }
  //D9 splash
  if (d9==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*3), 230+(75*8));
  }
  //D10 splash
  if (d10==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*3), 230+(75*9));
  }
  /////////////////////////////////////////////////////////////    E SPLASH IMAGES   //////////////////////////////////////////////////////////////////////
  //E1 splash
  if (e1==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*4), 230);
  }
  //E2 splash
  if (e2==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*4), 230+(75*1));
  }
  //E3 splash
  if (e3==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*4), 230+(75*2));
  }
  //E4 splash
  if (e4==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*4), 230+(75*3));
  }
  //E5 splash
  if (e5==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*4), 230+(75*4));
  }
  //E6 splash
  if (e6==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*4), 230+(75*5));
  }
  //E7 splash
  if (e7==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*4), 230+(75*6));
  }
  //E8 splash
  if (e8==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*4), 230+(75*7));
  }
  //E9 splash
  if (e9==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*4), 230+(75*8));
  }
  //E10 splash
  if (e10==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*4), 230+(75*9));
  }
  /////////////////////////////////////////////////////////////    F SPLASH IMAGES   //////////////////////////////////////////////////////////////////////
  //F1 splash
  if (f1==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*5), 230);
  }
  //F2 splash
  if (f2==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*5), 230+(75*1));
  }
  //F3 splash
  if (f3==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*5), 230+(75*2));
  }
  //F4 splash
  if (f4==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*5), 230+(75*3));
  }
  //F5 splash
  if (f5==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*5), 230+(75*4));
  }
  //F6 splash
  if (f6==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*5), 230+(75*5));
  }
  //F7 splash
  if (f7==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*5), 230+(75*6));
  }
  //F8 splash
  if (f8==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*5), 230+(75*7));
  }
  //F9 splash
  if (f9==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*5), 230+(75*8));
  }
  //F10 splash
  if (f10==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*5), 230+(75*9));
  }
  /////////////////////////////////////////////////////////////    G SPLASH IMAGES   //////////////////////////////////////////////////////////////////////
  //G1 splash
  if (g1==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*6), 230);
  }
  //G2 splash
  if (g2==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*6), 230+(75*1));
  }
  //G3 splash
  if (g3==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*6), 230+(75*2));
  }
  //G4 splash
  if (g4==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*6), 230+(75*3));
  }
  //G5 splash
  if (g5==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*6), 230+(75*4));
  }
  //G6 splash
  if (g6==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*6), 230+(75*5));
  }
  //G7 splash
  if (g7==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*6), 230+(75*6));
  }
  //G8 splash
  if (g8==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*6), 230+(75*7));
  }
  //G9 splash
  if (g9==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*6), 230+(75*8));
  }
  //G10 splash
  if (g10==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*6), 230+(75*9));
  }
  /////////////////////////////////////////////////////////////    H SPLASH IMAGES   //////////////////////////////////////////////////////////////////////
  //H1 splash
  if (h1==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*7), 230);
  }
  //H2 splash
  if (h2==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*7), 230+(75*1));
  }
  //H3 splash
  if (h3==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*7), 230+(75*2));
  }
  //H4 splash
  if (h4==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*7), 230+(75*3));
  }
  //H5 splash
  if (h5==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*7), 230+(75*4));
  }
  //H6 splash
  if (h6==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*7), 230+(75*5));
  }
  //H7 splash
  if (h7==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*7), 230+(75*6));
  }
  //H8 splash
  if (h8==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*7), 230+(75*7));
  }
  //H9 splash
  if (h9==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*7), 230+(75*8));
  }
  //H10 splash
  if (h10==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*7), 230+(75*9));
  }
  /////////////////////////////////////////////////////////////    I SPLASH IMAGES   //////////////////////////////////////////////////////////////////////
  //I1 splash
  if (i1==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*8), 230);
  }
  //I2 splash
  if (i2==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*8), 230+(75*1));
  }
  //I3 splash
  if (i3==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*8), 230+(75*2));
  }
  //I4 splash
  if (i4==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*8), 230+(75*3));
  }
  //I5 splash
  if (i5==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*8), 230+(75*4));
  }
  //I6 splash
  if (i6==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*8), 230+(75*5));
  }
  //I7 splash
  if (i7==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*8), 230+(75*6));
  }
  //I8 splash
  if (i8==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*8), 230+(75*7));
  }
  //I9 splash
  if (i9==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*8), 230+(75*8));
  }
  //I10 splash
  if (i10==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*8), 230+(75*9));
  }
  /////////////////////////////////////////////////////////////    J SPLASH IMAGES   //////////////////////////////////////////////////////////////////////
  //J1 splash
  if (j1==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*9), 230);
  }
  //J2 splash
  if (j2==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*9), 230+(75*1));
  }
  //J3 splash
  if (j3==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*9), 230+(75*2));
  }
  //J4 splash
  if (j4==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*9), 230+(75*3));
  }
  //J5 splash
  if (j5==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*9), 230+(75*4));
  }
  //J6 splash
  if (j6==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*9), 230+(75*5));
  }
  //J7 splash
  if (j7==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*9), 230+(75*6));
  }
  //J8 splash
  if (j8==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*9), 230+(75*7));
  }
  //J9 splash
  if (j9==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*9), 230+(75*8));
  }
  //J10 splash
  if (j10==2) {
    splash.resize(130, 0);
    image(splash, 80+(75*9), 230+(75*9));
  }
  for(int i = 0; i < 10; i++){
    for(int j = 0; j < 10; j++){
      if (boardm [i][j] == 2){
        splash.resize(130, 0);
        image(splash, 1030+(75*j), 230+(75*i));
      }
    }
  }
}
