home *** CD-ROM | disk | FTP | other *** search
/ Internet 1996 World Exposition / park.org.s3.amazonaws.com.7z / park.org.s3.amazonaws.com / Japan / NTT / DM- / hotjava / classes / src / Opening.java < prev    next >
Encoding:
Java Source  |  2017-09-21  |  25.1 KB  |  895 lines

  1. import browser.*;
  2. import browser.audio.*;
  3. import awt.*;
  4. import net.www.html.*;
  5. import java.io.*;
  6. import net.www.*;
  7. import java.util.*;
  8.  
  9. // Animation Data Type
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17. // AnimationData ID
  18.  
  19.  
  20. // Animation Depth for no image (i.e. sound only data)
  21.  
  22.  
  23.  
  24.  
  25. // │╪╜¼┤█,╦▄┤█,╩╕▓╜┤█ñ╬URL    // (!!!)dummy
  26.  
  27.  
  28.  
  29.  
  30.  
  31. // AnimationData ID: "0" is reserved for 0
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48. // TimeArea value
  49.  
  50.  
  51.  
  52.  
  53. // Animation Data Depth
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85. class Opening extends AnimationPlayer implements Runnable {
  86.  
  87. static String    backgroundFile[] = null;
  88. int        timeArea = -1;
  89.  
  90. // static data
  91.  
  92. static int sound_frame[] = {-1,-1};
  93. static int dummy_frame[] = {-1,-1};
  94. static String imgdir = "images";
  95. static String snddir = "audio";
  96.  
  97. // ==================================================
  98. // Animation data for DayTime
  99. // ==================================================
  100. static int yane_d_frame[] = {0,-1};
  101. static int yane_d_x[] = {171,0};
  102. static int yane_d_y[] = {34,0};
  103. static int map_d_frame[] = {0,1,2,3};
  104. static int map_d_x[] = {170,177,183,199};
  105. static int map_d_y[] = {140,137,115,89};
  106. static int kumo_d_frame[] = {0,1,2,3,4,5,6,7,8,-1};            //1+8+1
  107. static int kumo_d_x[] = {297,297,298,295,295,295,293,288,287,0};    //1+8+1
  108. static int kumo_d_y[] = {25,25,26,26,27,27,28,32,37,0};            //1+8+1
  109. static int dog_d_frame[] = {-1,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,1,    // 1+20
  110.         8,7,6,6,6,5,4,3,                    // 8
  111.         9,10,9,10,9,10,9,10,9,10,9,10,9,10,9,10,9,10,9,10,9,10,9, //23
  112.         -1};
  113. static int dog_d_x[] = {0,                        //1
  114.         434,428,420,414,406,400,392,386,378,372,
  115.         363,357,349,343,335,329,321,315,307,300,        //20
  116.         299,298,300,300,300,301,299,299,            // 8
  117.         300,307,312,319,324,331,337,344,349,356,    
  118.         361,368,373,380,385,392,397,405,410,417,
  119.         422,429,434,0};                        //23+1
  120. static int dog_d_y[] = {0,                        //1
  121.         160,159,160,158,159,158,159,158,158,157,
  122.         158,157,157,156,157,156,157,155,156,156,        //20
  123.         155,156,156,156,156,156,156,156,            //8
  124.         157,156,157,156,158,157,158,157,158,157,
  125.         158,158,159,158,159,158,159,158,159,159,
  126.         160,159,160,0};                        //23+1
  127. static int dog_d_time[] = {10000,125,125,125,125,125,125,125,125,125,125,
  128.         125,125,125,125,125,125,125,125,125,125,    // 1+19
  129.         300,300,300,300,300,300,300,300,        //8
  130.         125,125,125,125,125,125,125,125,125,125,
  131.         125,125,125,125,125,125,125,125,125,125,
  132.         125,125,125};                    // 23
  133. static int fish_d_frame[] = {-1,1,2,3,4,5,-1};    
  134. static int fish_d_x[] = {0,303,298,296,293,290,0};
  135. static int fish_d_y[] = {0,191,184,183,180,187,0};
  136. static int kaede_d_frame[] = {0,1,2,3,4,5,4,3,2,1,2,3,4,5,4,3,2,-1};
  137. static int kaede_d_x[] = {307,302,299,296,295,307,295,296,299,    // 1+8
  138.                   302,299,296,295,307,295,296,299,0};//8+1
  139. static int kaede_d_y[] = {144,146,148,145,147,148,147,145,148,    // 1+8
  140.                   146,148,145,147,148,147,145,148,0}; // 8+1
  141.  
  142. static int kouyo_d_frame[] = {-1,1,2,3,4,3,2,1,2,3,4,3,2,1,-1};    //1+13+1
  143. static int kouyo_d_x[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
  144. static int kouyo_d_y[] = {0,53,53,53,53,53,53,53,53,53,53,53,53,53,0}; //1+13+1
  145. static int man_d_frame[] = {-1,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,    //1+20
  146.               1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,    //20
  147.               3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,    //20
  148.               3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,    //20
  149.               3,4,3,4,3,-1};
  150. static int man_d_x[] = {0,                    //1
  151.         156,154,152,149,146,143,141,138,135,133,    //40
  152.         130,127,124,122,119,116,114,111,108,105,
  153.         103,100,97,94,92,89,86,84,81,78,
  154.         75,73,70,67,65,62,59,56,53,50,
  155.         188,191,194,198,202,206,209,213,217,221,    //45+1
  156.         224,228,232,235,239,243,247,250,254,258,
  157.         262,265,269,273,276,280,284,288,291,295,
  158.         299,303,306,310,314,317,321,325,329,332,
  159.         336,340,344,347,352,0};
  160. static int man_d_y[] = {0,                    // 1
  161.         120,120,119,119,119,118,118,118,117,117,    // 40
  162.         117,116,116,116,115,115,115,114,114,114,
  163.         113,113,113,112,112,112,111,111,111,110,
  164.         110,110,109,109,109,108,108,108,107,107,
  165.         119,119,119,119,119,119,119,119,119,119,    // 45+1
  166.         119,118,118,118,118,118,118,118,118,118,
  167.         118,118,117,117,117,117,117,117,117,117,
  168.         117,117,117,116,116,116,116,116,116,116,
  169.         116,116,116,116,116,0};
  170. static int tombo_d_frame[] = {-1,1,2,3,4,5,6,7,8,9,10,11,-1};    //1+11+1
  171. static int tombo_d_x[] = {0,194,181,164,153,136,135,135,106,76,50,13,0};
  172. static int tombo_d_y[] = {0,269,240,225,210,200,191,190,178,180,182,188,0};
  173. static int tori_d_frame[] = {-1,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,
  174.         1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,
  175.         1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,-1};
  176. static int tori_d_x[] = {0,403,396,389,382,374,369,362,356,349,
  177.         343,336,328,322,314,308,302,296,288,
  178.         283,276,268,262,254,248,242,236,228,
  179.         223,216,208,202,194,188,181,176,168,
  180.         162,156,148,141,134,128,121,116,108,
  181.         102,96,88,81,74,68,61,55,48, 42,35,28,21,13,8,1,0};
  182. static int tori_d_y[] = {0,18,20,21,20,19,20,20,20,18,
  183.         18,20,21,20,19,20,20,20,18, 18,20,21,20,19,20,20,20,18,
  184.         18,20,21,20,19,20,20,20,18, 18,20,21,20,19,20,20,20,18,
  185.         18,20,21,20,19,20,20,20,18, 18,20,21,20,19,20,20,0};
  186.  
  187.  
  188.  
  189. // ==================================================
  190. // Animation data for Evening (!!!dummy data)
  191. // ==================================================
  192. static int yane_e_frame[] = {0,-1};
  193. static int yane_e_x[] = {171,0};
  194. static int yane_e_y[] = {34,0};
  195. static int map_e_frame[] = {0,1,2,3};
  196. static int map_e_x[] = {170,177,183,199};
  197. static int map_e_y[] = {140,137,115,89};
  198. static int kumo_e_frame[] = {0,1,2,3,4,5,6,7,8,-1};            //1+8+1
  199. static int kumo_e_x[] = {297,297,298,295,295,295,293,288,287,0};    //1+8+1
  200. static int kumo_e_y[] = {25,25,26,26,27,27,28,32,37,0};            //1+8+1
  201. static int dog_e_frame[] = {-1,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,1,    // 1+20
  202.         8,7,6,6,6,5,4,3,                    // 8
  203.         9,10,9,10,9,10,9,10,9,10,9,10,9,10,9,10,9,10,9,10,9,10,9, //23
  204.         -1};
  205. static int dog_e_x[] = {0,                        //1
  206.         434,428,420,414,406,400,392,386,378,372,
  207.         363,357,349,343,335,329,321,315,307,300,        //20
  208.         299,298,300,300,300,301,299,299,            // 8
  209.         300,307,312,319,324,331,337,344,349,356,    
  210.         361,368,373,380,385,392,397,405,410,417,
  211.         422,429,434,0};                        //23+1
  212. static int dog_e_y[] = {0,                        //1
  213.         160,159,160,158,159,158,159,158,158,157,
  214.         158,157,157,156,157,156,157,155,156,156,        //20
  215.         155,156,156,156,156,156,156,156,            //8
  216.         157,156,157,156,158,157,158,157,158,157,
  217.         158,158,159,158,159,158,159,158,159,159,
  218.         160,159,160,0};                        //23+1
  219. static int dog_e_time[] = {10000,125,125,125,125,125,125,125,125,125,125,
  220.         125,125,125,125,125,125,125,125,125,125,    // 1+19
  221.         300,300,300,300,300,300,300,300,        //8
  222.         125,125,125,125,125,125,125,125,125,125,
  223.         125,125,125,125,125,125,125,125,125,125,
  224.         125,125,125};                    // 23
  225. static int fish_e_frame[] = {-1,1,2,3,4,5,-1};    
  226. static int fish_e_x[] = {0,303,298,296,293,290,0};
  227. static int fish_e_y[] = {0,191,184,183,180,187,0};
  228. static int kaede_e_frame[] = {-1,1,2,3,4,5,4,3,2,1,2,3,4,5,4,3,2,-1};
  229. static int kaede_e_x[] = {0,307,302,299,296,295,296,299,302,    // 1+8
  230.             307,302,299,296,295,296,299,302,0};    // 8+1
  231. static int kaede_e_y[] = {0,144,146,148,145,147,145,148,146,    // 1+8
  232.             144,146,148,145,147,145,148,146,0};    // 8+1
  233.  
  234. static int kouyo_e_frame[] = {-1,1,2,3,4,3,2,1,2,3,4,3,2,1,-1};    //1+13+1
  235. static int kouyo_e_x[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
  236. static int kouyo_e_y[] = {0,53,53,53,53,53,53,53,53,53,53,53,53,53,0}; //1+13+1
  237. static int man_e_frame[] = {-1,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,    //1+20
  238.               1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,    //20
  239.               3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,    //20
  240.               3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,    //20
  241.               3,4,3,4,3,-1};
  242. static int man_e_x[] = {0,                    //1
  243.         156,154,152,149,146,143,141,138,135,133,    //40
  244.         130,127,124,122,119,116,114,111,108,105,
  245.         103,100,97,94,92,89,86,84,81,78,
  246.         75,73,70,67,65,62,59,56,53,50,
  247.         188,191,194,198,202,206,209,213,217,221,    //45+1
  248.         224,228,232,235,239,243,247,250,254,258,
  249.         262,265,269,273,276,280,284,288,291,295,
  250.         299,303,306,310,314,317,321,325,329,332,
  251.         336,340,344,347,352,0};
  252. static int man_e_y[] = {0,                    // 1
  253.         120,120,119,119,119,118,118,118,117,117,    // 40
  254.         117,116,116,116,115,115,115,114,114,114,
  255.         113,113,113,112,112,112,111,111,111,110,
  256.         110,110,109,109,109,108,108,108,107,107,
  257.         119,119,119,119,119,119,119,119,119,119,    // 45+1
  258.         119,118,118,118,118,118,118,118,118,118,
  259.         118,118,117,117,117,117,117,117,117,117,
  260.         117,117,117,116,116,116,116,116,116,116,
  261.         116,116,116,116,116,0};
  262. static int tombo_e_frame[] = {-1,1,2,3,4,5,6,7,8,9,10,11,-1};    //1+11+1 ?
  263. static int tombo_e_x[] = {0,194,181,164,153,136,135,135,106,76,50,13,0};
  264. static int tombo_e_y[] = {0,269,240,225,210,200,191,190,178,180,182,188,0};
  265. static int tori_e_frame[] = {-1,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,
  266.         1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,
  267.         1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,-1};
  268. static int tori_e_x[] = {0,403,396,389,382,374,369,362,356,349,
  269.         343,336,328,322,314,308,302,296,288,
  270.         283,276,268,262,254,248,242,236,228,
  271.         223,216,208,202,194,188,181,176,168,
  272.         162,156,148,141,134,128,121,116,108,
  273.         102,96,88,81,74,68,61,55,48, 42,35,28,21,13,8,1,0};
  274. static int tori_e_y[] = {0,18,20,21,20,19,20,20,20,18,
  275.         18,20,21,20,19,20,20,20,18, 18,20,21,20,19,20,20,20,18,
  276.         18,20,21,20,19,20,20,20,18, 18,20,21,20,19,20,20,20,18,
  277.         18,20,21,20,19,20,20,20,18, 18,20,21,20,19,20,20,0};
  278.  
  279.  
  280. // ==================================================
  281. // Animation data for Night (!!!dummy data)
  282. // ==================================================
  283. static int yane_n_frame[] = {0,-1};
  284. static int yane_n_x[] = {171,0};
  285. static int yane_n_y[] = {34,0};
  286. static int map_n_frame[] = {0,1,2,3};
  287. static int map_n_x[] = {170,177,183,199};
  288. static int map_n_y[] = {140,137,115,89};
  289. static int kumo_n_frame[] = {0,1,2,3,4,5,6,7,8,-1};            //1+8+1
  290. static int kumo_n_x[] = {297,297,298,295,295,295,293,288,287,0};    //1+8+1
  291. static int kumo_n_y[] = {25,25,26,26,27,27,28,32,37,0};            //1+8+1
  292. static int fish_n_frame[] = {-1,1,2,3,4,5,-1};    
  293. static int fish_n_x[] = {0,303,298,296,293,290,0};
  294. static int fish_n_y[] = {0,191,184,183,180,187,0};
  295.  
  296.  
  297.  
  298. static {
  299.     backgroundFile = new String[3];
  300.     String fname[] = {"dy","ev","nt"};
  301.     int i;
  302.     for (i = 0; i < 3; i++) {        // day, evening, night
  303.     backgroundFile[i] = imgdir + "/OP_" + fname[i] + "4.gif";
  304.     }
  305.  
  306.     // various animation data
  307. }
  308.  
  309. public void init() {
  310.     int h = (new GMTTime()).getHour(9);    // JST 9
  311.  
  312.     timeArea = 0;
  313.  
  314.     background = getImage(new URL(documentURL,backgroundFile[timeArea]));
  315.     width  = background.width;
  316.     height = background.height;
  317.     resize(width,height);
  318.  
  319.     maxAnimation = 100;
  320.     adList = new AnimationData[maxAnimation];
  321.     int i;
  322.     for (i=0; i < maxAnimation; i++) {
  323.     adList[i] = null;
  324.     }
  325.  
  326.     maxSchedular = 100;    
  327.     sched = new Schedular[maxSchedular];
  328.     for (i=0; i < maxSchedular; i++) {
  329.     sched[i] = null;
  330.     }
  331.     
  332.     dispobj = new IDChain();
  333.     im = createImage(width,height);
  334.     offscreen = new Graphics(im);
  335.  
  336.     initialize();
  337.     repaint();
  338. }
  339.  
  340. void initialize () {
  341.     // initialize 
  342.     if (!initialized) {
  343.     initialized = true;
  344.     Math.srandom(System.currentTime());
  345.     loadAnimationData();
  346.     setupDisplayObject();
  347.     adList[2].Reverse();
  348.     }
  349. }
  350.  
  351. void loadAnimationData() {
  352.     if (timeArea == 0) {
  353.     loadAnimationDataDay();
  354.     } else if (timeArea == 1) {
  355.     loadAnimationDataEvening();
  356.     } else if (timeArea == 1) {
  357.     loadAnimationDataNight();
  358.     }
  359. }
  360.  
  361. // Ñ¬í╝Ñ╫Ñ╦Ñ≤Ñ░í╓├δí╫ñ╬▒Θ╜╨
  362. // ╣╚═╒, ┤╟╚─, ╕ñ, ñ╚ñ≤ñ▄, ╡√, ñµñ∞ñδ╠┌, ┐═, ─╗, ▒└, (╗■╖╫)
  363. void loadAnimationDataDay() {
  364.     AnimationData ad;
  365.  
  366.     // ▓░║¼(└┼╗▀▓Φ, ─╗ñΦñΩñΓ╝Ω┴░ñ╦ñóñδ)
  367.     ad = new AnimationData(this,1,0,3,
  368.         imgdir+"/yane_d_",0,yane_d_frame,yane_d_x,yane_d_y);
  369.     adList[1] = ad;
  370.  
  371.     // ╣╚═╒(Ñ»ÑΩÑ├Ñ»)
  372.     ad = new AnimationData(this,8,2,5,
  373.         imgdir+"/kouyo_d_",4,kouyo_d_frame,kouyo_d_x,kouyo_d_y);
  374.     ad.setFrameTime(300);
  375.     adList[8] = ad;
  376.  
  377.     // ┤╟╚─(Ñ»ÑΩÑ├Ñ»)
  378.     ad = new AnimationData(this,2,4,6,
  379.         imgdir+"/map_d_",2,map_d_frame,map_d_x,map_d_y);
  380.     ad.setFrameTime(100);
  381.     adList[2] = ad;
  382.  
  383.     // ╕ñ(╝½╞░)
  384.     ad = new AnimationData(this,4,1,5,
  385.         imgdir+"/dog_d_",10,dog_d_frame,dog_d_x,dog_d_y);
  386.     ad.setFrameTime(dog_d_time,0,20000,30000,30000);
  387.     ad.setSound(snddir+"/Dog.au",28);
  388.     adList[4] = ad;
  389.  
  390.     // ñ╚ñ≤ñ▄(╝½╞░)
  391.     ad = new AnimationData(this,9,1,8,
  392.         imgdir+"/tombo_d_",12,tombo_d_frame,tombo_d_x,tombo_d_y);
  393.     ad.setFrameTime(200,0,20000,30000,30000);
  394.     adList[9] = ad;
  395.  
  396.     // ╡√(Ñ»ÑΩÑ├Ñ»)
  397.     ad = new AnimationData(this,6,2,7,
  398.         imgdir+"/fish_d_",5,fish_d_frame,fish_d_x,fish_d_y);
  399.     ad.setFrameTime(125);
  400.     ad.setSound(snddir+"/water.au",1);
  401.     adList[6] = ad;
  402.  
  403.     // ñµñ∞ñδ╠┌(Ñ»ÑΩÑ├Ñ»)
  404.     ad = new AnimationData(this,7,2,7,
  405.         imgdir+"/kaede_d_",5,kaede_d_frame,kaede_d_x,kaede_d_y);
  406.     ad.setFrameTime(125);
  407.     adList[7] = ad;
  408.  
  409.     // ┐═(╝½╞░)
  410.     ad = new AnimationData(this,5,1,5,
  411.         imgdir+"/man_d_",4,man_d_frame,man_d_x,man_d_y);
  412.     ad.setFrameTime(100,0,20000,30000,30000);
  413.     adList[5] = ad;
  414.  
  415.     // ─╗(╝½╞░)    
  416.     ad = new AnimationData(this,10,1,2,
  417.         imgdir+"/tori_d_",9,tori_d_frame,tori_d_x,tori_d_y);
  418.     ad.setFrameTime(167,0,20000,30000,30000);
  419.     adList[10] = ad;
  420.  
  421.     // ▒└(╝½╞░)
  422.     ad = new AnimationData(this,3,3,1,
  423.         imgdir+"/kumo_d_",8,kumo_d_frame,kumo_d_x,kumo_d_y);
  424.     ad.setFrameTime(250,0,20000,30000,30000);
  425.     adList[3] = ad;
  426.  
  427.     // dummy ╬δ├ε (ding.au)
  428.     ad = new AnimationData(this,11,2,-1,null,0,
  429.             dummy_frame,null,null);
  430.     ad.setSound(snddir+"/ding.au",0);
  431.     adList[11] = ad;
  432.     
  433. }
  434.  
  435. // Ñ¬í╝Ñ╫Ñ╦Ñ≤Ñ░í╓═╝í╫ñ╬▒Θ╜╨
  436. // ╣╚═╒, ┤╟╚─, ╕ñ, ñ╚ñ≤ñ▄, ╬δ├εíó╡√, ñµñ∞ñδ╠┌, ┐═, ─╗, ▒└, (╗■╖╫)
  437. void loadAnimationDataEvening() {
  438.     AnimationData ad;
  439.  
  440.     // ▓░║¼(└┼╗▀▓Φ, ─╗ñΦñΩñΓ╝Ω┴░ñ╦ñóñδ)
  441.     ad = new AnimationData(this,1,0,3,
  442.         imgdir+"/yane_e_",0,yane_e_frame,yane_e_x,yane_e_y);
  443.     adList[1] = ad;
  444.  
  445.     // ╣╚═╒(Ñ»ÑΩÑ├Ñ»)
  446.     ad = new AnimationData(this,8,2,5,
  447.         imgdir+"/kouyo_e_",4,kouyo_e_frame,kouyo_e_x,kouyo_e_y);
  448.     ad.setFrameTime(300);
  449.     adList[8] = ad;
  450.  
  451.     // ┤╟╚─(Ñ»ÑΩÑ├Ñ»)
  452.     ad = new AnimationData(this,2,4,6,
  453.         imgdir+"/map_e_",2,map_e_frame,map_e_x,map_e_y);
  454.     ad.setFrameTime(100);
  455.     adList[2] = ad;
  456.  
  457.     // ╕ñ(╝½╞░)
  458.     ad = new AnimationData(this,4,1,5,
  459.         imgdir+"/dog_e_",10,dog_e_frame,dog_e_x,dog_e_y);
  460.     ad.setFrameTime(dog_e_time,0,20000,30000,30000);
  461.     ad.setSound(snddir+"/Dog.au",28);
  462.     adList[4] = ad;
  463.  
  464.     // ñ╚ñ≤ñ▄(╝½╞░)
  465.     ad = new AnimationData(this,9,1,8,
  466.         imgdir+"/tombo_e_",12,tombo_e_frame,tombo_e_x,tombo_e_y);
  467.     ad.setFrameTime(200,0,20000,30000,30000);
  468.     adList[9] = ad;
  469.  
  470.     // ╡√(Ñ»ÑΩÑ├Ñ»)
  471.     ad = new AnimationData(this,6,2,7,
  472.         imgdir+"/fish_e_",5,fish_e_frame,fish_e_x,fish_e_y);
  473.     ad.setFrameTime(125);
  474.     ad.setSound(snddir+"/water.au",1);
  475.     adList[6] = ad;
  476.  
  477.     // ñµñ∞ñδ╠┌(Ñ»ÑΩÑ├Ñ»)
  478.     ad = new AnimationData(this,7,2,7,
  479.         imgdir+"/kaede_e_",5,kaede_e_frame,kaede_e_x,kaede_e_y);
  480.     ad.setFrameTime(125);
  481.     adList[7] = ad;
  482.  
  483.     // ┐═(╝½╞░)
  484.     ad = new AnimationData(this,5,1,5,
  485.         imgdir+"/man_e_",4,man_e_frame,man_e_x,man_e_y);
  486.     ad.setFrameTime(100,0,20000,30000,30000);
  487.     adList[5] = ad;
  488.  
  489.     // ─╗(╝½╞░)    
  490.     ad = new AnimationData(this,10,1,2,
  491.         imgdir+"/tori_e_",9,tori_e_frame,tori_e_x,tori_e_y);
  492.     ad.setFrameTime(167,0,20000,30000,30000);
  493.     adList[10] = ad;
  494.  
  495.     // ▒└(╝½╞░)
  496.     ad = new AnimationData(this,3,1,1,
  497.         imgdir+"/kumo_e_",8,kumo_e_frame,kumo_e_x,kumo_e_y);
  498.     ad.setFrameTime(250,0,20000,30000,30000);
  499.     adList[3] = ad;
  500.  
  501.     // ├ε1 (!!!)dummy: ding.au
  502.     ad = new AnimationData(this,11,2,-1,null,0,
  503.             dummy_frame,null,null);
  504.     ad.setSound(snddir+"/ding.au",0);    // (!!!)
  505.     adList[11] = ad;
  506.  
  507.     // ├ε2 (!!!)dummy: ding.au
  508.     ad = new AnimationData(this,12,2,-1,null,0,
  509.             dummy_frame,null,null);
  510.     ad.setSound(snddir+"/ding.au",0);    // (!!!)
  511.     adList[12] = ad;
  512.  
  513.     // ├ε3 (!!!)dummy: ding.au
  514.     ad = new AnimationData(this,13,2,-1,null,0,
  515.             dummy_frame,null,null);
  516.     ad.setSound(snddir+"/ding.au",0);    // (!!!)
  517.     adList[13] = ad;
  518. }
  519.  
  520.  
  521. // Ñ¬í╝Ñ╫Ñ╦Ñ≤Ñ░í╓╠δí╫ñ╬▒Θ╜╨
  522. // ┤╟╚─, ╬δ├εíó╡√, ┼⌠Σ╞, ┐σ╠╠ñ╬╖ε, ▒└, (╗■╖╫)
  523.  
  524. void loadAnimationDataNight() {
  525.     AnimationData ad;
  526.  
  527.     // ▓░║¼(└┼╗▀▓Φ, ─╗ñΦñΩñΓ╝Ω┴░ñ╦ñóñδ)
  528.     ad = new AnimationData(this,1,0,3,
  529.         imgdir+"/yane_n_",0,yane_n_frame,yane_n_x,yane_n_y);
  530.     adList[1] = ad;
  531.  
  532.     // ┤╟╚─(Ñ»ÑΩÑ├Ñ»)
  533.     ad = new AnimationData(this,2,4,6,
  534.         imgdir+"/map_n_",2,map_n_frame,map_n_x,map_n_y);
  535.     ad.setFrameTime(100);
  536.     adList[2] = ad;
  537.  
  538.     // ╡√(Ñ»ÑΩÑ├Ñ»)
  539.     ad = new AnimationData(this,6,2,7,
  540.         imgdir+"/fish_n_",5,fish_n_frame,fish_n_x,fish_n_y);
  541.     ad.setFrameTime(125);
  542.     ad.setSound(snddir+"/water.au",1);
  543.     adList[6] = ad;
  544.  
  545.     // ▒└(╝½╞░)
  546.     ad = new AnimationData(this,3,1,1,
  547.         imgdir+"/kumo_n_",8,kumo_n_frame,kumo_n_x,kumo_n_y);
  548.     ad.setFrameTime(250,0,20000,30000,30000);
  549.     adList[3] = ad;
  550.  
  551.  
  552.  
  553.     // ├ε1 (!!!)dummy: ding.au
  554.     ad = new AnimationData(this,11,2,-1,null,0,
  555.             dummy_frame,null,null);
  556.     ad.setSound(snddir+"/ding.au",0);    // (!!!)
  557.     adList[11] = ad;
  558.  
  559.     // ├ε2 (!!!)dummy: ding.au
  560.     ad = new AnimationData(this,12,2,-1,null,0,
  561.             dummy_frame,null,null);
  562.     ad.setSound(snddir+"/ding.au",0);    // (!!!)
  563.     adList[12] = ad;
  564.  
  565.     // ├ε3 (!!!)dummy: ding.au
  566.     ad = new AnimationData(this,13,2,-1,null,0,
  567.             dummy_frame,null,null);
  568.     ad.setSound(snddir+"/ding.au",0);    // (!!!)
  569.     adList[13] = ad;
  570. }
  571.  
  572. private boolean isInside(int x, int y, int xs, int ys, int xe, int ye) {
  573.     return (x >= xs && x <= xe && y >= ys && y <= ye);
  574. }
  575.  
  576. public void mouseDown(int x, int y) {
  577.     if (timeArea == 0) {
  578.     mouseDownDay(x,y);
  579.     } else if (timeArea == 1) {
  580.     mouseDownEvening(x,y);
  581.     } else if (timeArea == 1) {
  582.     mouseDownNight(x,y);
  583.     }
  584. }
  585.  
  586. public void mouseDownDay(int x, int y) {
  587.     // ▒└
  588.     if (isInside(x,y,297,25,432,78) &&
  589.     sched[3] == null &&
  590.     adList[3].getCurFrame() == 0) {
  591.     insertSchedular(3);
  592.     }
  593.     
  594.     // ╡√
  595.     if (isInside(x,y,295,188,340,202) && sched[6] == null) {
  596.     insertSchedular(6);
  597.     }
  598.  
  599.     // ñµñ∞ñδ╠┌(ñ½ñ¿ñ╟)
  600.     if (isInside(x,y,353,195,499,399) && sched[7] == null) {
  601.     insertSchedular(7);
  602.     }
  603.  
  604.     // ╣╚═╒
  605.     if ((isInside(x,y,0,48,133,83) || isInside(x,y,0,83,24,105) ||
  606.          isInside(x,y,95,83,133,105)) && sched[8] == null) {
  607.     insertSchedular(8);
  608.     }
  609.  
  610.     // ┤╟╚─ (│╚┬τ)
  611.     if (isInside(x,y,169,139,197,163) &&
  612.     sched[2] == null && adList[2].getCurFrame() == 0) {
  613.     adList[2].Reverse();
  614.     insertSchedular(2);
  615.     }
  616.  
  617.     // ┤╟╚─ (╜╠╛«ñ╬ñ▀)
  618.     if (isInside(x,y,192,80,300,158) && sched[2] == null &&
  619.     adList[2].getCurFrame() == adList[2].getLastFrame()) {
  620.     adList[2].Reverse();
  621.     insertSchedular(2);
  622.     }
  623.  
  624.     if (isInside(x,y,25,90,92,123)) {
  625.     showDocument(new URL(documentURL,  "../html_st/ST_inf_j.html"));
  626.     } else if (isInside(x,y,352,102,499,129)) {
  627.     showDocument(new URL(documentURL, "../html_mn/MN_idx_vr_j.html"));
  628.     } else if (isInside(x,y,125,56,347,129)) {
  629.     showDocument(new URL(documentURL, "../html_cl/CL_inf_j.html"));
  630.     }
  631. }
  632.  
  633. public void mouseDownEvening(int x, int y) {
  634.     // ╡√
  635.     if (isInside(x,y,295,188,340,202) && sched[6] == null) {
  636.     insertSchedular(6);
  637.     }
  638.  
  639.     // ñµñ∞ñδ╠┌
  640.     if (isInside(x,y,353,195,499,399) && sched[7] == null) {
  641.     insertSchedular(7);
  642.     }
  643.  
  644.     // ╣╚═╒
  645.     if ((isInside(x,y,0,48,133,83) || isInside(x,y,0,83,24,105) ||
  646.          isInside(x,y,95,83,133,105)) && sched[8] == null) {
  647.     insertSchedular(8);
  648.     }
  649.  
  650.     // ┤╟╚─ (│╚┬τ)
  651.     if (isInside(x,y,177,142,205,158) && 
  652.     sched[2] == null && adList[2].getCurFrame() == 0) {
  653.     adList[2].Reverse();
  654.     insertSchedular(2);
  655.     }
  656.  
  657.     // ┤╟╚─ (╜╠╛« or ╩╕╜±╕╞ñ╙╜╨ñ╖) (!!! dummy data)
  658.     if (isInside(x,y,192,80,300,158) && sched[2] == null &&
  659.     adList[2].getCurFrame() == adList[2].getLastFrame()) {
  660.     adList[2].Reverse();
  661.     insertSchedular(2);
  662.     }
  663.     if (isInside(x,y,25,90,92,123)) {
  664.     showDocument(new URL(documentURL, "../html_st/ST_inf_j.html"));
  665.     } else if (isInside(x,y,352,102,499,129)) {
  666.     showDocument(new URL(documentURL, "../html_mn/MN_idx_vr_j.html"));
  667.     } else if (isInside(x,y,125,56,347,129)) {
  668.     showDocument(new URL(documentURL, "../html_cl/CL_inf_j.html"));
  669.     }
  670.  
  671.     // ├ε1 (!!!)dummy: ding.au
  672.     if (isInside(x,y,0,0,100,100)) {
  673.     adList[11].playSound();
  674.     }
  675.     // ├ε2 (!!!)dummy: ding.au
  676.     if (isInside(x,y,100,0,200,100)) {
  677.     adList[12].playSound();
  678.     }
  679.     // ├ε3 (!!!)dummy: ding.au
  680.     if (isInside(x,y,200,0,300,100)) {
  681.     adList[13].playSound();
  682.     }
  683.  
  684. };
  685. public void mouseDownNight(int x, int y) {
  686.     // ╡√
  687.     if (isInside(x,y,295,188,340,202) && sched[6] == null) {
  688.     insertSchedular(6);
  689.     }
  690.  
  691.  
  692.  
  693.  
  694.     // ┤╟╚─ (│╚┬τ)
  695.     if (isInside(x,y,177,142,205,158) && 
  696.     sched[2] == null && adList[2].getCurFrame() == 0) {
  697.     adList[2].Reverse();
  698.     insertSchedular(2);
  699.     }
  700.  
  701.     // ┤╟╚─ (╜╠╛« or ╩╕╜±╕╞ñ╙╜╨ñ╖) (!!! dummy data)
  702.     if (isInside(x,y,192,80,300,158) && sched[2] == null &&
  703.     adList[2].getCurFrame() == adList[2].getLastFrame()) {
  704.     adList[2].Reverse();
  705.     insertSchedular(2);
  706.     }
  707.     if (isInside(x,y,25,90,92,123)) {
  708.     showDocument(new URL(documentURL, "../html_st/ST_inf_j.html"));
  709.     } else if (isInside(x,y,352,102,499,129)) {
  710.     showDocument(new URL(documentURL, "../html_mn/MN_idx_vr_j.html"));
  711.     } else if (isInside(x,y,125,56,347,129)) {
  712.     showDocument(new URL(documentURL, "../html_cl/CL_inf_j.html"));
  713.     }
  714.  
  715.     // ├ε1 (!!!)dummy: ding.au
  716.     if (isInside(x,y,0,0,100,100)) {
  717.     adList[11].playSound();
  718.     }
  719.     // ├ε2 (!!!)dummy: ding.au
  720.     if (isInside(x,y,100,0,200,100)) {
  721.     adList[12].playSound();
  722.     }
  723.     // ├ε3 (!!!)dummy: ding.au
  724.     if (isInside(x,y,200,0,300,100)) {
  725.     adList[13].playSound();
  726.     }
  727. }
  728.  
  729. public void mouseMove(int x, int y) {
  730.     if (timeArea == 0) {
  731.     mouseMoveDay(x,y);
  732.     } else if (timeArea == 1) {
  733.     mouseMoveEvening(x,y);
  734.     } else if (timeArea == 2) {
  735.     mouseMoveNight(x,y);
  736.     }
  737. }
  738.  
  739.  
  740. public void mouseMoveDay(int x, int y) {
  741.     // ▒└
  742.     if (isInside(x,y,297,25,432,78) &&
  743.     !isInside(last_x,last_y,297,25,432,78) &&
  744.     sched[3] == null &&
  745.     adList[3].getCurFrame() == 0) {
  746.     insertSchedular(3);
  747.     }
  748.     
  749.     // ╡√
  750.     if (isInside(x,y,295,188,340,202) &&
  751.     !isInside(last_x,last_y,295,188,340,202) &&
  752.     sched[6] == null) {
  753.     insertSchedular(6);
  754.     }
  755.  
  756.     // ñµñ∞ñδ╠┌
  757.     if (isInside(x,y,353,195,499,399) &&
  758.     !isInside(last_x,last_y,353,195,499,399) &&
  759.     sched[7] == null) {
  760.     insertSchedular(7);
  761.     }
  762.  
  763.     // ╣╚═╒
  764.     if ((isInside(x,y,0,48,133,83) || isInside(x,y,0,83,24,105) ||
  765.          isInside(x,y,95,83,133,105)) &&
  766.     !(isInside(last_x,last_y,0,48,133,83) || 
  767.       isInside(last_x,last_y,0,83,24,105) ||
  768.       isInside(last_x,last_y,95,83,133,105)) && sched[8] == null) {
  769.     insertSchedular(8);
  770.     }
  771.  
  772.     // ┤╟╚─ (│╚┬τ)
  773.     if (isInside(x,y,177,142,205,158) && 
  774.     !isInside(last_x,last_y,177,142,205,158) && 
  775.     sched[2] == null && adList[2].getCurFrame() == 0) {
  776.     adList[2].Reverse();
  777.     insertSchedular(2);
  778.     }
  779.  
  780.     // ┤╟╚─ (╜╠╛« or ╩╕╜±╕╞ñ╙╜╨ñ╖) (!!! dummy data)
  781.     if (isInside(x,y,192,80,300,158) && 
  782.     !isInside(last_x,last_y,192,80,300,158) && sched[2] == null &&
  783.     adList[2].getCurFrame() == adList[2].getLastFrame()) {
  784.     if (!isInside(x,y,177,80,240,158)) {
  785.         adList[2].Reverse();
  786.         insertSchedular(2);
  787.     }
  788.     }
  789.  
  790.     last_x = x;
  791.     last_y = y;
  792. }
  793.  
  794. public void mouseMoveEvening(int x, int y) {
  795.     // ╡√
  796.     if (isInside(x,y,295,188,340,202) &&
  797.     !isInside(last_x,last_y,295,188,340,202) &&
  798.     sched[6] == null) {
  799.     insertSchedular(6);
  800.     }
  801.  
  802.     // ñµñ∞ñδ╠┌
  803.     if (isInside(x,y,353,195,499,399) &&
  804.     !isInside(last_x,last_y,353,195,499,399) &&
  805.     sched[7] == null) {
  806.     insertSchedular(7);
  807.     }
  808.  
  809.     // ╣╚═╒
  810.     if ((isInside(x,y,0,48,133,83) || isInside(x,y,0,83,24,105) ||
  811.          isInside(x,y,95,83,133,105)) &&
  812.     !(isInside(last_x,last_y,0,48,133,83) || 
  813.       isInside(last_x,last_y,0,83,24,105) ||
  814.       isInside(last_x,last_y,95,83,133,105)) && sched[8] == null) {
  815.     insertSchedular(8);
  816.     }
  817.  
  818.     // ┤╟╚─ (│╚┬τ)
  819.     if (isInside(x,y,177,142,205,158) && 
  820.     !isInside(last_x,last_y,177,142,205,158) && 
  821.     sched[2] == null && adList[2].getCurFrame() == 0) {
  822.     adList[2].Reverse();
  823.     insertSchedular(2);
  824.     }
  825.  
  826.     // ┤╟╚─ (╜╠╛« or ╩╕╜±╕╞ñ╙╜╨ñ╖) (!!! dummy data)
  827.     if (isInside(x,y,192,80,300,158) && 
  828.     !isInside(last_x,last_y,192,80,300,158) && sched[2] == null &&
  829.     adList[2].getCurFrame() == adList[2].getLastFrame()) {
  830.     if (!isInside(x,y,177,80,240,158)) {
  831.         adList[2].Reverse();
  832.         insertSchedular(2);
  833.     }
  834.     }
  835.     // ├ε1 (!!!)dummy: ding.au
  836.     if (isInside(x,y,0,0,100,100) && !isInside(last_x,last_y,0,0,100,100)) {
  837.     adList[11].playSound();
  838.     }
  839.     // ├ε2 (!!!)dummy: ding.au
  840.     if (isInside(x,y,100,0,200,100) && !isInside(last_x,last_y,100,0,200,100)){
  841.     adList[12].playSound();
  842.     }
  843.     // ├ε3 (!!!)dummy: ding.au
  844.     if (isInside(x,y,200,0,300,100) && !isInside(last_x,last_y,200,0,300,100)){
  845.     adList[13].playSound();
  846.     }
  847.  
  848.     last_x = x;
  849.     last_y = y;
  850. }
  851.  
  852. public void mouseMoveNight(int x, int y) {
  853.     // ╡√
  854.     if (isInside(x,y,295,188,340,202) &&
  855.     !isInside(last_x,last_y,295,188,340,202) &&
  856.     sched[6] == null) {
  857.     insertSchedular(6);
  858.     }
  859.  
  860.  
  861.     // ┤╟╚─ (│╚┬τ)
  862.     if (isInside(x,y,177,142,205,158) && 
  863.     !isInside(last_x,last_y,177,142,205,158) && 
  864.     sched[2] == null && adList[2].getCurFrame() == 0) {
  865.     adList[2].Reverse();
  866.     insertSchedular(2);
  867.     }
  868.  
  869.     // ┤╟╚─ (╜╠╛« or ╩╕╜±╕╞ñ╙╜╨ñ╖) (!!! dummy data)
  870.     if (isInside(x,y,192,80,300,158) && 
  871.     !isInside(last_x,last_y,192,80,300,158) && sched[2] == null &&
  872.     adList[2].getCurFrame() == adList[2].getLastFrame()) {
  873.     if (!isInside(x,y,177,80,240,158)) {
  874.         adList[2].Reverse();
  875.         insertSchedular(2);
  876.     }
  877.     }
  878.     // ├ε1 (!!!)dummy: ding.au
  879.     if (isInside(x,y,0,0,100,100) && !isInside(last_x,last_y,0,0,100,100)) {
  880.     adList[11].playSound();
  881.     }
  882.     // ├ε2 (!!!)dummy: ding.au
  883.     if (isInside(x,y,100,0,200,100) && !isInside(last_x,last_y,100,0,200,100)){
  884.     adList[12].playSound();
  885.     }
  886.     // ├ε3 (!!!)dummy: ding.au
  887.     if (isInside(x,y,200,0,300,100) && !isInside(last_x,last_y,200,0,300,100)){
  888.     adList[13].playSound();
  889.     }
  890.     last_x = x;
  891.     last_y = y;
  892. }
  893.  
  894. }
  895.