#pragma mapfile "utils/v4.anmm"

entry {
    path: "ending/e00a.png",
    img_width: 512,
    img_height: 480,
    img_format: FORMAT_RGB_565,
    memory_priority: 0,
    sprites: {sprite0: {x: 0.0, y: 0.0, w: 512.0, h: 480.0}},
}


script -78 script0 {
    scriptNew(script2);
    scriptNew(script3);
+60: // 60
    stop();

interrupt[1]:
+60: // 120
    delete();
}


script -77 script1 {
    scriptNew(script4);
    scriptNew(script5);
+60: // 60
    stop();

interrupt[1]:
+60: // 120
    delete();
}


script -76 script2 {
    sprite(sprite0);
    anchor(1, 1);
    layer(22);
    pos(0.0, 0.0, 0.0);
    alpha(0);
    alphaTime(20, 0, 255);
+60: // 60
    stop();

interrupt[1]:
    alphaTime(60, 0, 0);
+60: // 120
    delete();
}


entry {
    path: "ending/e00a.png",
    img_width: 128,
    img_height: 480,
    img_format: FORMAT_RGB_565,
    offset_x: 512,
    memory_priority: 0,
    sprites: {sprite1: {x: 0.0, y: 0.0, w: 128.0, h: 480.0}},
}


script -75 script3 {
    sprite(sprite1);
    anchor(1, 1);
    layer(22);
    pos(512.0, 0.0, 0.0);
    alpha(0);
    alphaTime(20, 0, 255);
+60: // 60
    stop();

interrupt[1]:
    alphaTime(60, 0, 0);
+60: // 120
    delete();
}


entry {
    path: "ending/e02b.png",
    img_width: 512,
    img_height: 480,
    img_format: FORMAT_RGB_565,
    memory_priority: 0,
    sprites: {sprite2: {x: 0.0, y: 0.0, w: 512.0, h: 480.0}},
}


script -74 script4 {
    sprite(sprite2);
    anchor(1, 1);
    layer(22);
    pos(0.0, 0.0, 0.0);
    alpha(0);
    alphaTime(20, 0, 255);
+60: // 60
    stop();

interrupt[1]:
    alphaTime(60, 0, 0);
+60: // 120
    delete();
}


entry {
    path: "ending/e02b.png",
    img_width: 128,
    img_height: 480,
    img_format: FORMAT_RGB_565,
    offset_x: 512,
    memory_priority: 0,
    sprites: {sprite3: {x: 0.0, y: 0.0, w: 128.0, h: 480.0}},
}


script -73 script5 {
    sprite(sprite3);
    anchor(1, 1);
    layer(22);
    pos(512.0, 0.0, 0.0);
    alpha(0);
    alphaTime(20, 0, 255);
+60: // 60
    stop();

interrupt[1]:
    alphaTime(60, 0, 0);
+60: // 120
    delete();
}
