home *** CD-ROM | disk | FTP | other *** search
Java Source | 2017-09-21 | 25.1 KB | 895 lines |
- import browser.*;
- import browser.audio.*;
- import awt.*;
- import net.www.html.*;
- import java.io.*;
- import net.www.*;
- import java.util.*;
-
- // Animation Data Type
-
-
-
-
-
-
-
- // AnimationData ID
-
-
- // Animation Depth for no image (i.e. sound only data)
-
-
-
-
- // │╪╜¼┤█,╦▄┤█,╩╕▓╜┤█ñ╬URL // (!!!)dummy
-
-
-
-
-
- // AnimationData ID: "0" is reserved for 0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- // TimeArea value
-
-
-
-
- // Animation Data Depth
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- class Opening extends AnimationPlayer implements Runnable {
-
- static String backgroundFile[] = null;
- int timeArea = -1;
-
- // static data
-
- static int sound_frame[] = {-1,-1};
- static int dummy_frame[] = {-1,-1};
- static String imgdir = "images";
- static String snddir = "audio";
-
- // ==================================================
- // Animation data for DayTime
- // ==================================================
- static int yane_d_frame[] = {0,-1};
- static int yane_d_x[] = {171,0};
- static int yane_d_y[] = {34,0};
- static int map_d_frame[] = {0,1,2,3};
- static int map_d_x[] = {170,177,183,199};
- static int map_d_y[] = {140,137,115,89};
- static int kumo_d_frame[] = {0,1,2,3,4,5,6,7,8,-1}; //1+8+1
- static int kumo_d_x[] = {297,297,298,295,295,295,293,288,287,0}; //1+8+1
- static int kumo_d_y[] = {25,25,26,26,27,27,28,32,37,0}; //1+8+1
- 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
- 8,7,6,6,6,5,4,3, // 8
- 9,10,9,10,9,10,9,10,9,10,9,10,9,10,9,10,9,10,9,10,9,10,9, //23
- -1};
- static int dog_d_x[] = {0, //1
- 434,428,420,414,406,400,392,386,378,372,
- 363,357,349,343,335,329,321,315,307,300, //20
- 299,298,300,300,300,301,299,299, // 8
- 300,307,312,319,324,331,337,344,349,356,
- 361,368,373,380,385,392,397,405,410,417,
- 422,429,434,0}; //23+1
- static int dog_d_y[] = {0, //1
- 160,159,160,158,159,158,159,158,158,157,
- 158,157,157,156,157,156,157,155,156,156, //20
- 155,156,156,156,156,156,156,156, //8
- 157,156,157,156,158,157,158,157,158,157,
- 158,158,159,158,159,158,159,158,159,159,
- 160,159,160,0}; //23+1
- static int dog_d_time[] = {10000,125,125,125,125,125,125,125,125,125,125,
- 125,125,125,125,125,125,125,125,125,125, // 1+19
- 300,300,300,300,300,300,300,300, //8
- 125,125,125,125,125,125,125,125,125,125,
- 125,125,125,125,125,125,125,125,125,125,
- 125,125,125}; // 23
- static int fish_d_frame[] = {-1,1,2,3,4,5,-1};
- static int fish_d_x[] = {0,303,298,296,293,290,0};
- static int fish_d_y[] = {0,191,184,183,180,187,0};
- static int kaede_d_frame[] = {0,1,2,3,4,5,4,3,2,1,2,3,4,5,4,3,2,-1};
- static int kaede_d_x[] = {307,302,299,296,295,307,295,296,299, // 1+8
- 302,299,296,295,307,295,296,299,0};//8+1
- static int kaede_d_y[] = {144,146,148,145,147,148,147,145,148, // 1+8
- 146,148,145,147,148,147,145,148,0}; // 8+1
-
- static int kouyo_d_frame[] = {-1,1,2,3,4,3,2,1,2,3,4,3,2,1,-1}; //1+13+1
- static int kouyo_d_x[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
- static int kouyo_d_y[] = {0,53,53,53,53,53,53,53,53,53,53,53,53,53,0}; //1+13+1
- 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
- 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2, //20
- 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4, //20
- 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4, //20
- 3,4,3,4,3,-1};
- static int man_d_x[] = {0, //1
- 156,154,152,149,146,143,141,138,135,133, //40
- 130,127,124,122,119,116,114,111,108,105,
- 103,100,97,94,92,89,86,84,81,78,
- 75,73,70,67,65,62,59,56,53,50,
- 188,191,194,198,202,206,209,213,217,221, //45+1
- 224,228,232,235,239,243,247,250,254,258,
- 262,265,269,273,276,280,284,288,291,295,
- 299,303,306,310,314,317,321,325,329,332,
- 336,340,344,347,352,0};
- static int man_d_y[] = {0, // 1
- 120,120,119,119,119,118,118,118,117,117, // 40
- 117,116,116,116,115,115,115,114,114,114,
- 113,113,113,112,112,112,111,111,111,110,
- 110,110,109,109,109,108,108,108,107,107,
- 119,119,119,119,119,119,119,119,119,119, // 45+1
- 119,118,118,118,118,118,118,118,118,118,
- 118,118,117,117,117,117,117,117,117,117,
- 117,117,117,116,116,116,116,116,116,116,
- 116,116,116,116,116,0};
- static int tombo_d_frame[] = {-1,1,2,3,4,5,6,7,8,9,10,11,-1}; //1+11+1
- static int tombo_d_x[] = {0,194,181,164,153,136,135,135,106,76,50,13,0};
- static int tombo_d_y[] = {0,269,240,225,210,200,191,190,178,180,182,188,0};
- static int tori_d_frame[] = {-1,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,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,1,2,3,4,5,6,7,-1};
- static int tori_d_x[] = {0,403,396,389,382,374,369,362,356,349,
- 343,336,328,322,314,308,302,296,288,
- 283,276,268,262,254,248,242,236,228,
- 223,216,208,202,194,188,181,176,168,
- 162,156,148,141,134,128,121,116,108,
- 102,96,88,81,74,68,61,55,48, 42,35,28,21,13,8,1,0};
- static int tori_d_y[] = {0,18,20,21,20,19,20,20,20,18,
- 18,20,21,20,19,20,20,20,18, 18,20,21,20,19,20,20,20,18,
- 18,20,21,20,19,20,20,20,18, 18,20,21,20,19,20,20,20,18,
- 18,20,21,20,19,20,20,20,18, 18,20,21,20,19,20,20,0};
-
-
-
- // ==================================================
- // Animation data for Evening (!!!dummy data)
- // ==================================================
- static int yane_e_frame[] = {0,-1};
- static int yane_e_x[] = {171,0};
- static int yane_e_y[] = {34,0};
- static int map_e_frame[] = {0,1,2,3};
- static int map_e_x[] = {170,177,183,199};
- static int map_e_y[] = {140,137,115,89};
- static int kumo_e_frame[] = {0,1,2,3,4,5,6,7,8,-1}; //1+8+1
- static int kumo_e_x[] = {297,297,298,295,295,295,293,288,287,0}; //1+8+1
- static int kumo_e_y[] = {25,25,26,26,27,27,28,32,37,0}; //1+8+1
- 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
- 8,7,6,6,6,5,4,3, // 8
- 9,10,9,10,9,10,9,10,9,10,9,10,9,10,9,10,9,10,9,10,9,10,9, //23
- -1};
- static int dog_e_x[] = {0, //1
- 434,428,420,414,406,400,392,386,378,372,
- 363,357,349,343,335,329,321,315,307,300, //20
- 299,298,300,300,300,301,299,299, // 8
- 300,307,312,319,324,331,337,344,349,356,
- 361,368,373,380,385,392,397,405,410,417,
- 422,429,434,0}; //23+1
- static int dog_e_y[] = {0, //1
- 160,159,160,158,159,158,159,158,158,157,
- 158,157,157,156,157,156,157,155,156,156, //20
- 155,156,156,156,156,156,156,156, //8
- 157,156,157,156,158,157,158,157,158,157,
- 158,158,159,158,159,158,159,158,159,159,
- 160,159,160,0}; //23+1
- static int dog_e_time[] = {10000,125,125,125,125,125,125,125,125,125,125,
- 125,125,125,125,125,125,125,125,125,125, // 1+19
- 300,300,300,300,300,300,300,300, //8
- 125,125,125,125,125,125,125,125,125,125,
- 125,125,125,125,125,125,125,125,125,125,
- 125,125,125}; // 23
- static int fish_e_frame[] = {-1,1,2,3,4,5,-1};
- static int fish_e_x[] = {0,303,298,296,293,290,0};
- static int fish_e_y[] = {0,191,184,183,180,187,0};
- static int kaede_e_frame[] = {-1,1,2,3,4,5,4,3,2,1,2,3,4,5,4,3,2,-1};
- static int kaede_e_x[] = {0,307,302,299,296,295,296,299,302, // 1+8
- 307,302,299,296,295,296,299,302,0}; // 8+1
- static int kaede_e_y[] = {0,144,146,148,145,147,145,148,146, // 1+8
- 144,146,148,145,147,145,148,146,0}; // 8+1
-
- static int kouyo_e_frame[] = {-1,1,2,3,4,3,2,1,2,3,4,3,2,1,-1}; //1+13+1
- static int kouyo_e_x[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
- static int kouyo_e_y[] = {0,53,53,53,53,53,53,53,53,53,53,53,53,53,0}; //1+13+1
- 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
- 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2, //20
- 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4, //20
- 3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4, //20
- 3,4,3,4,3,-1};
- static int man_e_x[] = {0, //1
- 156,154,152,149,146,143,141,138,135,133, //40
- 130,127,124,122,119,116,114,111,108,105,
- 103,100,97,94,92,89,86,84,81,78,
- 75,73,70,67,65,62,59,56,53,50,
- 188,191,194,198,202,206,209,213,217,221, //45+1
- 224,228,232,235,239,243,247,250,254,258,
- 262,265,269,273,276,280,284,288,291,295,
- 299,303,306,310,314,317,321,325,329,332,
- 336,340,344,347,352,0};
- static int man_e_y[] = {0, // 1
- 120,120,119,119,119,118,118,118,117,117, // 40
- 117,116,116,116,115,115,115,114,114,114,
- 113,113,113,112,112,112,111,111,111,110,
- 110,110,109,109,109,108,108,108,107,107,
- 119,119,119,119,119,119,119,119,119,119, // 45+1
- 119,118,118,118,118,118,118,118,118,118,
- 118,118,117,117,117,117,117,117,117,117,
- 117,117,117,116,116,116,116,116,116,116,
- 116,116,116,116,116,0};
- static int tombo_e_frame[] = {-1,1,2,3,4,5,6,7,8,9,10,11,-1}; //1+11+1 ?
- static int tombo_e_x[] = {0,194,181,164,153,136,135,135,106,76,50,13,0};
- static int tombo_e_y[] = {0,269,240,225,210,200,191,190,178,180,182,188,0};
- static int tori_e_frame[] = {-1,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,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,1,2,3,4,5,6,7,-1};
- static int tori_e_x[] = {0,403,396,389,382,374,369,362,356,349,
- 343,336,328,322,314,308,302,296,288,
- 283,276,268,262,254,248,242,236,228,
- 223,216,208,202,194,188,181,176,168,
- 162,156,148,141,134,128,121,116,108,
- 102,96,88,81,74,68,61,55,48, 42,35,28,21,13,8,1,0};
- static int tori_e_y[] = {0,18,20,21,20,19,20,20,20,18,
- 18,20,21,20,19,20,20,20,18, 18,20,21,20,19,20,20,20,18,
- 18,20,21,20,19,20,20,20,18, 18,20,21,20,19,20,20,20,18,
- 18,20,21,20,19,20,20,20,18, 18,20,21,20,19,20,20,0};
-
-
- // ==================================================
- // Animation data for Night (!!!dummy data)
- // ==================================================
- static int yane_n_frame[] = {0,-1};
- static int yane_n_x[] = {171,0};
- static int yane_n_y[] = {34,0};
- static int map_n_frame[] = {0,1,2,3};
- static int map_n_x[] = {170,177,183,199};
- static int map_n_y[] = {140,137,115,89};
- static int kumo_n_frame[] = {0,1,2,3,4,5,6,7,8,-1}; //1+8+1
- static int kumo_n_x[] = {297,297,298,295,295,295,293,288,287,0}; //1+8+1
- static int kumo_n_y[] = {25,25,26,26,27,27,28,32,37,0}; //1+8+1
- static int fish_n_frame[] = {-1,1,2,3,4,5,-1};
- static int fish_n_x[] = {0,303,298,296,293,290,0};
- static int fish_n_y[] = {0,191,184,183,180,187,0};
-
-
-
- static {
- backgroundFile = new String[3];
- String fname[] = {"dy","ev","nt"};
- int i;
- for (i = 0; i < 3; i++) { // day, evening, night
- backgroundFile[i] = imgdir + "/OP_" + fname[i] + "4.gif";
- }
-
- // various animation data
- }
-
- public void init() {
- int h = (new GMTTime()).getHour(9); // JST 9
-
- timeArea = 0;
-
- background = getImage(new URL(documentURL,backgroundFile[timeArea]));
- width = background.width;
- height = background.height;
- resize(width,height);
-
- maxAnimation = 100;
- adList = new AnimationData[maxAnimation];
- int i;
- for (i=0; i < maxAnimation; i++) {
- adList[i] = null;
- }
-
- maxSchedular = 100;
- sched = new Schedular[maxSchedular];
- for (i=0; i < maxSchedular; i++) {
- sched[i] = null;
- }
-
- dispobj = new IDChain();
- im = createImage(width,height);
- offscreen = new Graphics(im);
-
- initialize();
- repaint();
- }
-
- void initialize () {
- // initialize
- if (!initialized) {
- initialized = true;
- Math.srandom(System.currentTime());
- loadAnimationData();
- setupDisplayObject();
- adList[2].Reverse();
- }
- }
-
- void loadAnimationData() {
- if (timeArea == 0) {
- loadAnimationDataDay();
- } else if (timeArea == 1) {
- loadAnimationDataEvening();
- } else if (timeArea == 1) {
- loadAnimationDataNight();
- }
- }
-
- // Ѭí╝Ñ╫Ñ╦Ñ≤Ñ░í╓├δí╫ñ╬▒Θ╜╨
- // ╣╚═╒, ┤╟╚─, ╕ñ, ñ╚ñ≤ñ▄, ╡√, ñµñ∞ñδ╠┌, ┐═, ─╗, ▒└, (╗■╖╫)
- void loadAnimationDataDay() {
- AnimationData ad;
-
- // ▓░║¼(└┼╗▀▓Φ, ─╗ñΦñΩñΓ╝Ω┴░ñ╦ñóñδ)
- ad = new AnimationData(this,1,0,3,
- imgdir+"/yane_d_",0,yane_d_frame,yane_d_x,yane_d_y);
- adList[1] = ad;
-
- // ╣╚═╒(Ñ»ÑΩÑ├Ñ»)
- ad = new AnimationData(this,8,2,5,
- imgdir+"/kouyo_d_",4,kouyo_d_frame,kouyo_d_x,kouyo_d_y);
- ad.setFrameTime(300);
- adList[8] = ad;
-
- // ┤╟╚─(Ñ»ÑΩÑ├Ñ»)
- ad = new AnimationData(this,2,4,6,
- imgdir+"/map_d_",2,map_d_frame,map_d_x,map_d_y);
- ad.setFrameTime(100);
- adList[2] = ad;
-
- // ╕ñ(╝½╞░)
- ad = new AnimationData(this,4,1,5,
- imgdir+"/dog_d_",10,dog_d_frame,dog_d_x,dog_d_y);
- ad.setFrameTime(dog_d_time,0,20000,30000,30000);
- ad.setSound(snddir+"/Dog.au",28);
- adList[4] = ad;
-
- // ñ╚ñ≤ñ▄(╝½╞░)
- ad = new AnimationData(this,9,1,8,
- imgdir+"/tombo_d_",12,tombo_d_frame,tombo_d_x,tombo_d_y);
- ad.setFrameTime(200,0,20000,30000,30000);
- adList[9] = ad;
-
- // ╡√(Ñ»ÑΩÑ├Ñ»)
- ad = new AnimationData(this,6,2,7,
- imgdir+"/fish_d_",5,fish_d_frame,fish_d_x,fish_d_y);
- ad.setFrameTime(125);
- ad.setSound(snddir+"/water.au",1);
- adList[6] = ad;
-
- // ñµñ∞ñδ╠┌(Ñ»ÑΩÑ├Ñ»)
- ad = new AnimationData(this,7,2,7,
- imgdir+"/kaede_d_",5,kaede_d_frame,kaede_d_x,kaede_d_y);
- ad.setFrameTime(125);
- adList[7] = ad;
-
- // ┐═(╝½╞░)
- ad = new AnimationData(this,5,1,5,
- imgdir+"/man_d_",4,man_d_frame,man_d_x,man_d_y);
- ad.setFrameTime(100,0,20000,30000,30000);
- adList[5] = ad;
-
- // ─╗(╝½╞░)
- ad = new AnimationData(this,10,1,2,
- imgdir+"/tori_d_",9,tori_d_frame,tori_d_x,tori_d_y);
- ad.setFrameTime(167,0,20000,30000,30000);
- adList[10] = ad;
-
- // ▒└(╝½╞░)
- ad = new AnimationData(this,3,3,1,
- imgdir+"/kumo_d_",8,kumo_d_frame,kumo_d_x,kumo_d_y);
- ad.setFrameTime(250,0,20000,30000,30000);
- adList[3] = ad;
-
- // dummy ╬δ├ε (ding.au)
- ad = new AnimationData(this,11,2,-1,null,0,
- dummy_frame,null,null);
- ad.setSound(snddir+"/ding.au",0);
- adList[11] = ad;
-
- }
-
- // Ѭí╝Ñ╫Ñ╦Ñ≤Ñ░í╓═╝í╫ñ╬▒Θ╜╨
- // ╣╚═╒, ┤╟╚─, ╕ñ, ñ╚ñ≤ñ▄, ╬δ├εíó╡√, ñµñ∞ñδ╠┌, ┐═, ─╗, ▒└, (╗■╖╫)
- void loadAnimationDataEvening() {
- AnimationData ad;
-
- // ▓░║¼(└┼╗▀▓Φ, ─╗ñΦñΩñΓ╝Ω┴░ñ╦ñóñδ)
- ad = new AnimationData(this,1,0,3,
- imgdir+"/yane_e_",0,yane_e_frame,yane_e_x,yane_e_y);
- adList[1] = ad;
-
- // ╣╚═╒(Ñ»ÑΩÑ├Ñ»)
- ad = new AnimationData(this,8,2,5,
- imgdir+"/kouyo_e_",4,kouyo_e_frame,kouyo_e_x,kouyo_e_y);
- ad.setFrameTime(300);
- adList[8] = ad;
-
- // ┤╟╚─(Ñ»ÑΩÑ├Ñ»)
- ad = new AnimationData(this,2,4,6,
- imgdir+"/map_e_",2,map_e_frame,map_e_x,map_e_y);
- ad.setFrameTime(100);
- adList[2] = ad;
-
- // ╕ñ(╝½╞░)
- ad = new AnimationData(this,4,1,5,
- imgdir+"/dog_e_",10,dog_e_frame,dog_e_x,dog_e_y);
- ad.setFrameTime(dog_e_time,0,20000,30000,30000);
- ad.setSound(snddir+"/Dog.au",28);
- adList[4] = ad;
-
- // ñ╚ñ≤ñ▄(╝½╞░)
- ad = new AnimationData(this,9,1,8,
- imgdir+"/tombo_e_",12,tombo_e_frame,tombo_e_x,tombo_e_y);
- ad.setFrameTime(200,0,20000,30000,30000);
- adList[9] = ad;
-
- // ╡√(Ñ»ÑΩÑ├Ñ»)
- ad = new AnimationData(this,6,2,7,
- imgdir+"/fish_e_",5,fish_e_frame,fish_e_x,fish_e_y);
- ad.setFrameTime(125);
- ad.setSound(snddir+"/water.au",1);
- adList[6] = ad;
-
- // ñµñ∞ñδ╠┌(Ñ»ÑΩÑ├Ñ»)
- ad = new AnimationData(this,7,2,7,
- imgdir+"/kaede_e_",5,kaede_e_frame,kaede_e_x,kaede_e_y);
- ad.setFrameTime(125);
- adList[7] = ad;
-
- // ┐═(╝½╞░)
- ad = new AnimationData(this,5,1,5,
- imgdir+"/man_e_",4,man_e_frame,man_e_x,man_e_y);
- ad.setFrameTime(100,0,20000,30000,30000);
- adList[5] = ad;
-
- // ─╗(╝½╞░)
- ad = new AnimationData(this,10,1,2,
- imgdir+"/tori_e_",9,tori_e_frame,tori_e_x,tori_e_y);
- ad.setFrameTime(167,0,20000,30000,30000);
- adList[10] = ad;
-
- // ▒└(╝½╞░)
- ad = new AnimationData(this,3,1,1,
- imgdir+"/kumo_e_",8,kumo_e_frame,kumo_e_x,kumo_e_y);
- ad.setFrameTime(250,0,20000,30000,30000);
- adList[3] = ad;
-
- // ├ε1 (!!!)dummy: ding.au
- ad = new AnimationData(this,11,2,-1,null,0,
- dummy_frame,null,null);
- ad.setSound(snddir+"/ding.au",0); // (!!!)
- adList[11] = ad;
-
- // ├ε2 (!!!)dummy: ding.au
- ad = new AnimationData(this,12,2,-1,null,0,
- dummy_frame,null,null);
- ad.setSound(snddir+"/ding.au",0); // (!!!)
- adList[12] = ad;
-
- // ├ε3 (!!!)dummy: ding.au
- ad = new AnimationData(this,13,2,-1,null,0,
- dummy_frame,null,null);
- ad.setSound(snddir+"/ding.au",0); // (!!!)
- adList[13] = ad;
- }
-
-
- // Ѭí╝Ñ╫Ñ╦Ñ≤Ñ░í╓╠δí╫ñ╬▒Θ╜╨
- // ┤╟╚─, ╬δ├εíó╡√, ┼⌠Σ╞, ┐σ╠╠ñ╬╖ε, ▒└, (╗■╖╫)
-
- void loadAnimationDataNight() {
- AnimationData ad;
-
- // ▓░║¼(└┼╗▀▓Φ, ─╗ñΦñΩñΓ╝Ω┴░ñ╦ñóñδ)
- ad = new AnimationData(this,1,0,3,
- imgdir+"/yane_n_",0,yane_n_frame,yane_n_x,yane_n_y);
- adList[1] = ad;
-
- // ┤╟╚─(Ñ»ÑΩÑ├Ñ»)
- ad = new AnimationData(this,2,4,6,
- imgdir+"/map_n_",2,map_n_frame,map_n_x,map_n_y);
- ad.setFrameTime(100);
- adList[2] = ad;
-
- // ╡√(Ñ»ÑΩÑ├Ñ»)
- ad = new AnimationData(this,6,2,7,
- imgdir+"/fish_n_",5,fish_n_frame,fish_n_x,fish_n_y);
- ad.setFrameTime(125);
- ad.setSound(snddir+"/water.au",1);
- adList[6] = ad;
-
- // ▒└(╝½╞░)
- ad = new AnimationData(this,3,1,1,
- imgdir+"/kumo_n_",8,kumo_n_frame,kumo_n_x,kumo_n_y);
- ad.setFrameTime(250,0,20000,30000,30000);
- adList[3] = ad;
-
-
-
- // ├ε1 (!!!)dummy: ding.au
- ad = new AnimationData(this,11,2,-1,null,0,
- dummy_frame,null,null);
- ad.setSound(snddir+"/ding.au",0); // (!!!)
- adList[11] = ad;
-
- // ├ε2 (!!!)dummy: ding.au
- ad = new AnimationData(this,12,2,-1,null,0,
- dummy_frame,null,null);
- ad.setSound(snddir+"/ding.au",0); // (!!!)
- adList[12] = ad;
-
- // ├ε3 (!!!)dummy: ding.au
- ad = new AnimationData(this,13,2,-1,null,0,
- dummy_frame,null,null);
- ad.setSound(snddir+"/ding.au",0); // (!!!)
- adList[13] = ad;
- }
-
- private boolean isInside(int x, int y, int xs, int ys, int xe, int ye) {
- return (x >= xs && x <= xe && y >= ys && y <= ye);
- }
-
- public void mouseDown(int x, int y) {
- if (timeArea == 0) {
- mouseDownDay(x,y);
- } else if (timeArea == 1) {
- mouseDownEvening(x,y);
- } else if (timeArea == 1) {
- mouseDownNight(x,y);
- }
- }
-
- public void mouseDownDay(int x, int y) {
- // ▒└
- if (isInside(x,y,297,25,432,78) &&
- sched[3] == null &&
- adList[3].getCurFrame() == 0) {
- insertSchedular(3);
- }
-
- // ╡√
- if (isInside(x,y,295,188,340,202) && sched[6] == null) {
- insertSchedular(6);
- }
-
- // ñµñ∞ñδ╠┌(ñ½ñ¿ñ╟)
- if (isInside(x,y,353,195,499,399) && sched[7] == null) {
- insertSchedular(7);
- }
-
- // ╣╚═╒
- if ((isInside(x,y,0,48,133,83) || isInside(x,y,0,83,24,105) ||
- isInside(x,y,95,83,133,105)) && sched[8] == null) {
- insertSchedular(8);
- }
-
- // ┤╟╚─ (│╚┬τ)
- if (isInside(x,y,169,139,197,163) &&
- sched[2] == null && adList[2].getCurFrame() == 0) {
- adList[2].Reverse();
- insertSchedular(2);
- }
-
- // ┤╟╚─ (╜╠╛«ñ╬ñ▀)
- if (isInside(x,y,192,80,300,158) && sched[2] == null &&
- adList[2].getCurFrame() == adList[2].getLastFrame()) {
- adList[2].Reverse();
- insertSchedular(2);
- }
-
- if (isInside(x,y,25,90,92,123)) {
- showDocument(new URL(documentURL, "../html_st/ST_inf_j.html"));
- } else if (isInside(x,y,352,102,499,129)) {
- showDocument(new URL(documentURL, "../html_mn/MN_idx_vr_j.html"));
- } else if (isInside(x,y,125,56,347,129)) {
- showDocument(new URL(documentURL, "../html_cl/CL_inf_j.html"));
- }
- }
-
- public void mouseDownEvening(int x, int y) {
- // ╡√
- if (isInside(x,y,295,188,340,202) && sched[6] == null) {
- insertSchedular(6);
- }
-
- // ñµñ∞ñδ╠┌
- if (isInside(x,y,353,195,499,399) && sched[7] == null) {
- insertSchedular(7);
- }
-
- // ╣╚═╒
- if ((isInside(x,y,0,48,133,83) || isInside(x,y,0,83,24,105) ||
- isInside(x,y,95,83,133,105)) && sched[8] == null) {
- insertSchedular(8);
- }
-
- // ┤╟╚─ (│╚┬τ)
- if (isInside(x,y,177,142,205,158) &&
- sched[2] == null && adList[2].getCurFrame() == 0) {
- adList[2].Reverse();
- insertSchedular(2);
- }
-
- // ┤╟╚─ (╜╠╛« or ╩╕╜±╕╞ñ╙╜╨ñ╖) (!!! dummy data)
- if (isInside(x,y,192,80,300,158) && sched[2] == null &&
- adList[2].getCurFrame() == adList[2].getLastFrame()) {
- adList[2].Reverse();
- insertSchedular(2);
- }
- if (isInside(x,y,25,90,92,123)) {
- showDocument(new URL(documentURL, "../html_st/ST_inf_j.html"));
- } else if (isInside(x,y,352,102,499,129)) {
- showDocument(new URL(documentURL, "../html_mn/MN_idx_vr_j.html"));
- } else if (isInside(x,y,125,56,347,129)) {
- showDocument(new URL(documentURL, "../html_cl/CL_inf_j.html"));
- }
-
- // ├ε1 (!!!)dummy: ding.au
- if (isInside(x,y,0,0,100,100)) {
- adList[11].playSound();
- }
- // ├ε2 (!!!)dummy: ding.au
- if (isInside(x,y,100,0,200,100)) {
- adList[12].playSound();
- }
- // ├ε3 (!!!)dummy: ding.au
- if (isInside(x,y,200,0,300,100)) {
- adList[13].playSound();
- }
-
- };
- public void mouseDownNight(int x, int y) {
- // ╡√
- if (isInside(x,y,295,188,340,202) && sched[6] == null) {
- insertSchedular(6);
- }
-
-
-
-
- // ┤╟╚─ (│╚┬τ)
- if (isInside(x,y,177,142,205,158) &&
- sched[2] == null && adList[2].getCurFrame() == 0) {
- adList[2].Reverse();
- insertSchedular(2);
- }
-
- // ┤╟╚─ (╜╠╛« or ╩╕╜±╕╞ñ╙╜╨ñ╖) (!!! dummy data)
- if (isInside(x,y,192,80,300,158) && sched[2] == null &&
- adList[2].getCurFrame() == adList[2].getLastFrame()) {
- adList[2].Reverse();
- insertSchedular(2);
- }
- if (isInside(x,y,25,90,92,123)) {
- showDocument(new URL(documentURL, "../html_st/ST_inf_j.html"));
- } else if (isInside(x,y,352,102,499,129)) {
- showDocument(new URL(documentURL, "../html_mn/MN_idx_vr_j.html"));
- } else if (isInside(x,y,125,56,347,129)) {
- showDocument(new URL(documentURL, "../html_cl/CL_inf_j.html"));
- }
-
- // ├ε1 (!!!)dummy: ding.au
- if (isInside(x,y,0,0,100,100)) {
- adList[11].playSound();
- }
- // ├ε2 (!!!)dummy: ding.au
- if (isInside(x,y,100,0,200,100)) {
- adList[12].playSound();
- }
- // ├ε3 (!!!)dummy: ding.au
- if (isInside(x,y,200,0,300,100)) {
- adList[13].playSound();
- }
- }
-
- public void mouseMove(int x, int y) {
- if (timeArea == 0) {
- mouseMoveDay(x,y);
- } else if (timeArea == 1) {
- mouseMoveEvening(x,y);
- } else if (timeArea == 2) {
- mouseMoveNight(x,y);
- }
- }
-
-
- public void mouseMoveDay(int x, int y) {
- // ▒└
- if (isInside(x,y,297,25,432,78) &&
- !isInside(last_x,last_y,297,25,432,78) &&
- sched[3] == null &&
- adList[3].getCurFrame() == 0) {
- insertSchedular(3);
- }
-
- // ╡√
- if (isInside(x,y,295,188,340,202) &&
- !isInside(last_x,last_y,295,188,340,202) &&
- sched[6] == null) {
- insertSchedular(6);
- }
-
- // ñµñ∞ñδ╠┌
- if (isInside(x,y,353,195,499,399) &&
- !isInside(last_x,last_y,353,195,499,399) &&
- sched[7] == null) {
- insertSchedular(7);
- }
-
- // ╣╚═╒
- if ((isInside(x,y,0,48,133,83) || isInside(x,y,0,83,24,105) ||
- isInside(x,y,95,83,133,105)) &&
- !(isInside(last_x,last_y,0,48,133,83) ||
- isInside(last_x,last_y,0,83,24,105) ||
- isInside(last_x,last_y,95,83,133,105)) && sched[8] == null) {
- insertSchedular(8);
- }
-
- // ┤╟╚─ (│╚┬τ)
- if (isInside(x,y,177,142,205,158) &&
- !isInside(last_x,last_y,177,142,205,158) &&
- sched[2] == null && adList[2].getCurFrame() == 0) {
- adList[2].Reverse();
- insertSchedular(2);
- }
-
- // ┤╟╚─ (╜╠╛« or ╩╕╜±╕╞ñ╙╜╨ñ╖) (!!! dummy data)
- if (isInside(x,y,192,80,300,158) &&
- !isInside(last_x,last_y,192,80,300,158) && sched[2] == null &&
- adList[2].getCurFrame() == adList[2].getLastFrame()) {
- if (!isInside(x,y,177,80,240,158)) {
- adList[2].Reverse();
- insertSchedular(2);
- }
- }
-
- last_x = x;
- last_y = y;
- }
-
- public void mouseMoveEvening(int x, int y) {
- // ╡√
- if (isInside(x,y,295,188,340,202) &&
- !isInside(last_x,last_y,295,188,340,202) &&
- sched[6] == null) {
- insertSchedular(6);
- }
-
- // ñµñ∞ñδ╠┌
- if (isInside(x,y,353,195,499,399) &&
- !isInside(last_x,last_y,353,195,499,399) &&
- sched[7] == null) {
- insertSchedular(7);
- }
-
- // ╣╚═╒
- if ((isInside(x,y,0,48,133,83) || isInside(x,y,0,83,24,105) ||
- isInside(x,y,95,83,133,105)) &&
- !(isInside(last_x,last_y,0,48,133,83) ||
- isInside(last_x,last_y,0,83,24,105) ||
- isInside(last_x,last_y,95,83,133,105)) && sched[8] == null) {
- insertSchedular(8);
- }
-
- // ┤╟╚─ (│╚┬τ)
- if (isInside(x,y,177,142,205,158) &&
- !isInside(last_x,last_y,177,142,205,158) &&
- sched[2] == null && adList[2].getCurFrame() == 0) {
- adList[2].Reverse();
- insertSchedular(2);
- }
-
- // ┤╟╚─ (╜╠╛« or ╩╕╜±╕╞ñ╙╜╨ñ╖) (!!! dummy data)
- if (isInside(x,y,192,80,300,158) &&
- !isInside(last_x,last_y,192,80,300,158) && sched[2] == null &&
- adList[2].getCurFrame() == adList[2].getLastFrame()) {
- if (!isInside(x,y,177,80,240,158)) {
- adList[2].Reverse();
- insertSchedular(2);
- }
- }
- // ├ε1 (!!!)dummy: ding.au
- if (isInside(x,y,0,0,100,100) && !isInside(last_x,last_y,0,0,100,100)) {
- adList[11].playSound();
- }
- // ├ε2 (!!!)dummy: ding.au
- if (isInside(x,y,100,0,200,100) && !isInside(last_x,last_y,100,0,200,100)){
- adList[12].playSound();
- }
- // ├ε3 (!!!)dummy: ding.au
- if (isInside(x,y,200,0,300,100) && !isInside(last_x,last_y,200,0,300,100)){
- adList[13].playSound();
- }
-
- last_x = x;
- last_y = y;
- }
-
- public void mouseMoveNight(int x, int y) {
- // ╡√
- if (isInside(x,y,295,188,340,202) &&
- !isInside(last_x,last_y,295,188,340,202) &&
- sched[6] == null) {
- insertSchedular(6);
- }
-
-
- // ┤╟╚─ (│╚┬τ)
- if (isInside(x,y,177,142,205,158) &&
- !isInside(last_x,last_y,177,142,205,158) &&
- sched[2] == null && adList[2].getCurFrame() == 0) {
- adList[2].Reverse();
- insertSchedular(2);
- }
-
- // ┤╟╚─ (╜╠╛« or ╩╕╜±╕╞ñ╙╜╨ñ╖) (!!! dummy data)
- if (isInside(x,y,192,80,300,158) &&
- !isInside(last_x,last_y,192,80,300,158) && sched[2] == null &&
- adList[2].getCurFrame() == adList[2].getLastFrame()) {
- if (!isInside(x,y,177,80,240,158)) {
- adList[2].Reverse();
- insertSchedular(2);
- }
- }
- // ├ε1 (!!!)dummy: ding.au
- if (isInside(x,y,0,0,100,100) && !isInside(last_x,last_y,0,0,100,100)) {
- adList[11].playSound();
- }
- // ├ε2 (!!!)dummy: ding.au
- if (isInside(x,y,100,0,200,100) && !isInside(last_x,last_y,100,0,200,100)){
- adList[12].playSound();
- }
- // ├ε3 (!!!)dummy: ding.au
- if (isInside(x,y,200,0,300,100) && !isInside(last_x,last_y,200,0,300,100)){
- adList[13].playSound();
- }
- last_x = x;
- last_y = y;
- }
-
- }
-